Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Tags:
Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question