cancel
Showing results for 
Search instead for 
Did you mean: 

Add a View before master detail

0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

saurabh_vakil
Active Contributor

If View2 is the view which you are looking to load before the Master view, then in your routing configuration in the manifest.json, I don't see any route defined with the target property View2.

0 Kudos

hi Saurabh thanks for your response, I got a solution by correcting routing in manifest