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);
};