Programmatically set URL in browser widget without opening a new window

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hi there, we want to render a few things on a server and display the output in a browser widget, we know how to set the url programatically, but it opens a new window instead of replacing the content in the browser.

We found how to change the url in the docs (https://docs.kony.com/konyonpremises/Subsystems/Widget_User_Guide/Content/Browser_Basic_Properties.htm#requestURLConfig) and in basecamp, (https://basecamp.force.com/konycommunity/s/question/0D56A000011trlTSAQ/how-to-change-the-url-for-browser-widget-in-code) and (https://basecamp.kony.com/s/question/0D56A00000XTRzRSAX/is-it-possible-to-change-the-masterdata-content-of-browser-widget-dynamically-by-code-if-yes-what-will-be-the-syntax-and-format-for-it)

TL;DR we can change a browser widget url, but it opens a new window, how do we do it so it replaces the content in the browser widget

Hi,

if you set the URL to the browser widget in SPA/Desktopweb then it will open in new window only.

As these are single page applications, if platform open the URL in same window it will loose the application context.

Other alternative is use htmlString property and give html as input.