Skip to Content

Refreshing the master page from detail page in SAPUI5

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?

SCN.PNG (124.4 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jan 13, 2016 at 03:54 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 13, 2016 at 04:58 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.