on 10-10-2018 5:36 PM
Hello All,
I've got a ComboBox bound to an OData model. When I execute the OData service, it returns two unique records. And I can see both of these records in the $batch response while debugging in Chrome.
However, the ComboBox dropdown only contains one of the records ... and displays it twice!
Here's the view's code:
<Label text="{i18n>orgUnit}" required='true'/>
<ComboBox
id="objid"
showSecondaryValues="true"
items="{ path: '/OrgUnitSearchSet' }"
change="onObjectIdChange">
<core:ListItem
key="{Objid}"
text="{Objid}"
additionalText="{Desc}"/>
</ComboBox>
Anybody have this issue, or have any suggestions?
Thanks,
Matt
This issue has been solved.
Just in case anyone else has duplicating content in a combobox ... the problem was my key in the OData service. I was using a fake value which I wasn't even populating to bypass the mapping requirements. I didn't need a key since it was read-only for the entire dataset, but apparently UI5 does need it.
I just populated sy-tabix into the key and now both records are displaying fine. 🙂
Matt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.