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

AVEVA™ Plant SCADA

Adding and Inserting Items into a List

  • Last UpdatedJul 13, 2023
  • 1 minute read

You can add an individual item:

  • To the end of the list.

  • Above the currently selected item.

To add an item to a Combo Box or List Box list

  • In an action script, use the following method:


    ControlName.AddItem("ItemCaption");

    where ControlName is the name of the Combo Box or List Box control and ItemCaption is the new item you want to add.

    The item is added to the end of the list.

    Note: You can specify an additional parameter writeToSelectedItem in the .AddItem function for Combo Box controls. If writeToSelectedItem is false, the newly added Item is not written to the reference configured in the Combo box’s Selected Item Value. For example: Controlname.AddItem("ItemCaption", bool writeToSelectedItem);

To insert an item in a Combo Box or List Box list

  • In an action script, use the following method:


    Controlname.InsertItem("ItemCaption");

    where ControlName is the name of the Combo Box or List Box control and ItemCaption is the new item you want to insert.

    The item is inserted above the currently selected item in the list.

Configuring Combo Box and List Box Methods

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