Skip to Content
avatar image
Former Member

Sapui5 Fiori Elements call new objectpage coming from template

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Feb 13 at 04:33 PM

    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

    Add comment
    10|10000 characters needed 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?

  • Feb 27 at 11:04 AM

    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
    						}
    					}
    				}]
    			}]
    		}]
    	},
    
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 14 at 08:22 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 27 at 10:57 AM

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

    Add comment
    10|10000 characters needed 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