on 07-06-2015 7:14 AM
Hi all,
I am quite new to UI5,
I have a developed
The problem is the final bottom sap.m.MultiComboBox drop down doesn't have keys mapped from the Odata service, so keys are empty.
So, I am saving selected item text in the back end.
Now I would like to know if i can make an Multicombo box item selected using Text instead of Key ?
I have gone through all methods, it has methods to make an item selected using Key only.
Please guide me. Below Sap.m.MultiComboBox methods are not helping me.
addSelectedItem(oItem) Adds some item oItem
to the association named selectedItems
.
addSelectedKeys(aKeys) Adds selected items.
setSelectedItems(aItems) Setter for association selectedItems
.
setSelectedKeys(sSelectedKeys) Setter for property selectedKeys
.
i am kind of lost what exactly is the problem?
https://openui5.hana.ondemand.com/docs/api/symbols/sap.ui.core.Item.html
sap.ui.core.Item has text and key , if there is no key, bind key with the same value as text
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.