Combo box

Element which gets reference to UI component Combo box.

Properties:

  • Control ID: [String] Control ID

  • Control: [LTools.SAP.Model.SAPUIItem] Control reference

  • Combo box: [LTools.SAP.Model.SAPUIComboBox] Variable that stores combo box reference

  • Items: [List<LTools.SAP.Model.SAPUIComboBoxItem>] Combo box available items

  • Variable: [LTools.SAP.Model.SAPUIComboBox] Variable to store combo box reference

  • Value: [LTools.SAP.Model.SAPUIComboBoxItem] Current value

  • Select (key): [String] Select value by key

  • Select (index): [Int32] Select value by index

  • Time-out*: [Int32] Maximum waiting time for process completion (ms)

LTools.SAP.Model.SAPUIComboBox:

  • [SAPFEWSELib.ISapComboBoxTarget] Element - Element reference;

  • [String] Id - Element ID;

  • [List<LTools.SAP.Model.SAPUIComboBoxItem>] Items - Combo box items;

  • [SAPUIComboBoxItem] SelectedItem - Selected item;

  • SelectItem(SAPUIComboBoxItem item - item) - Select item;

  • SelectItem(int idx - item index) - Select item;

  • SelectItem(string key - item key) - Select item.

LTools.SAP.Model.SAPUIComboBoxItem:

  • [SAPFEWSELib.ISapComboBoxEntryTarget] - Element reference;

  • [String] Id - Item key;

  • [String] Text - Item text;

  • [int] Index - Item index.

C#
LTools.SAP.SapApp app = LTools.SAP.SapApp.Init(wf);
LTools.SAP.Model.SAPUIComboBox cmb = app.ComboBox("/app/con[0]/ses[0]/wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell");
cmb.SelectItem(cmb.Items[0].Id);

Python
app = LTools.SAP.SapApp.Init(wf)
cmb = app.ComboBox("/app/con[0]/ses[0]/wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell")
cmb.SelectItem(cmb.Items[0].Id)

JavaScript
var app = _lib.LTools.SAP.SapApp.Init(wf);		
var cmb = app.ComboBox("/app/con[0]/ses[0]/wnd[0]/usr/cntlIMAGE_CONTAINER/shellcont/shell/shellcont[0]/shell");
cmb.SelectItem(cmb.Items[0].Id);

Last updated