1. Roland Smith
  2. PowerBuilder
  3. Thursday, 1 February 2024 20:20 PM UTC

I have PowerBuilder 2022 Build 1892.

When viewing a PDF, the Download button does nothing. I do get pbcefcache and pbcefdownload folders under my user temp folder. The pbcefdownload folder is empty.

The WebBrowserGet & WebBrowserSet functions do not exist despite them being added in 2019-R3. Were they removed?

 

John Fauss Accepted Answer Pending Moderation
  1. Thursday, 1 February 2024 22:35 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Roland - 

I believe the error is because you are trying to execute the (non-existent) WebBrowserGet method of the web browser control. WebBrowserGet and WebBrowserSet are PowerScript functions, not object functions.

Best regards, John

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 1 February 2024 20:38 PM UTC
  2. PowerBuilder
  3. # 2

I have 1892 and 1900 installed with 1892 set as current.

WebBrowserGet & WebBrowserSet are in the help file but not in the 'System Browser Window'. I get this error message in code:

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 1 February 2024 21:20 PM UTC
Must be your code - LOL!

Seriously though .. I have no idea. Have you traced the WebBrowser controls activity during this request in the various WB Control events?

Events like "DownloadingOperationStateChanged", "DownloadingStart", "DownloadingStateChanged", "ResourceRedirect", "NavigationCompleted", "NavigationProgressIndex", NavigationStart", "NavigationStateChanged",

and most importantly the "NavigationError" event. HTH
  1. Helpful
  1. Roland Smith
  2. Thursday, 1 February 2024 21:24 PM UTC
It navigates fine to the PDF file. The problem is with the Download button display by the PDF viewer built into CEF.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 1 February 2024 22:11 PM UTC
Hmmmm .. that could be a limitation of the old Chromium engine's capabilities.

Have you had a chance to try a quick test using PB 2022 R3 version & thus, the WebView2 engine?
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 1 February 2024 20:31 PM UTC
  2. PowerBuilder
  3. # 3

Hi Roland;

  The WebBrowserGet & WebBrowserSet commands are still there in PB 2022 R2 / R3 & higher (of course).

  However, the arguments used & returned though are different in PB 2019/2022 R3 as those PB versions now use the WebView2 engine "under the hood" to drive the built-in Web Browser control. Your PB 2022 R2 still uses the old Chromium engine "under the hood" to drive the built-in Web Browser control. 

PB 2022 R2: https://docs.appeon.com/pb2022r2/powerscript_reference/WebBrowserSet_func.html

PB 2019/2022 R3: https://docs.appeon.com/pb2022r3/powerscript_reference/WebBrowserSet_func.html

HTH

Regards .. Chris

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.