cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Hana Cloud Portal - Url Parameters in URL-Widget

christophroth
Explorer
0 Kudos

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-x...

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)