cancel
Showing results for 
Search instead for 
Did you mean: 

Disable drill down navigation for CDS view

the1kel1
Explorer
0 Kudos

We have a Fiori app with CDS views and annotations and do not want to utilize the drill down navigation for our app at all. Is there anyway to disable this?

Accepted Solutions (1)

Accepted Solutions (1)

developerone
Contributor

Hello Kelly,

In the manifest.json of your app remove the navigation option under pages.This will remove the details page navigation. Keep a backup of your manifest.json before you make the changes.

    "sap.ui.generic.app": {
        "_version": "1.3.0",
        "pages": [
            {

                        "navigation": {
                            "display": {
                                "path": "sap.apps.crossNavigaton",
                                "target": "NavigationTarget"
                            }

Thank You,

Sai

the1kel1
Explorer
0 Kudos

Hi Sai, thanks for your response. Interestingly enough though, here's the sap.ui.generic.app section in the manifest.json below. I don't see the navigation block there at all. Is it some default thing that I need to put in there and then disable it?

"sap.ui.generic.app": {
		"pages": [
			{
				"entitySet": "Customers",
				"component": {
					"name": "sap.suite.ui.generic.template.ListReport",
					"list": true
				},
				"pages": [
					{
						"entitySet": "Customers",
						"component": {
							"name": "sap.suite.ui.generic.template.ObjectPage"
						}
					}
				]
			}
		]
	},

Answers (3)

Answers (3)

the1kel1
Explorer

Sai - just figured it out. I needed to remove this section in the manifest.json:

"pages": [
					{
						"entitySet": "Customers",
						"component": {
							"name": "sap.suite.ui.generic.template.ObjectPage"
						}
					}
				]

That gets the section down to just this, which is exactly what I needed. Thanks!

"sap.ui.generic.app": {
		"pages": [
			{
				"entitySet": "Customers",
				"component": {
					"name": "sap.suite.ui.generic.template.ListReport",
					"list": true
				}
			}
		]
	}

developerone
Contributor

Yes, Sorry that was 1.3.0 version. Looks like the new list report doesn't have it. I'm glad you figured it out 🙂

the1kel1
Explorer
0 Kudos

Hi Tejas, thanks for your quick response. No, I'm not referring to navigation to different Fiori apps. I'm specifically referring to the drill down navigation that seems to be there by default when using the WebIDE with a List Report Application. Here's a screenshot below. When the user clicks on that row, it goes to a blank page that we haven't defined yet. I'd like to just disable that functionality until a later date. (It also shows the little arrow at the end of each row designating that there is drill down navigation.)

former_member182874
Active Contributor
0 Kudos

Hi Kelly,

If I am not wrong, you want to disable navigation to other fiori app via hyperlink. Which is enabled by CDS annotation in standard fiori app.

If my understanding is correct, you can only assign user specific authorization object from security side and user will not see navigation. In CDS, all the authorizations are controlled by DCL. Go inside your DCL view of the same name as of CDS (eg : I_PURCHASINGCATEGORY). You can notice the code ( aspect pfcg_auth to which objects and activity type (display,create etc))

Regards,

Tejas