1. Kwadwo Boahene
  2. PowerBuilder
  3. Monday, 18 March 2024 14:29 PM UTC

Hi All,

         Is it possible to open a website from regular PowerBuilder Classic application? I experimented  using the

OpenUrl( "https://appeon.com" ) by creating a menu tap and  using the the example I stated earlier and it did not. I even get an "unknown function name: openurl " error.
If it possible how do you go about it? Is there example that I could look at? I am using PB 2019 R3 Build 2779.

Thanks,
Kwadwo Boahene
Accepted Answer
Kwadwo Boahene Accepted Answer Pending Moderation
  1. Wednesday, 27 March 2024 20:05 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi All,

        Further question and help and or suggestion needed. Is it possible that I can call the external application in the my PB app and open it up in window - i.e. opening a window in my PB app will call  (run and open) the external app in the window in my application. Closure of the window closes the external application. Is this even possible and how will one approach it?

 

Thanks,

Kwadwo

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 27 March 2024 20:18 PM UTC
Hi Kwadwo;

You cannot open an App within your PB App BUT .. you can make it look like both Apps EXE's are integrated.

I have done this before by doing a RUN() command on the 2nd PB App's EXE and then using the FindWindow() SDK call to locate the 2nd App's working Window handle. Once i had ithe 2nd App Window's handle, I could then move it to somewhere with the 1st PB App's location. This made it look like the Apps were one.

To close the 2nd PB App when the 1st one closes (since you now have it's Window handle, you can then use the SEND() command to send the 2nd App a request to close. Food for thought.

Regards .. Chris
  1. Helpful 2
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 18 March 2024 17:31 PM UTC
  2. PowerBuilder
  3. # 1

You can use the ShellExecuteW() windows API to open the URL with your browser assigned as default in windows

Works great.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 18 March 2024 14:53 PM UTC
  2. PowerBuilder
  3. # 2

Hi Kwadwo;

  That should work if your PB App EXE has Internet access on the deployment machine.

Does this url work if you use the older HyperLinkToURL() command?

Regards ... Chris 

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 20 March 2024 14:02 PM UTC
Hi BKR;

Build # 3289 is the latest "official" release currently.

Regards ... Chris
  1. Helpful 1
  1. Andreas Mykonios
  2. Wednesday, 20 March 2024 14:21 PM UTC
That's a one-off build. Those builds provide some fixes. If you don't have a specific issue that is fixed by that version then you should stay to the latest official. If you want to know what changes brings the one-off take a look to https://docs.appeon.com/pb/release_bulletin_for_pb/Build-3305-oneoff.html. But I agree with Chris, you should remain to 3289 for the moment.

Andreas.
  1. Helpful 1
  1. Chris Pollach @Appeon
  2. Wednesday, 20 March 2024 14:40 PM UTC
Good advice Andreas as that build has a couple of regression issues and has not been fully System Tested. Staying with build 3289 is the best IMHO as well.
  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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.