Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Unified Engineering

Setting and Getting the Current Selection

  • Last UpdatedNov 01, 2022
  • 1 minute read

The default selection is the first value in the list. You can explicitly set the currently selected value by means of the option gadget's select() method:

!!Layout2.Colour.select('Dtext','Orange')

!!MyForm.Circle.select('directory/circle/cenrad')

You can read the current selection using the selection() method. This will return the replacement-text (or the display-text if replacement-texts were not defined):

!SelectedText = !This.List.Selection()

The .val member reads the index number of the currently selected value:

!ChosenNumber = !!Form.List.Val

The clear() method will discard both display- and replacement-text lists:

!!MyForm.Colours.clear()

TitleResults for “How to create a CRG?”Also Available in