1. Steven Turner
  2. PowerBuilder
  3. Thursday, 10 March 2022 15:21 PM UTC

Good morning,

We are currently using PB2017 R3 (upgrading in 2 months to PB21) and we are having an issue with all URLs defaulting to IE. We are using Windows 10 and I have Edge set as my default. If I click a link within MS Teams, it opens in Edge. If I add a static hyperlink to a window in PB2017 R3 it open in IE.

Is there something I can set to stop it from using IE? 

Thanks in advance...

Steven Turner Accepted Answer Pending Moderation
  1. Thursday, 10 March 2022 17:19 PM UTC
  2. PowerBuilder
  3. # 1

Thank you sir. I will give it a try

Comment
  1. John Fauss
  2. Monday, 21 March 2022 15:33 PM UTC
Steven - With your issue in mind I created a global function to interrogate the Registry and determine the path and name/extension of the user's default browser. It was published in CodeXchange a short while ago:

https://community.appeon.com/index.php/codeexchange/powerbuilder/313-a-get-default-browser-function

FYI - Appeon has commented that this problem you're experiencing has been fixed in PB 2019.
  1. Helpful 2
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 10 March 2022 17:03 PM UTC
  2. PowerBuilder
  3. # 2

Hi, Steven - 

I believe this issue has been addressed in later versions of PB. I tested in PB 2019 R3 a StaticHyperLink control in a window (I use Chrome as my default browser), and when running the app, I clicked on the hyperlink and Chrome opened and the requested URL was retrieved and displayed.

If you're unable to wait until you migrate your app, you may have to resort to simulating a StaticHyperLink control by using a StaticText control configured to look the same and coding the Clicked event. You can obtain the name of a user's default web browser from the Windows Registry. You can find information on the Registry key(s) to use on the web.

Regards, John

Comment
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.