Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 2.61 KB

File metadata and controls

60 lines (40 loc) · 2.61 KB

Adding Subpages

You can add additional subpages based on the object page template to your app, and, if required, remove them again.

Note:

For information about SAP Fiori elements for OData V4, see Navigation to Subpages.

We recommend that you use SAP Fiori tools, which is a set of extensions for SAP Business Application Studio and Visual Studio Code, to add, remove, and configure pages with the Page Map tool.

You can add further subpages manually in the manifest.json file post-generation.

You can also use the SAP Fiori generator to create a subpage (detail page) for the object page when you create your app. This is expressed in the code as a 1:n association to the root entity and is rendered as a table on the page.

"sap.ui.generic.app":{
   "pages":{
      "entitySet":"SEPMRA_I_ProductWithDraft",
      "component":{
         "name":"sap.suite.ui.generic.template.ListReport",
         "list":true
      },
      "pages":{
         "entitySet":"SEPMRA_I_ProductWithDraft",
         "component":{
            "name":"sap.suite.ui.generic.template.ObjectPage"
         },
         "pages":{
            "entitySet":"SEPMRA_I_ProductTextWithDraft",
            "navigationProperty":"to_ProductText",
            "component":{
               "name":"sap.suite.ui.generic.template.ObjectPage"
            }
         }
      }
   }
},

When first and second level entities are selected during app creation, navigation from the object page to the subpage is automatic based on the configuration. You can remove this configuration from the manifest to delete the subpage and its corresponding link from the object page.

Caution:

SAP Web IDE is no longer available from SAP Business Technology Platform trial accounts. Any references to SAP Web IDE in this documentation are only relevant for you if you have access to SAP Web IDE through a productive SAP BTP account. Please consider SAP Business Application Studio as an alternative. See App Development Using SAP Business Application Studio.

For information about defining an external navigation target using intent-based navigation, see Changing Navigation to Object Page.