1. Doug Gray
  2. PowerBuilder
  3. Wednesday, 16 December 2020 17:24 PM UTC

Im trying to test the web browser object in PB 2019 R2.

Seems straight forward to just add the object to a window, call navigate in the open window event.


integer li_rtn
li_rtn = wb_1.Navigate(" www.appeon.com ")

but it returns -1

Obviously Im missing something.


Thanks for any help.

Doug Gray Accepted Answer Pending Moderation
  1. Tuesday, 19 January 2021 01:34 AM UTC
  2. PowerBuilder
  3. # 1

After adding the PBDs to my application libraries this problem seems to be fixed. 

 

Thanks for all the help.

Doug

Comment
  1. John Fauss
  2. Tuesday, 19 January 2021 14:25 PM UTC
Glad to hear it is now working for you, Doug. Please mark this question as resolved? Thanks!
  1. Helpful
There are no comments made yet.
Doug Gray Accepted Answer Pending Moderation
  1. Tuesday, 19 January 2021 00:15 AM UTC
  2. PowerBuilder
  3. # 2

I have not resolved this.

 

maybe my application install is missing something because I seem to having other issues like using

 

PBDOM_Builder, I get "illegal data type" when I try to use it to parse XML files.

I will open another issue/question for that problem.


Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Thursday, 17 December 2020 03:52 AM UTC
  2. PowerBuilder
  3. # 3

Greetings, Doug - 

Are you attempting to run this app from the IDE or as a compiled application? Does your app have access to all of the runtime DLL's? There are some new run-time DLL's that implement the new chromium-based browser control.

https://docs.appeon.com/pb2019r2/application_techniques/ch36s04.html

The runtime DLL's for the new webbrowser control are listed at the end of the table.

Regards, John

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 16 December 2020 20:27 PM UTC
  2. PowerBuilder
  3. # 4

Hi Doug;

  This is working OK from my STD Framework's Demo App. It can use both the IE and built-in Web Browsers. Both of these have no issues with the Appeon Website. Here is an example of using the built-in control ....

Here is the code that drives the Web Browser control from the Post Constructor event ...

sr_pass_data        lo_sr
lo_sr                    = Message.Powerobjectparm
THIS.tag                =    lo_sr.si_data[1]
THIS.navigate ( THIS.Tag )
PARENT.Title        +=    Upper ( THIS.tag )

Here is the value of the structure's "si_data[1]" ...

HTH

Regards ... Chris

 

 

Comment
There are no comments made yet.
Doug Gray Accepted Answer Pending Moderation
  1. Wednesday, 16 December 2020 17:38 PM UTC
  2. PowerBuilder
  3. # 5

Thanks, I did have https://  I was trying them all.

 

 wb_1.Navigate("https://www.appeon.com")

 wb_1.Navigate("http://www.appeon.com")

 wb_1.Navigate("/www.appeon.com")

 

 

So I assume there is nothing else needed to initialize the web browser object ?

 

Thanks

Doug

Comment
  1. Bruce Armstrong
  2. Thursday, 17 December 2020 01:05 AM UTC
And you aren't setting and proxy settings, correct?
  1. Helpful
There are no comments made yet.
Bruce Armstrong Accepted Answer Pending Moderation
  1. Wednesday, 16 December 2020 17:35 PM UTC
  2. PowerBuilder
  3. # 6

Try putting "https://" on the front of your URL.

The browser control supports loading files from different sources, such as local files though "file://", so you need the "https://"  on the URL to indicate where it's being loaded from.

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