cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Cross Navigation (External) Between App 1 to App 2

pghoshroy
Explorer

Hi Experts,

I was hoping if you could assist me the following:

I am trying to build an external navigation from App 1 to App 2; however, the App2 has a strange parameter for input “action=DisplayID”. The code is provided below:

	onListNavigationExtension: function (oEvent) {
		var oNavigationController = this.extensionAPI.getNavigationController();
		var oBindingContext = oEvent.getSource().getBindingContext();
		var oObject = oBindingContext.getObject();
		oNavigationController.navigateExternal("SalesOrderDisplay", {
			"action=DisplayℴID": oObject.OrderNumber // Note this is the proprty name from odata
		});
		return true;
	},

The code above creates the URL in the following way:

#<SematicObject>-<Action>?action%25253DDisplay%252526orderID=550011048&sap-xapp-state=ASUV9VVTRZ69UUUZ528FGAN1QU9C8NQ64CF3TH0V

As you can see the '=' and "&" have been replaced by URL Encoded values. Any suggestion as to how I can pass this string “action=DisplayℴID” as a parameter so that the URL that is formed is like this:

#<SematicObject>-<Action>?action=DisplayID=550011048&sap-xapp-state=ASUV9VVTRZ69UUUZ528FGAN1QU9C8NQ64CF3TH0V.

Code Extract:

oNavigationController.navigateExternal("SalesOrderDisplay", {
			"action=DisplayℴID": oObject.OrderNumber // Note this is the proprty name from odata
		});

Regards,

Pablo Ghosh Roy

Accepted Solutions (1)

Accepted Solutions (1)

former_member620231
Participant
0 Kudos

Hi Pablo,

I don't think this is possible with the built-in app navigator. I think you should use it just to check if App2 is available and then make a custom navigation using window.location.

Alex

Answers (3)

Answers (3)

ThorstenHoefer
Active Contributor
0 Kudos
akshaya_p
Contributor
0 Kudos

can u try

decodeURI()?

pghoshroy
Explorer
0 Kudos

Hi Alex,

Thank you so much for your response, I will try what you have advised.

Merry Christmas and a Happy New Year :).

Regards,

Pablo Ghosh Roy