Skip to Content
0
May 09, 2018 at 01:31 PM

SAPUI5 Binding list of comboboxes values from a different json tree than the selectedKey binding

495 Views Last edit May 09, 2018 at 01:36 PM 4 rev

Hello all,
let us assume that we have a json with two trees of values. One tree, let's call it T_DATA contains the information of selected keys for the comboboxes, T_CELLS contain the items for the comboboxes lists.

There would be no problem if the combobox items were in the same tree with the selected key binding, but I can't change the json. Is this data binding possible?

oTable.addColumn(new sap.ui.table.Column({
label: new sap.m.Label({text: "Example"}),
template: new sap.m.ComboBox({
selectedKey: "{SALESORG}",
items: {
path: "???",
template: new sap.ui.core.ListItem({
key: "{V_KEY}",
item: "{V_VALUE}"
})
}
})
}));
oTable.bindRows("/T_DATA");

Thanks a lot!

Attachments

binding2.jpg (62.8 kB)