cancel
Showing results for 
Search instead for 
Did you mean: 

Navigating from Log-in Screen (full-view) to Master-Detail Split-view in sap ui5?

0 Kudos
1,142

I have One Login Page (full-view) and 1 master and 3 detail View(Split-view).. I cannot navigate from from login page to the master-detail screen? views names login,Masterpage1, detailpage1, detailpage2, detailpage3

var oRouter = sap.ui.core.UIComponent.getRouterFor(this);

oRouter.navTo("MasterPage1");

the error i am getting is 1. doNavigate is undefined

2. navTo is undefined.

my navigation is successful(through message) but i can see only the login page.

maheshpalavalli
Active Contributor

Please provide your manifest.json routing config

View Entire Topic
0 Kudos

{

	"_version": "1.8.0",
	"sap.app": {
		"_version": "1.3.0",
		"id": "com.sap.build.standard.qiReportFinal",
		"type": "application",
		"i18n": "i18n/i18n.properties",
		"title": "{{appTitle}}",
		"description": "{{appDescription}}",
		"applicationVersion": {
			"version": "1.2.2"
		},
		"ach": "ach",
		"resources": "resources.json",
		"dataSources": {
			"local": {
				"uri": "/sap/opu/odata/sap/ZRECORD_DEFECTS_SRV/",
				"type": "OData",
				"settings": {
					"odataVersion": "2.0",
					"localUri": "localService/metadata.xml"
				}

			}
		}
	},

	"sap.ui": {
		"_version": "1.3.0",
		"technology": "UI5",
		"icons": {
			"icon": "sap-icon://detail-view",
			"favIcon": "",
			"phone": "",
			"phone@2": "",
			"tablet": "",
			"tablet@2": ""
		},
		"deviceTypes": {
			"desktop": true,
			"tablet": true,
			"phone": true
		}
	},

	"sap.ui5": {
		"config": {
			"fullWidth": true
		},

		"_version": "1.2.0",
		"rootView": {
			"viewName": "com.sap.build.standard.qiReportFinal.view.App",
			"type": "XML",
			"async": false,
			"id": "idAppControl"
		},
		"autoPrefixId": true,
		"dependencies": {
			"minUI5Version": "1.50.0",
			"libs": {
				"sap.ui.core": {},
				"sap.m": {}
			}
		},
		"contentDensities": {
			"compact": true,
			"cozy": true
		},
			"resources": {
				"css": [
				{
				"uri": "./Css/style.css"
				}
				]
				},
	
		"models": {
			"i18n": {
				"type": "sap.ui.model.resource.ResourceModel",
				"uri": "i18n/i18n.properties"
			},
			"": {
				"dataSource": "local",
				"type": "sap.ui.model.odata.v2.ODataModel",
				
				"settings": {
					"loadMetadataAsync": false,
					"json": true,
					"bJSON": true,
					"defaultBindingMode": "OneWay",
					"defaultCountMode": "Request",
					"useBatch": true,
					"refreshAfterChange": false,
					"disableHeadRequestForToken": true,
					"defaultOperationMode": "Client"
				}
			}
		},
		
		"routing": {
			"config": {
				"routerClass": "sap.m.routing.Router",
				"viewType": "XML",
				"viewPath": "com.sap.build.standard.qiReportFinal.view",
				"controlId": "idAppControl",
				"clearTarget": false,
				"controlAggregation": "pages",
				"async": false,
				"bypassed": {
					"target": [
						"Login"
					]
					
				}
			},
			"routes":[{
					"pattern": "default",
					"name": "default",
					"target": [
						
						"Login"
				],
			
				"subroutes": [{
					"pattern": "MasterPage1/:masterContext:",
					"name": "MasterPage1",
					"target": [
						"DetailPage1",
						"MasterPage1" 
						],
				"subroutes":[{
					"pattern": "MasterPage1/DetailPage1/:context:/{Inslot},{Inssta},{Plnt},{Mat},{Sdat},{Edat},{Lqty},{Iunit}",
					"name": "DetailPage1",
					"target": [
						"MasterPage1",
						"DetailPage1"
					],
				"subroutes":[{
					"pattern": "MasterPage1/:masterContext:/DetailPage2/:context:/{Insp1}",
					"name": "DetailPage2",
					"target": [
						"MasterPage1",
						"DetailPage2"
					],
				"subroutes":[{
				
					"pattern": "MasterPage1/:masterContext:/DetailPage3/:context:",
					"name": "DetailPage3",
					"target": [
						"MasterPage1",
						"DetailPage3"
					]	
				
				
				}]
				}]
				}]
				}]
			}],

			"targets": {
				"Login": {
					"controlAggregation": "pages",
					"viewName": "Login",
					"viewLevel": 1,
					"clearControlAggregation": false
					
				},
				"MasterPage1": {
					"controlAggregation": "masterPages",
					"viewName": "MasterPage1",
					"viewId": "MasterPage1",
					"viewLevel": 2,
					"controlId": "App",
					"parent": "root",
					"transition": "slide"
				},
				"DetailPage1": {
					"controlAggregation": "detailPages",
					"viewName": "DetailPage1",
					"viewId": "DetailPage1",
					"viewLevel": 3,
					"controlId": "App",
					"parent": "root",
					"transition": "slide"
				},
				"DetailPage2": {
					"controlAggregation": "detailPages",
					"viewName": "DetailPage2",
					"viewId": "DetailPage2",
					"controlId": "App",
					"viewLevel": 4,
					"parent": "root",
					"transition": "slide"
				},
				"DetailPage3": {
					"controlAggregation": "detailPages",
					"viewName": "DetailPage3",
					"viewId": "DetailPage3",
					"viewLevel": 5,
					"controlId": "App",
					"parent": "root",
					"transition": "slide"
				},
				"root":{
					"viewType": "XML",
					"viewName": "root"
					
				}
				
			}
			
}

},

"sap.platform.hcp": {
		"uri": "webapp",
		"_version": "1.2.0"
		
}
}