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

AVEVA™ Plant SCADA

Associating Items with Values in a List

  • Last UpdatedJul 13, 2023
  • 1 minute read

You can associate items with values in a Combo Box or List Box control. This is the same as using a secondary index system to identify items in the list.

You can:

  • Set item data, which associates an item with a value

  • Get item data, which returns the value that is associated with an item

To set item data in a Combo Box or List Box list

  • In an action script, use the following method:

    ControlName.SetItemData(Index,Value);

    where ControlName is the name of the Combo Box or List Box control, Index is the index of the item that you want to set and Value is the value you want to assign to the item. The first item of the list has an index of 0.

To get item data in a Combo Box or List Box list

  • In an action script, use the following method:

    Value = ControlName.GetItemData(Index);

    where ControlName is the name of the Combo Box or List Box control and Index is the index of the item for which you want to get the value. The first item of the list has an index of 0.

    Value contains the value that is assigned to the item.

Configuring Combo Box and List Box Methods

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