on 01-07-2015 7:18 PM
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
Hi Joerg,
Look at the below link:
OData Write Support - SAPUI5 Developer Guide - SAP Library
Make sure you have the set two binding for your model using below code.
oModel.setDefaultBindingMode(sap.ui.model.BindingMode.TwoWay);
Hope this helps.
Regards,
Kedar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.