on 07-26-2016 6:58 PM
Hi,
I am looking to bind table items for an expand set along with filter but unable to achieve it most of the examples are with respect to Sap.ui.Table looking for binding with sap.m.Table from SAP odata service. Someone point me to a sample code or link to lookup.
Thanks,
Ramesh
Hello Ramesh,
as per your service response, binding should be as below, this will work-
<Text text="{POModel>NavItem/results/0/PoItem}"></Text>
or I am not sure whether response structure can be changed from backend, as per your current code (<Text text="{POModel>NavItem/PoItem}"></Text>) structure should look a like below:
"NavItem": {
"__metadata": {
"id": "*******/sap/opu/odata/sap/ZPO_SRV/ItemSet('00010')",
"uri": "*******/sap/opu/odata/sap/ZPO_SRV/ItemSet('00010')",
"type": "ZPO_SRV.Item"
},
"PoNumber": "4500008238",
"PoItem": "00010",
"Material": "",
"NavSchedule": {
"__deferred": {
"uri": "*******/sap/opu/odata/sap/ZPO_SRV/ItemSet('00010')/NavSchedule"
}
}
}
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 |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.