Skip to Content
Technical Articles

Navigation from a Custom card in OVP to Object Page of another application

Hi All,

This blog details on Navigation from a custom card in OVP to object page of another application with parameters.


Created an OVP app and added a custom card to it. For more details on how to create a custom card, please refer this blog.

I had a form in my custom card and clicking on header of the card should enable me to navigate to another app’s object page.


  1. Create “other extensions” in OVP extension
  2. a custom.controller.js is craeted in ext folder of the app.
  3. if you had created a custom card , say inside the folder cards, you will be able to see a fragment, a controller and a component.js inside that card as shown in the image below.
  4. Open this component.js and remove the header and footer fragments part.It should have only the content fragment as shown below
    	metadata: {
    			properties: {
    				"contentFragment": {
    					"type": "string",
    					"defaultValue": ""

    5.Open custom.controller.js and override the doCustomNavigation method

doCustomNavigation: function (sCardId, oContext, oNavigationEntry) {

var id=Object.keys(oContext).id
		var oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation"); // get a handle on the global XAppNav service
    target : { shellHash : "app1-display&/object_page_entity_set('"+ig+"')"}

*its ‘”+id+”‘ and not ‘”+ig in +”‘

Note: the shellhasg is ideally the URL of the app2’s object page

6. Save and Run.

7. Now clicking on header of custom card will lead you to object page of app2



Be the first to leave a comment
You must be Logged on to comment or reply to a post.