Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Triggering PowerBuilder events in JavaScript – PB Docs 2022 – PowerBuilder Library

Triggering PowerBuilder events in JavaScript – PB Docs 2022

Triggering PowerBuilder events in JavaScript

You can define PowerBuilder user events for WebBrowser and then
trigger the event in JavaScript.

The PowerBuilder user event to be registered should be defined as
follows.

User events can be defined with one string-type parameter and
string-type return value (code
example
) or no parameters.

User events must be registered by RegisterEvent function before they
can be triggered in JavaScript.

After a PowerBuilder user event is registered successfully, it can
be triggered by JavaScript on Web in the following ways (assuming the
name of the registered event is TestPBEvent)

  • Syntax 1: trigger the user event synchronously and return a
    string

  • Syntax 2: trigger the user event asynchronously and return a
    JavaScript Promise object.

Note

In the registered PowerBuilder user event, only the asynchronous
function EvaluateJavascriptAsync can be called; it is not allowed to
call any other WebBrowser functions.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x