on 01-02-2015 1:30 PM
Hi ,
I created a UI5 app where I am doing crud operations by consuming oData.
I am able to do CRUD operations but when I create a record its saving in the backend, but its not refreshing in the frontend.
Once I refresh application again I can see the created row.
once I create row , I am unbinding Items from table
var tableBinding = sap.ui.getCore().byId("DetailsTable");
tableBinding.unbindAggregation("items");
tableBinding.removeAllItems();
Its unbinding later I am calling my model and setting data to table as I did for "READ" but I am unable to Bind.
could any one please assist me.
Thanks&Regards
Viswanath.
You don't have to unbind the items and rebind again. You can do,
oModel.refresh(true);
This will refresh the model with the latest changes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.