Skip to Content
avatar image
Former Member

Load fresh Detail page in sap.m.SplitApp master/detail layout

Hello UI5 experts,

I have developed a custom UI5 application using SplitApp control. I am displaying list in the master page using sap.m.ObjectListItem. Upon clicking the item (itemPress), I am loading the detail page.

The issue that I am facing is, detail page is not loading with fresh data upon clicking the second item from list. Data related to first item is displayed always.

Thanks..

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    I have seen Routing in explored section. But in that demo, two detail views are there to display data.

    In my case, I have to refresh the same detail view with fresh data upon click of items in master page.

  • Former Member

    In the Split App demo, SAP is handling the navigation between master and detail pages through "Routing". Can someone help me how to define Routing in manifest.json file and handle it in application. I am building my custom app on eclipse..!!

    Master/Detail Demo App

    Thanks..

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 11, 2017 at 08:41 PM

    Finally, Instead of Routing technique..I have loaded the OData service in event handler method [itemPress event of list] and then navigated to detail page. This solved my problem.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 11, 2017 at 08:53 AM

    it is not the way to go.

    check the demo app to see how sap did it.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 11, 2017 at 10:21 AM

    Remove the detail page from detailPage container.

    this.getView().getParent().removeDetailPage("IDof the detailPage");

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Got it,

      way 1

      1) without routing : Upon clicking on itempress, update the model binded to detailPage in master page, as detailPage and masterPage can share a model if you set model at sap.ui.core.Core level(sap.ui.getCore()).

      way 2

      upon navigation pass the id to detailPage via routing, and update the binding by model.refresh() -- I think in v2 odata model gets refreshed automatically.

      Hope this may help you.

  • avatar image
    Former Member
    Jul 11, 2017 at 11:16 AM

    In the Split App demo, SAP is handling the navigation between master and detail pages through "Routing". Can someone help me how to define Routing in manifest.json file and handle it in application. I am building my custom app on eclipse..!!

    Master/Detail Demo App

    Thanks..

    Add comment
    10|10000 characters needed characters exceeded