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

Re: Efficient loading screen while sending data with oData WebServices

$
0
0

Maybe you should try something simple for now, with out the attachRequests:

 

saveFormData: function(formAction) { 

var oMainDetails = this.getMainDetails(); 

var oDataSet = this.getFormData(); 

var sServiceUrl = "" + sap.ui.getCore().byId("idMenu").getController().serviceGetter("006"); 

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

var success = true

 

oModel.create("MainDetailsCollection", oMainDetails, null

     function() { 

       console.log("creating"); 

     }, 

     function() { 

       success = false; 

     } 

  );

 

busyDialog.close(); // because the .create will finish first before this fires

 

Regards

Antonette


Viewing all articles
Browse latest Browse all 3576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>