cancel
Showing results for 
Search instead for 
Did you mean: 

refresh detail page in splitApp

Former Member
0 Kudos

Hi,

I have a split app with a master and a detail controller.  It works just fine on initial load and on the item click.

On the detail page there is a button which completes the notification.

Once the notification is complete it updates the model and the completed notifications are removed from the master list.

The master refreshes with the updated list. However the detail page still shows the old notification ( which is no more in the master list ).

There is a url parameter which displays the details of the selected notification. ( /EntitySet("<notifcation_no>")).

This notification_no is not getting updated in the url even if the model is updated.

I tried model.refresh it did not work. I also tried to call custom methods via subscribe and publish events between the master and controller and tried to rebind the context. However the model gets updated much later in the framework cycle.

I also tried to force navigate again to the same page.

None of the above works.

Please suggest if I am missing anything.

Thanks,

Veena.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In the updateFinished method of the list, I am checking for the condition

e.getParameters().reason === "Refresh".

If true, I am calling the detail page again with the updated context.

Former Member
0 Kudos

This is working good for now, let me know if there is any better approach.

Thank you!!

Answers (1)

Answers (1)

saivellanki
Active Contributor
0 Kudos

Hi Veena,

Check the call type, whether it is asynchronous / synchronous. Default is async for read requests. You can try making a sync call and check?

JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.model.odata.ODataModel


Regards,

Sai Velanki.