on 2019 Mar 29 2:12 PM
Hello Freinds,
I am using Master Detail fiori app,
In Detail screen - I have 2 buttons Accept and Reject.
When I Click on Accept - Record is created in SAP Backend and If Reject - then record is deleted in Backend.
Now, List in Master Screen is not updating after the above action is done.
Can Some please guide me? Or me sample application if i can see how this work.
I tried this,
sap.ui.getCore().byId("myList").getBinding("items").refresh();
Can anyone can help here?
Regards,
Sujoy
Hello Sujoy,
you have to call the refresh-method at the odata model. The list will then update its bindings automatically.
Best regards,
Christian.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Christian Späh,
You mean this one,
onRefresh : function () {
this._oList.getBinding("items").refresh();
},
I meant something like this:
this._oList.getModel("items").refresh(true);
Hello @Christian Späh,
I tried this console, but getting error.
"Cannot read property 'getModel' of undefined"
User | Count |
---|---|
67 | |
10 | |
10 | |
10 | |
7 | |
7 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.