Skip to Content
avatar image
Former Member

Routing in sap fiori

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 :

"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"
						}
					]
				}
			]
		}
	},

Any help would be appreciated.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 13, 2017 at 06:25 AM

    I dont know how it works with subroutes, but it's easier to use targets( routes & targets based routing) as subroutes is deprecated since 1.28..

    Best Regards,
    Mahesh

    Add comment
    10|10000 characters needed characters exceeded