Skip to Content

SAP Hana Cloud Portal - Url Parameters in URL-Widget

Hello,

I've created a page on SAP Hana Cloud Portal based on the Successfactors Extension Template. Inside the page i have placed a URL-Widget linked to my Java-Application running on SAP Hana Cloud Platform.

The cloud portal page is called by Successfactors with the URL-Parameter ?parentId=xxx.

The Problem is that i need the parameter in my Java-Application hosted in the URL-Widget.

Here's a sample:

The URL to my Cloud Portal page is:

https://cloudnwcportal-xxxxxxx.us1.hana.ondemand.com/portal/cloud-portal/index.html?id=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&mode=consumption&personId=91

The URL to my Java-Application hosted in the URL-Widget is:

https://xxxxxxxxx.hana.ondemand.com/sample/index.html

But i want to call my Application with the parameter from the Cloud Portal Page:

https://xxxxxxxxx.hana.ondemand.com/sample/index.html?personId=91

Is there any way to pass the URL-Parameters from the Cloud Portal Page to the URL-Widget inside the page?

Thanks for help,

Christoph

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 27, 2015 at 03:35 PM

    Christoph,


    You cannot pass a parameter to a URL widget in runtime, you can only define the URL in the widget settings including the parameter, but that will be constant.

    Instead you can create an OpenSocial widget that opens a URL in an iFrame (which is exactly what the URL widget does), but now you have control over the widget’s code and can pass a parameter on runtime, possibly using pub-sub to send information from another widget.

    Regards,

    Guy

    Add comment
    10|10000 characters needed characters exceeded