Closed
Open url on a button click
I have a script that returning a URL as a string value. How can I open that link in a browser on a button click using Pega?
Thanks!
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
I have a script that returning a URL as a string value. How can I open that link in a browser on a button click using Pega?
Thanks!
Use the System.Diagnostics.Process.Start method. I would simply do it in your script, but you can add that method to your Toolbox to add into an automation since it is static.
If you need to automate the website being launched with an adapter, then you'd either set the StartPage property of the adapter and start it with the URL, or you would need to navigate the browser control of the adapter. This option seems unlikely though since you are generating the URL from a script and its probably not a static one you would interrogate.
Hi,
It was really helpful to work.
Thanks...!!!
Question
Question
Question
Question
Question
Question Solved
Question Solved
Question Solved
Question
Discussion
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.