Skip to Content
0

sub routing in manifest.json sapui5

May 11, 2017 at 01:25 PM

133

avatar image

Hey everybody,

I am working on a sap Kapsel offline Fiori app that consumes an odata service protocol.

I wanted to add two more views : a worklist view and object view .

I have a button that redirects me from master detail view to the worklist view & then from the worklist view to the object view.

The navigation from master detail view to worklist view works fine. But from the worklist view to object view doesn't work because i don't know how to set it up in manifest.json

Here's my manifest.json :

{
	"_version": "1.1.0",
	"sap.app": {
		"_version": "1.1.0",
		"id": "com",
		"type": "application",
		"resources": "resources.json",
		"i18n": "i18n/messageBundle.properties",
		"title": "{{appTitle}}",
		"description": "{{appDescription}}",
		"applicationVersion": {
			"version": "1.0.0"
		},
		"ach": "ach",
		"dataSources": {
			"mainService": {
				"uri": "/sap/opu/odata/sap/ZPM_AVIS_SRV/",
				"type": "OData",
				"settings": {
					"odataVersion": "2.0",
					"localUri": "localService/metadata.xml"
				}
			}
		},
		"offline": true,
		"sourceTemplate": {
			"id": "fioritemplate.UI5masterDetailKapselOffline",
			"version": "1.32.4"
		}
	},
	"sap.ui": {
		"_version": "1.1.0",
		"technology": "UI5",
		"icons": {
			"icon": "sap-icon://detail-view",
			"favIcon": "",
			"phone": "",
			"phone@2": "",
			"tablet": "",
			"tablet@2": ""
		},
		"deviceTypes": {
			"desktop": true,
			"tablet": true,
			"phone": true
		},
		"supportedThemes": [
			"sap_hcb",
			"sap_bluecrystal"
		]
	},
	"sap.ui5": {
		"_version": "1.1.0",
		"rootView": {
			"viewName": "com.view.App",
			"type": "XML",
			"id": "app"
		},
		"dependencies": {
			"minUI5Version": "1.30.0",
			"libs": {
				"sap.ui.core": {},
				"sap.m": {},
				"sap.ui.layout": {},
				"sap.ushell": {}
			}
		},
		"contentDensities": {
			"compact": true,
			"cozy": true
		},
		"models": {
			"i18n": {
				"type": "sap.ui.model.resource.ResourceModel",
				"settings": {
					"bundleName": "com.i18n.messageBundle"
				}
			}
		},
		"routing": {
			"config": {
				"routerClass": "com.MyRouter",
				"viewType": "XML",
				"viewPath": "com.view",
				"targetAggregation": "detailPages",
				"clearTarget": false
			},
			"routes": [
				{
					"pattern": "",
					"name": "main",
					"view": "Master",
					"targetAggregation": "masterPages",
					"targetControl": "idAppControl",
					"subroutes": [
						{
							"pattern": "{entity}/:tab:",
							"name": "detail",
							"view": "Detail"
						}
					]
				},
				{
					"name": "catchallMaster",
					"view": "Master",
					"targetAggregation": "masterPages",
					"targetControl": "idAppControl",
					"subroutes": [
						{
							"pattern": ":all*:",
							"name": "catchallDetail",
							"view": "NotFound",
							"transition": "show"
						}
					]
				}
			]
		}
	},
	"sap.mobile": {
		"_version": "1.1.0",
		"definingRequests": {
			"equipementSet": {
				"dataSource": "mainService",
				"path": "/equipementSet?$expand=avis"
			}
		}
	}
}

Any help would be appreciated.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers