How to open an external URL from 4gl safe code?

Hi, 

we know the option to open an external url from 4gl safe code like this:

Callui RETVALUE="" With "UIAction=" + chr$(1) + "OpenFile",
& "UILocalDir=" + chr$(1) + "HTTPS",
& "UILocalFile=" + chr$(1) + "example.com"

Is it possible to assign the target of the link? Our goal is to use named browser tabs to open similar url's in the same browser tab and not every time in a new tab.

Maybe is there another way to open an external from within 4gl safe code?

Thanks 

  • FormerMember
    0 FormerMember 4 months ago

    Did you try to run a javascript command? Maybe "UILocalFile=" + chr$(1) + "javascript:window.location.replace("example.com")"

    Another try would be exploring ASYR* functions and call a function under nodejs.