cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot set the value attribute for a select tag in SAP UI5 application

Former Member
0 Kudos

Hi,

We are trying to use the SAPUI5 "Select" control in our application, the options get bound to the data correctly but we are unable to set the "value" attribute for the option tag. Here is the code snippet being used:

<Select name="brand" items="{Brand}">

     <core:Item key="{Key}" text="{Description}" />

</Select>

The output is:

<select class="sapMSltNative" name="brand" id="__select0-select" aria-hidden="true" tabindex="-1">

     <option>A</option>

     <option>B</option>

     <option>C</option>

     <option>D</option>

</select>

Please help on how should we set the value attribute for the option tag.

Regards

Shruti

Accepted Solutions (0)

Answers (1)

Answers (1)

santhu_gowdaz
Active Contributor
0 Kudos