The following DataWindow events can be handled on the client side in JavaScript code:
Clicked
ButtonClicking
ButtonClicked
DoubleClicked
ItemChanged
ItemError
ItemFocusChanged
RButtonDown
RowFocusChanged
RowFocusChanging
For more information on client-side events, see Chapter 3, “Client-Side Events and Default Event Handlers.”
To specify a JavaScript function for handling a client-side event, you must indicate the function to call in the corresponding Web DataWindow property. The name of the corresponding property consists of the name of the client-side event with an “OnClient” prefix. For example, the property corresponding to the ItemChanged event is OnClientItemChanged.
The following example references a script called MyDwClickedEventHandler for the client-side DataWindow Clicked event. The script for the MyDwClickedEventHandler event handler must use the syntax for the client-side Clicked event described in Chapter 3, “Client-Side Events and Default Event Handlers.”
#IF Defined PBDOTNET THEN
dw_1.JavaScriptFile = “D:\Scripts\MyScriptFile.js”
dw_1.OnClientClicked = “MyDWClickedEventHandler”
#END IF