cancel
Showing results for 
Search instead for 
Did you mean: 

Sapui5 Fiori Elements call new objectpage coming from template

0 Kudos

Hello everybody,

I have the following scenario:

I've created a list report application using the fiori elements. Using annotations etc I can call my first objectpage from clicking on a list item.

If I add another table to my object page, how do I call a new objectpage when I click on a lineitem on the first object page?

Kind regards

Laurens

Accepted Solutions (0)

Answers (4)

Answers (4)

Joseph_BERTHE
Active Contributor

Look at my example :

"sap.ui.generic.app": {
		"pages": [{
			"entitySet": "SOHeaders",
			"component": {
				"name": "sap.suite.ui.generic.template.ListReport",
				"list": true
			},
			"pages": [{
				"entitySet": "SOHeaders",
				"component": {
					"name": "sap.suite.ui.generic.template.ObjectPage"
				},
				"pages": [{
					"navigationProperty": "to_SOItem",
					"entitySet": "SOItems",
					"component": {
						"name": "sap.suite.ui.generic.template.ObjectPage",
						"settings": {
							"allowDeepLinking": true
						}
					}
				}, {
					"navigationProperty": "to_SOPartner",
					"entitySet": "SOPartners",
					"component": {
						"name": "sap.suite.ui.generic.template.ObjectPage",
						"settings": {
							"allowDeepLinking": true
						}
					}
				}]
			}]
		}]
	},
Joseph_BERTHE
Active Contributor

Hello,

In the manifest you have to add in pages Section the same data than your first object page but with the correct navigation name.

Sorry I cannot give you an exemple I'm on my mobile 🙂

Regards,

Joseph

akshaya_p
Contributor
0 Kudos

Hi Joseph.

I added additional pages. But somehow my navigation doesn't occur with deep navigation

from listreport to objectpage 1, I have navigation property1 and from object page 1 to 2 I have navigation property 2.

ideally it shd be rendered as listreport entityset/navigationprop1/navigationprop2. But this doesnt happen can u please help?

akshaya_p
Contributor
0 Kudos

I'm also having the same problem. Were you able to work it out?

0 Kudos

In the end I decided to go for my own application and using local annotation files to fill data for smarttables etc. I think the templates are create if the functionality you require is limited and you can use the CDS views with its annotations.

Kind regards

Laurens

0 Kudos

Thank you joseph for your answer. I'll try that later this week. Currently using the "old" way to create the pages by myself but I'm convinced we need to do it this way in the future!

Cheers!

Laurens