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

Re: How to add new table item without saving it in SAPUI5 app & OData model

$
0
0

Hi Maksim,

 

No, it is not right. I'd like to see data in the table without need to submit them to the backend. This is the code run within event handler

 

onTableItemAddButtonPressed : function(oEvent) {

 

var _oModel = this.getView().getModel("items");

var _oTable = this.getView().byId("idItems");

var _oEntry = {};

_oModel.createEntry(this.sWorkitemPath + "/ItemSet",

     {                   

          success : function() {

 

          },

          error : function() {

 

          },

 

          properties : {

 

     });

 

     //   _oModel.submitChanges();

}

 

Till submitChanges is processed, no data appear in the table despite of being visible in OData property within model instance

 

Výstřižek.PNG

 

After submitChanges data is created in the backend and after that visible in table.

 

Thanks Zdenek


Viewing all articles
Browse latest Browse all 3548

Trending Articles



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