Skip to Content
0
Oct 04, 2016 at 12:45 PM

Master Master Detail (MMD) Routing Problem

67 Views

Hello everyone,

I need to be able to switching from MMD structure to Full Screen structure based on the query parameters.

I want to decide whether the screen will be full screen or MMD via App.controller or AppDetail.controller.

Ex: detail/WorkItemSet(WIID='000011111',Category='XX')


In the app (MMD), my routing structure is as follows;

Component.js

rootView: "com.xx.view.App",

config: {

resourceBundle: "i18n/messageBundle_tr.properties",

serviceConfig: {

name: "ZZZZ_SRV",

serviceUrl: "/sap/opu/odata/sap/ZZZZ_SRV/"

}

},

routing: {

config: {

routerClass: com.xx.MyRouter,

viewType: "XML",

viewPath: "com.xx.view",

clearTarget: false,

transition: "slide"

},

routes: [{

pattern: "",

name: "main",

view: "Master",

viewLevel: 1,

targetAggregation: "masterPages",

targetControl: "idAppControl",

subroutes: [{

pattern: "master2/{entity}",

name: "master2",

view: "Master2",

viewLevel: 2,

targetAggregation: "masterPages"

}]

},

{

pattern: "master02/{entity}",

name: "master02",

view: "Master2",

viewLevel: 2,

targetAggregation: "masterPages",

subroutes: [{

pattern: "master02/{entity}",

name: "detail",

view: "Detail",

viewLevel: 3,

targetAggregation: "detailPages"

}, {

pattern: "master02/{entity}/tabs/:?query:",

viewPath: "com.xx.view.llViews",

name: "tabattachments",

view: "Attachments",

targetAggregation: "content"

}]

}]

}

},

App.view

<mvc:View controllerName="com.tk.view.App" xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns="sap.m">

<SplitApp id="idAppControl"/>

</mvc:View>

AppDetail.view

<mvc:View controllerName="com.tk.view.AppDetail" xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns="sap.m">

<App id="idAppDetailControl"/>

</mvc:View>

Is it possible switching btw rootView and changing the structure from Master Master Detail to Full Screen or vice versa via parameters?

Any help would be appreciated.