Show TOC

SubpagesLocate this document in the navigation structure

If desired, you can add additional subpages based on the object page template to your app.

The SAP Web IDE smart templates wizard allows you to create one 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 in the object page.

Removing the Subpage

By default, navigation from the subpage automatically generated by the wizard is available from the object page through the preset definition of a subpage for the corresponding entity set. Simply remove this to delete the subpage and corresponding link in the object page.

Adding Subpages

You can add further subpages manually in the manifest.json file post-generation, as shown below:

"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"
							}
						}
					]                       
				}
			]
		}
	]
},			
More Information

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