Skip to Content
0

Multi-flow Pattern in SAPUI5: Full - SplitApp - Full -- < using manifest.json >

Apr 20, 2017 at 11:30 AM

92

avatar image

Hello Experts,

I want to implement a multi-flow pattern in my application. Navigating from full screen to a Split App and then Full screen.

I notice that the sub-routes is deprecated since 1.28. I know how to do this using the sub-routes. What I am trying to do now is to use the manifest.json in order to implement this functionality and I am struggling a little. I was wondering if any of you has achieved this already.

I have tried to use several of the target properties such as: parent, controlID, control aggregation... but I always end up with errors.

Any help would be appreciated =)

this is my example so far...

	"routing": {
			"config": {
				"routerClass": "sap.m.routing.Router",
				"viewType": "XML",
				"viewPath": "portaltest.view",
				"controlId": "app",
				"controlAggregation": "pages",
				"async": true
			},
			"routes": [{
				"pattern": "",
				"name": "worklist",
				"target": ["worklist"]
			}, {
				"pattern": "Project_MDR/{objectId}",
				"name": "master",
				"target": ["objectMDR", "detail", "master"]
			}, {
		           "pattern": "Project_MDR/{objectId}/cam_{campId}",
				"name": "objectMDR",
				"target": ["master", "detail"]
			}],
			"targets": {
				"worklist": {
					"viewName": "Worklist",
					"viewId": "worklist",
					"viewLevel": 1
				},
				"objectMDR": {
					"viewName": "MD.MD_App",
					"viewId": "Split_App",
					"viewLevel": 2,
					"controlAggregation": "pages",
					"controlId": "app"
				},
				"master": {
					"viewName": "MD.MD_Master",
					"viewId": "MD_Master",
					"viewLevel": 3,
					"controlAggregation": "masterPages"
				},
				"detail": {
					"viewName": "MD.MD_Detail",
					"viewId": "MD_Detail",
					"viewLevel": 4,
					"controlAggregation": "detailPages"
				}
			}
		}

Thanks in advance

Best Regards,

David Vela

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

1 Answer

Best Answer
Jun Wu Apr 20, 2017 at 12:31 PM
1
"master": {"parent":"objectMDR",controlId:"YOURSPLITAPPID","viewName": "MD.MD_Master","viewId": "MD_Master","viewLevel": 3,"controlAggregation": "masterPages"},

"detail": {"parent":"objectMDR",controlId:"YOURSPLITAPPID","viewName": "MD.MD_Detail","viewId": "MD_Detail","viewLevel": 4,"controlAggregation": "detailPages"}

give it a try. you have to replace

YOURSPLITAPPID
Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks a lot Jun!
I was using wrongly the parent parameter and I wasn't even noticing.

0