10-18-2016 9:46 AM - edited 02-03-2024 7:32 PM
Hi all,
I face a binding problem, means no data is shown. My view contains a sap.m.table. One of the columns is type of sap.m.MultiComboBox and defined this way
var selectOwners= new sap.m.MultiComboBox("ownersTmpl-Group",{
selectedKeys: "{table>owner_id}",
enabled: "{table>edit}",
templateShareable : true,
items:{
path:'table>owner_name',
templateShareable: true,
template: new sap.ui.core.Item({
key: "{id}",
text: "{short} ( {long} )"
})
}
});
the model instance "table" is is type of json containg an array of object entries of this structure
Obviously the binding is wrong since the entries of the drop down box are existing but containing no text.
How solve this?
Any help is appreciated.
best regards
Wolfgang
try this,
var selectOwners = new sap.m.MultiComboBox("ownersTmpl-Group", {
selectedKeys: "{table>owner_id}",
enabled: "{table>edit}",
templateShareable: true,
items: {
path: 'table>owner_name',
templateShareable: true,
template: new sap.ui.core.Item({
key: "{table>id}",
text: "{table>short} ( {table>long} )"
})
}
});
Regards,
Akhilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
10 | |
8 | |
7 | |
6 | |
5 | |
5 | |
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.