Skip to Content
0

Sapui5 Fiori Elements call new objectpage coming from template

Feb 13 at 09:38 AM

54

avatar image
Former Member

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

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

4 Answers

Joseph BERTHE Feb 13 at 04:33 PM
1

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

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

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?

0
Joseph BERTHE Feb 27 at 11:04 AM
1

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
						}
					}
				}]
			}]
		}]
	},
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Feb 14 at 08:22 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Akshaya Parthasarathy Feb 27 at 10:57 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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