Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Update Model when data changed in table

Hi Friends,

I have bound a table to Model like this.

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

var oTable = sap.ui.getCore().byId("ID_ESNTable");

oTable.setModel(oModel);

oTable.bindRows(gVEntity);

The table is filled, everyting is fine.

But now I change some data in the table and want to save it, but when I read the Model still the old data are shown.

With  sap.ui.model.json.JSONModel() I see the changes in the moment I change an entry,  but with the  sap.ui.model.odata.ODataModel still the old data are there.

Do I haveto refresh the Model?

Thanks in advance

Joerg

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question