Skip to Content
0
Nov 12, 2019 at 04:27 AM

Add a View before master detail

97 Views

Hello all, i'm new to SAP UI5,

I have made an app using the Master-Detail Application template, and now I need to have a view before master detail view. How do I do this. I manually added view but by running the application by default it showing master detail view only. how do I navigate to my first view.

Manifest.json code is like

"routing": {
"config": {
"routerClass": "sap.f.routing.Router",
"viewType": "XML",
"viewPath": "abc.a1.view",
"controlId": "layout",
"controlAggregation": "beginColumnPages",
"bypassed": {
"target": "notFound"
},
"async": true
},
"routes": [
{
"pattern": "",
"name": "master",
"target": "master"
},
{
"pattern": "ProductSet/{objectId}",
"name": "object",
"target": [
"master",
"object"
]
}
],
"targets": {
"master": {
"viewName": "Master",
"viewLevel": 1,
"viewId": "master"
},
"object": {
"viewName": "Detail",
"viewId": "detail",
"viewLevel": 1,
"controlAggregation": "midColumnPages"
},
"detailObjectNotFound": {
"viewName": "DetailObjectNotFound",
"viewId": "detailObjectNotFound",
"controlAggregation": "midColumnPages"
},
"notFound": {
"viewName": "NotFound",
"viewId": "notFound"
},


"View2": {
"viewType": "XML",
"viewName": "View2",
"viewId":"idView2",
"viewLevel":1
}
}
}
}
}

I created a table In view 2, initially I need to show view2 then after master detail , how do I do this.