cancel
Showing results for 
Search instead for 
Did you mean: 

Sample for Sap.m.Table item Odata binding with filter and expand (entityset) SAPUI5

Ramesh
Explorer
0 Kudos

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

View Entire Topic
former_member227918
Active Contributor
0 Kudos

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