Hello,
Using PB 2019 R3 build 2703, Webbrowser control
Need to call a powerbuilder event from a html file with JS function(s). How to call it?
Tried by going through few videos and codes from Appeon website.
Window consists of a webbrowser (wb_1) which display a login page<html>. Login page consists of two fields and one button.
Two Fields: userid & password
Button: Login
event : ue_login
On click of the login button, it calls a js function loginprocess. Code is given below.
function loginprocess()
{
alert("login clicked");
return window.webBrowser.ue_login();
}
In the above code, alert message gets displayed, but the event is not triggered.
Event is registered, in the open event of the window.
wb_1.RegisterEvent ( "ue_login" )
Is this the way to call a pb event from JS?
If not, can you direct me to any link / document to achieve this?
Happiness Always
BKR Sivaprakash