Hey,
I have a table with JSON data. With some help the data from JSON was displayed in the table. This happens with the onInit() function. Now my want to update the data after executing some functions.
This is the onInit() function:
onInit: function () {
var demoJSONModel = new sap.ui.model.json.JSONModel();
var oData={
suggestionData:[{
'WORD':"test1",
'SUGGESTION':"...test..."
},{
'WORD':"test2",
'SUGGESTION':"...test..."
}]
};
demoJSONModel.setData(oData);
this.getView().setModel(demoJSONModel);
}
For example after execution the second record is
'WORD':"test22345",
'SUGGESTION':"...test..."
Is that possible and when how it works?
Thanks in advance
Tim