Page 1 of 1

How can I use a TouchComboBox to pick what curves to show

Posted: Fri Mar 06, 2020 7:00 am
by saak
Hey I have been trying to make a trend that is functional for my project now for a few days.

Basically I want to make something like the trend viewer legend but the trend viewer legend isn't functional for me because I have a lot of curves.

what I want to do is to have something like the touch combo box with a scroll and search so that I can pick what curve to show.

having around 7-8 of this boxes would be great
each box with a specific color, lets say box 1 is red so no matter what tag I took on it the curve for that tag would be red.

also have to be able to show the full history of the tag when swapping tags.
and I also have to be able to set the boxes to nothing if I want to look at lets say 2 curves

I will add a example image of what I am trying to make. (in this image it is just text no function)

dose anyone know how to make this happen?
Help would be very appreciated :D

Re: How can I use a TouchComboBox to pick what curves to sho

Posted: Tue Mar 10, 2020 7:45 am
by prichlin
Hello saak,
It's not exactly what you're looking for but this might work depending on your application. Have you tried using the Trend Viewer Legend? It has controls to turn on and off the visibility of each curve (using the eye button).

It can be added as an Action under Trend Viewer > Show Trend Viewer Legend and selecting the trend in the second dropdown, or scripted on a button or Screen Opened event using

Code: Select all

TrendViewer.ShowLegend();

Re: How can I use a TouchComboBox to pick what curves to sho

Posted: Tue Mar 10, 2020 8:34 am
by saak
prichlin wrote:Hello saak,
It's not exactly what you're looking for but this might work depending on your application. Have you tried using the Trend Viewer Legend? It has controls to turn on and off the visibility of each curve (using the eye button).

It can be added as an Action under Trend Viewer > Show Trend Viewer Legend and selecting the trend in the second dropdown, or scripted on a button or Screen Opened event using

Code: Select all

TrendViewer.ShowLegend();

Hey Prichlin.
Thanks for the reply, I have tried the trend viewer legend but the problem with it is that if you have around 200 curves trend viewer legend just isn't functional.

what I want to have is 8 visible curves with the ability to choose what those 8 are while the other 192 are hidden, with 8 different combo boxes

Re: How can I use a TouchComboBox to pick what curves to sho

Posted: Thu Mar 26, 2020 1:34 pm
by Russ C.
Here is an example project that modifies the curves of a trend viewer via scripting