Skip to Content
0
Apr 16, 2018 at 09:21 AM

How to call and bind an XS odata to a combobox in sapui5?

843 Views Last edit Apr 16, 2018 at 09:26 AM 2 rev

Hi all,

I have a comboBox control for which I need to bind an XS odata. I tried the usual way of binding an odata to combobox. But the data is not binded to the comboBox. Is there anything I need to change? Can someone help me with this?

Here's the code:

View:

<ComboBox  id="myList1" placeholder="Select Value" selectionChange="SelectChange"  items="{ path: '/ZS4HCDS_SEL_V01_DROPDOWNSet' }">
 <core:Item key="{FieldName}" text="{FieldName}" />
 </ComboBox>

Here's the output screenshot:

Regards,

Ramya.


Attachments