Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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

Former Member
Not what you were looking for? View more on this topic or Ask a question