cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh the details screen in splitapp view?

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (5)

Answers (5)

gururajenamate
Explorer
0 Kudos

Use routing navTo method to navigate to initial page i.e empty pattern ("pattern": "").

this.getOwnerComponent().getRouter().navTo("master", {}, false);

Regards,

Gururaj

Former Member
0 Kudos

Hi All,

Thanks for your replies. But this didn't work for me.

former_member227918
Active Contributor
0 Kudos

you can try this also

VIEW.getElementBinding().refresh(true);

Former Member
0 Kudos

You can try refreshing your model by using the refresh() method.Try this in your data received function:

oView.getModel().refresh();
junwu
Active Contributor
0 Kudos

yourmodel.refresh()