on 04-06-2017 12:57 PM
Hi All,
I have developed a split App screen which comprises of Approve/Reject functionalities.
My problem is after i approve/ reject the item , i want to refresh both the master and detail screen together and again load the zeroth value (first value) in the list to the detail page.
My coding :
oArgs = oEvent.getParameter("arguments");
EmployeeId = oArgs["EmployeeId"];
WorkitemId = oArgs["WorkitemId"];
oView = this.getView();
oView.bindElement(
{ path : seroda+"(ImPernr='"+EmployeeId+"',ImWiid='"+WorkitemId+"')",
events : {
dataRequested: function ()
{ oView.setBusy(true);
},
dataReceived: function () {
oView.setBusy(false);
} } });
How do i refresh this element after approve/reject?
Use routing navTo method to navigate to initial page i.e empty pattern ("pattern": "").
this.getOwnerComponent().getRouter().navTo("master", {}, false);
Regards,
Gururaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thanks for your replies. But this didn't work for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can try this also
VIEW.getElementBinding().refresh(true);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try refreshing your model by using the refresh() method.Try this in your data received function:
oView.getModel().refresh();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yourmodel.refresh()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
11 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.