# Combo box

![](https://gblobscdn.gitbook.com/assets%2F-M-L9CGkriEo1_2PfJzA%2F-M5X7WJt1Y2RYKiiHmV4%2F-M5X8diKK-LsVV2Dh71i%2FSAP_%D0%BA%D0%BE%D0%BC%D0%B1%D0%BE-%D0%B1%D0%BE%D0%BA%D1%81_%D0%B8%D0%BA%D0%BE%D0%BD%D0%BA%D0%B0.png?alt=media\&token=b865d790-74fc-4386-86d3-5329850eb886)

Element which gets reference to UI component Combo box.

![](/files/9IGa6qHqpeAhuDKpk0cg)

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);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://astro-rpa.gitbook.io/astro-rpa-user-guide/g_elements/el_basic/els_sap/el_sap_combobox.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
