Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8150

Urgent Issue with sap.m.table model , Please Help !

$
0
0

Hello Gurus,

                       I am relatively new t o SAPUI5 and I am stuck  and I need to get this resolved ASAP.

 

Here is the scenario that I have :

 

1] User searches the table is populated with the data ( Great works fine)

 

2] When I go back and modify my search term

 

It does not show the updated data , even though the data is there in the model.

 

Please help me out as I think it should be straight forward for most of you out there.

 

Here is the code snippet that I use for updating data  in XML view:

 

var aData = sap.ui.getCore().getModel("data").oData;

 

  console.log(aData);

 

  var oModel = new sap.ui.model.json.JSONModel();

 

  oModel.setData({

  modelData : {

  recert : []

  }

  },true);

 

  sap.ui.getCore().setModel(oModel);

 

  sap.ui.getCore().getModel().setProperty("/modelData/recert", aData);

 

  this.getView().byId("SupRecertTable").setModel(oModel);

 

  console.log(oModel);

};


Viewing all articles
Browse latest Browse all 8150


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