1. Saravanakumar Thangapandian
  2. PowerServer 2020 or older (Obsolete)
  3. Wednesday, 2 September 2020 06:02 AM UTC

Hi,

I would like to open a new tab with a URL from the browser where the application is launched.

If the application is launched from Chrome, then it should open a new tab in same chrome browser instance.

If the application is launched from IE, then it should open a new tab in same IE browser instance.

Same for any other browsers (Firefox, Edge).

Any idea, is this can be done in power server web?

 

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 4 September 2020 10:38 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Not really helpfull, but things to think of:

I would say that it depends on your browser configuration if a new page is opened in a new tab on the same browser window or not.

To determine which browser is set as default browser you normally would be able to get that information from the registry, but microsoft keeps changing it and besides ... if you are on powerserver you are either using the registry from the server or using an emulated user copy of a registry, but you have to set the values for that emulated registry from code.

I'm afraid I can't be of more help,

regards.

Comment
There are no comments made yet.
Saravanakumar Thangapandian Accepted Answer Pending Moderation
  1. Friday, 4 September 2020 09:15 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

I'm using Power Builder Version 2019 R2 Build 2328 and Power Server (PB Edition) 2020 Build 2323.00.

I would like to open a new tab with a URL from the browser where the application is launched.
If the application is launched from Chrome, then it should open a new tab in same chrome browser instance.
If the application is launched from IE, then it should open a new tab in same IE browser instance.
Same for any other browsers (Firefox, Edge).

If I use run command to run explorer.exe or chrome.exe, it will just open a new instance of the browser.
But I need to open a new tab in current browser instance.
Can you share sample code if it can be done?

Also, is there a way to determine the browser type in which the application is launched? (Eg Chrome or IE or Opera etc)

Comment
  1. Chris Pollach @Appeon
  2. Friday, 4 September 2020 16:12 PM UTC
Hi Saravanakumar;

Suggestion: use the built-in INET object and its HyperLinkToURL() command instead of RUN().

HTH

Regards ... Chris
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.