Skip to Content
0

SAPUI5: Master-detail app with several master and detail pages

Jan 17 at 11:14 AM

34

avatar image
Former Member

Hello dear experts,

Currently I am trying solve the below scenario:

By clicking the button in the first ( main ) detail page I need to navigate to second master page which contains also list of other items.

For navigation to the second master page I am using

		this.getRouter().navTo("master2", {
				ModuleId: sModuleId,
				EvalobjId: sEvalObjid,
				Peryr: sYear,
				Perid: sSession,
				AgrType: sAprType
			}, null);

And my routes looks like below:

	"routes": [
				{
					"pattern": "",
					"name": "master",
					"target": [
						"object",
						"master"
					]
				},
				{
					"pattern": "ModuleListSet/{objectId}",
					"name": "object",
					"target": [
						"master",
						"object"
					]
				},
				{
					"pattern": "createAssessment/{ModuleId}",
					"name": "route_CreatePage",
					"target": [
						"master",
						"target_CreatePage"
					]
				},
				{
					"pattern": "editAssessment/ModuleId/{ModuleId}/EvalobjId/{EvalobjId}/Peryr/{Peryr}/Perid/{Perid}/AgrType/{AgrType}",
					"name": "master2",
					"target": [
						"master2",
						"target_CreatePage"
					]
				}
			],

The problem is: The controllers of master pages are always triggering even the routes

are different. How to avoid this behavior ?

PS: I did not find any similar scenario on the Web.

Maybe somebody has already done scenario with several master and detail pages preferable using XML views. I will be very grateful if anybody could share ideas and in ideal case simple demo solution.

Thanks in advance,

Best regards,

Rufat

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

0 Answers