on 2015 Aug 06 11:51 AM
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.
Request clarification before answering.
hi vighnesh
if you are using single field of date
in odata set pdate as string and
just pass value DatatestSet('yyyymmdd')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
22 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.