Skip to Content
avatar image
Former Member

How can i route between split app and normal pages?

Hi,

I have a home page which has one tile, on click of that I need a master detail (split app) view, and master and detail views are multiple.

On click of one of the master/detail page, I need to navigate it to normal view (i.e not a split app).

How can I achieve this using hash pattern routing?

I have tried below code but not succeed.

{

"_version": "1",

"sap.app":

{

"_version": "1",

"id": "recharge_App",

"type": "application",

"i18n": "i18n/i18n_en.properties",

"title": "{i18n>appTitle}",

"description": "{i18n>appDescription}",

"applicationVersion":

{

"version": "1"

}

},

"sap.ui":

{

"_version": "1.28",

"technology": "UI5",

"icons":

{

"icon": "sap-icon://detail-view",

"favIcon": ""

},

"deviceTypes":

{

"desktop": true,

"tablet": true,

"phone": true

},

"supportedThemes":

[

"sap_bluecrystal"

]

},

"sap.ui5":

{

"_version": "1.28",

"rootView": "recharge_App.recharge.appView",

"resources":

{

"css":

[

{

"uri": "css/stylesheet.css"

}

]

},

"dependencies":

{

"minUI5Version": "1.28",

"libs":

{

"sap.ui.core":

{

},

"sap.m":

{

},

"sap.ui.layout":

{

}

}

},

"config":

{

"appConfig": "model/appConfig.json"

},

"routing":

{

"config":

{

"routerClass": "sap.m.routing.Router",

"viewType": "XML",

"viewPath": "recharge_App.recharge",

"controlId": "appID",

"controlAggregation": "pages",

"bypassed":

{

"target":

[

"notFound"

]

},

"async": true

},

"routes":

[

{

"pattern": "",

"name": "appView",

"target":

[

"appView"

]

},

{

"pattern": "masterDetail",

"name": "masterDetail",

"target":

[

"master","detail"

]

},

{

"pattern": "splitApp",

"name": "splitApp",

"target":

[

"splitApp"

]

}

],

"targets":

{

"appView":

{

"viewName": "appView"

},

"master":

{

"viewName": "master",

"viewLevel" : 1,

targetAggregation: "masterPages",

targetControl: "SplitAppDemo"

},

"detail":

{

"viewName": "detail",

"viewLevel" : 1,

targetAggregation: "detailPages",

targetControl: "SplitAppDemo"

},

"splitApp":

{

"viewName": "splitApp"

}

}

}

}

}

Regards,
Parth

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 11, 2017 at 03:40 AM

    Use subroutes in your routing configuration.

    Useful link: Cross-App Navigation

    Add comment
    10|10000 characters needed characters exceeded