Hi all,
I have a combobox which fetches multiple person's no from Odata.So the table gets loaded with all the records when the page is loaded.
Now the thing is,If I choose a particular number ,only that corresponding record should be added to the table and so on.
Can someone help me with this?
Here's what I have tried:
var personinfo = new sap.ui.core.Item({
text : "{Person}"
});
var employee = new sap.m.ComboBox("employee", {
placeholder : "Select person",
items : {
path : "/results",
template : personinfo
},
});
oTable = new sap.m.Table();
oTable.addColumn(new sap.m.Column({
header: new sap.m.Label({text:"PersonnelNo."}),
}));
oTable.addColumn(new sap.m.Column({
header: new sap.m.Label({text:"EmployeeName"}),
}));
var oTemplate = new sap.m.ColumnListItem({
type: sap.m.ListType.Active,
cells : [
new sap.m.Label({
text : "{Person}"
}),
new sap.m.Label({
text: "{Name}"
}),
]
});
oTable.bindAggregation("items","/results",oTemplate);
oTable.setModel(oModelpersF4);
Thanks & Regards,
Ramya