Question

How to open a URL from activity

Hi,

can you please help to resolve the below issue.

I have a requirement where after collecting certain parameters from Activity steps I need to open the URL with collected Parameters by passing them, can any one please let me know how this can be achieved.

I tried to use Show-HTML method with custom JSP page calling in it but it is not working.

Can anyone please let me know the step by step approach to achieve this requirement.

I have referred the below articles on PDN but they are unable to fulfill the requirement.

https://community1.pega.com/community/pega-support/question/open-url-activity-new-tab-or-pop-window

https://community1.pega.com/community/pega-support/question/open-url-activity

Thanks.

***Moderator Edit-Vidyaranjan: Updated Platform Capability***

Comments

Keep up to date on this post and subscribe to comments

Pega
September 30, 2019 - 12:57am

Hi,

Would calling Show-Harness activity from current activity help your requirement?

There is also an on-click action called Open URL In WIndow. This also might be helpful instead of using an activity.

Thanks

 

September 30, 2019 - 2:46am
Response to Srinivas21

Hi Srinivas,

Thanks for quick reply.

The requirement is to call a new URL from activity, hence calling open URL in new window on click of link/button is not something that we are looking for.

Hence can you please let me know how to open a URL from activity with parameters collected from activity.

 

Thanks.

Pega
September 30, 2019 - 4:33am
Response to YogeshSarsambe

Hi Yogesh,

I understand that your requirement is to call open URL from activity. Does calling Show-Harness activity work for you?

Thanks

Pega
September 30, 2019 - 7:56am
Response to YogeshSarsambe

Also, you could consider using the window.open JS function: https://www.w3schools.com/jsref/met_win_open.asp

September 30, 2019 - 9:07am

How is the activity itself initiated ? If on user event , then try using JavaScript to first call the activity and then use window.open() to open the desired URL in new window.