dropdown menus

Posts: 42
How many can you have? I have setup one and it works fine, but setting up a second one and it does not work at all and they are built the exact same way.
Posts: 287
I don't think there is limitation, as you can see in ATVO theme there is a lot of DropDown menu.
Edited (2 times)
Posts: 42
I dont know what is the issue then. I have not played with the ATVO theme. I will download it and see.
Posts: 42
I have tried the script from the ATVO theme as well and changed what I think needed to be changed got the green check and I can see its changed the gap as it now says leader at the top, but it still will not change with to interval, pit stops, or anything else on the drop down. Has anyone else used this and know what the issue might be?
Posts: 785
The dropdowns to change ticker mode (gap, interval, pitstops, etc), are complicated in the ATVO theme, but they are the most "efficient" way to achieve the result.

Simply copy/pasting them without understanding is likely not to work.

The way it works is all via the GapBindingConverter script in combination with the two dropdowns "DD_TimingModeH" and "DD_TimingModeV". The script has two functions:
  • Update which mode is the current mode
  • Convert each result (driver) into the requested value for that mode, e.g. gap or interval or pitstops etc

It determines which of these functions to execute by looking at the Value input. If that is a text value, it expects either "H" or "V" corresponding to each ticker. Then, it looks at the text of the selected dropdown item. The text has to match exactly with one of the valid TimingDisplayModes defined at the top of the script. Any mismatch and it will fail.

Whenever you change the selected dropdown item, it calls the same script every time ("GapBindingConverter.cs"). The Value in the action is used to specify which ticker is changed ("H" or "V" for horizontal or vertical).

The script first checks if "H" or "V" value is specified, which indicates that it is being used to change the ticker mode of that ticker. If it found which ticker to change, it then grabs the corresponding dropdown by finding it by name (either "DD_TimingModeH" or "DD_TimingModeV"). It then looks at the text of the selected item, and converts it to one of the valid "TimingDisplayModes". Then, the current mode is set to that mode.

I realize this is complicated, but I wanted to add this to showcase what kind of complicated logic you can achieve. There are easier ways to achieve this especially with just one ticker
Edited (1 time)
Posts: 42
Nick I have sent you an email.
Posts: 42
I have got it work! Thanks for the expert advice!!! Took just what you said here and BAM it worked. I was missing one little step.