cancel
Showing results for 
Search instead for 
Did you mean: 

Refreshing the master page from detail page in SAPUI5

former_member127164
Participant
0 Kudos

Hi experts,

I have came across an issue where my screen consists of splitapp layout in which master page contains sap.m.list items which is coming from one collection and detail page consists of header part and icon tab  bar.If i performs an action on detail page let's suppose pressing a button then i have to refresh the master page and call the service url again for getting the data to refresh the sap.m.list. ANY EXAMPLE FROM ANYONE?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member127164
Participant
0 Kudos

I am asking how to call the service url from detail page controller.js file for updating the bounded data in master page which is sap.m.List. Refreshing the model just refreshes the data in model.But calling the service again is different scenario.

jamie_cawley
Advisor
Advisor
0 Kudos

If a change was made on the backend data and you called refresh, a call to the backend service url would be made, which would update the model and the view with the changes.

Regards,

Jamie

SAP - Technology RIG

Former Member
0 Kudos

As Jamie already stated a refresh on the model of your List will also refresh every Control that is bound to this model.

So this is no other scenario than calling the service again manually.

If you want to filter the data or something like that, then a refresh is not sufficient, but then you need to be more specific in your question, so that we can understand your actual problem.

Regards,

Florian

jamie_cawley
Advisor
Advisor
0 Kudos

You should be able to use

this.getView().getModel().refresh();

which would be called automatically if you are changing the model.

Regards,

Jamie

SAP - Technology RIG

former_member127164
Participant
0 Kudos

I have asked how to call the service url from detail page controller.js file for updating the bounded data in master page which is sap.m.List. Refreshing the model just refreshes the data in model.But calling the service again is different scenario.

junwu
Active Contributor
0 Kudos

buddy, you have no idea what is refresh,

SAPUI5 SDK - Demo Kit