Skip to Content
0

Routing in sap fiori

May 12, 2017 at 09:23 AM

90

avatar image
Former Member

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.

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

1 Answer

Mahesh kumar palavalli May 13, 2017 at 06:25 AM
1

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

Share
10 |10000 characters needed characters left characters exceeded