on 2021 Dec 22 1:03 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
52 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.