Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to pass values to odata service

I need to pass value (date) to the following odata service-

/sap/opu/odata/sap/ZDATAXYZ_SRV/DatatestSet(Pdate=datetime'2015-07-30T00%3A00%3A00')

Have already created XML view/ controller, model using WEBIDE 1.12.

Also able to get value from Datepicker in the above date format.

Pls guide how to do the data binding..etc

There is a serviceBinding.js file generated while creating Odata model.

function initModel() {

  var sUrl = "/sap/opu/odata/sap/ZDATAXYZ_SRV/";

  var oModel = new sap.ui.model.odata.ODataModel(sUrl, true);

  sap.ui.getCore().setModel(oModel);

}

...

Odata service needs to fetch just one value ItemID, for the specified date (Pdate).

after passing Pdate-

the result - ItemID is to be displayed.

Tags:
Not what you were looking for? View more on this topic or Ask a question