Skip to Content
0
Jan 08, 2018 at 11:25 AM

Invoke oData expand from SAPUI5 controller

1286 Views

Hello,

I want to invoke the following oData url from SAPUI5 controller.

/EmpSet('453233')/?$expand=EmpDetails

I am aware of oData model concepts and how to invoke normal read using oData model. However, I am struggling to invoke the above url with the value 4533233.

As far as I understood, I can invoke expand query using

oModel1.read("/EmpSet", {
    urlParameters: {
        "$expand": "EmpDetails"
    }
});
How can I pass the value 453233 in the above code snippet..

Regards
Faddy