Advertisement
ignatov

Untitled

Jul 17th, 2020
827
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var sUrl = "/sap/opu/odata/SAP/ZAPP12_SRV";
  2. var odataModel = new sap.ui.model.odata.v2.ODataModel(sUrl, {
  3.                 json: true,
  4.                 loadMetadataAsync: true
  5.             });
  6.  
  7.             var oModel = new sap.ui.model.json.JSONModel();
  8.  
  9.             odataModel.setHeaders({
  10.                 "myCustomparam1": "userPressed",
  11.                 "myCustomparam2": new Date(Date.now())
  12.             });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement