Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2695

Re: Create operation using OData.request()

$
0
0

Hi Jamie Cawley,

 

No, we are not using Kapsel SDK for logon. I have written this following function for SMP registration:-

 

loadData: function(oController) {

         appCID = oController;

      var newUrl = "";

      appCID = new Date().getTime();

      newUrl = sap.app.config.smpUrl + sap.app.config.connUrl +

  sap.app.config.LoginSet;

      jQuery.sap.require("sap.ui.model.odata.ODataModel");

      mHeaders = {

  "X-SMP-APPCID": appCID,

  };

  this.loginModel = new sap.ui.model.odata.ODataModel(newUrl, false, "username", "password", mHeaders);

  var oEntry = {};

  oEntry.DeviceType = sap.app.config.deviceType;

  this.loginModel.create(sap.app.config.connection, oEntry,{success: this.loadDataSuccessHandler, error: this.loadDataErrorHandler});

 

 

  },

 

Thanks,
Shrikant.


Viewing all articles
Browse latest Browse all 2695

Trending Articles