Hi All,
Is there a way on a visio to have a drop down preselected on the first option in the dropdown rather than being blank?
So if i have:
SetVar Preset:None:Preset 1:Preset 2:Preset 3
Is there a way so "None" is always selected when a page is opened?
Thanks
Hi Ryan,
You can already set the session variable to one of the values that is present in the dropdown. Upon opening the Visual Overview, the dropdown will match its selection with the current session variable value.
Hi Toon/Sebastiaan.
How do I get it so the dropdown saves the value and displays for all user once a new value is set so say, on init it is None, and I select “Preset 1”, if someone else opens the panel, it will show none again
To let everyone see the selection it’s required to store the selected value somewhere in DataMiner. This means you need to store the selection whenever someone changes the dropdown and you would also need to read out the value rather than using InitVar (more info https://docs.dataminer.services/user-guide/Basic_Functionality/Visio/session_variables/Configuring_a_page_to_update_parameters_on_session_variable_changes.html).
Ahhh so it would need to be saved in the protocol? Ok thanks for that
Indeed, or in a property.
By the way, you use InitVar for this 🙂