Skip to Content
0
Oct 01, 2018 at 12:07 PM

Cloud Portal URL Parameters

176 Views Last edit Oct 01, 2018 at 07:46 PM 4 rev

Hi guys!
I'm facing big problem with getting data in url query in SAP Coud Platform - Portal. I want to send parameters between two applications in Portal. Everything seems to be working in WebIDE, but when it's deployed on HCP gives error, it's because I can't change url? Is there a way to send data with url parameters or any other way to do it?


When using CrossApplicationNavigation i'm able to read parameter which was sent, but then again - it gives error and returns me to the prevoius page.

var oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");
            var hash = (oCrossAppNavigator && oCrossAppNavigator.hrefForExternal({
                target: {
                    semanticObject: "Formularz011",
                    action: "Display"
                },
                params: {
                    "Id": "12345Id"
                }
            })) || "";
            oCrossAppNavigator.toExternal({
                target: {
                    shellHash: hash
                }
            });

Attachments

hekks.png (1.8 kB)
89b3w.png (1.5 kB)
zdjecie.png (3.2 kB)