Adding a Client-Side Event to a DataWindow

Implement DataWindow client-side events using Java scripts.

  1. In the WorkSpace Navigator, select the .jsp file for the Web page on which you want to create a client-side event.
  2. In the Web Page editor, right-click the DataWindow you want to use and select Edit Client Side Even Scripts.
  3. Select the client-side event scripts for the DataWindow and click OK.
    Table 1. Client-side events
    Client event Event fired in browser through client-side DataWindow object model
    buttonClicking DataWindow button is clicking in the DataWindow in the browser.
    buttonClicked Datawindow button is clicked in the DataWindow in the browser.
    onClicked Mouse is clicked in the DataWindow in the browser.
    itemChanged DataWindow data item is changed in the browser by the user.
    itemError DataWindow data item change does not pass the client-side validation.
    itemFocusChanged Focus is changed to another data item.
    rowFocusChanging Focus is going to be changed to another row.
    rowFocusChanged Focus changes to another row.
  4. Edit the client-side event Java script to accommodate the task that you want to accomplish.
Related tasks
Creating a DataWindow Library in Sybase WorkSpace
Creating a DataWindow in Sybase WorkSpace
Importing a DataWindow Library into a Project
Importing a DataWindow into a DataWindow Library
Configuring a DataWindow Library List
Adding a Server-Side Event to a DataWindow
Enabling Extended Attributes
Related reference
JSF DataWindow Database Driver Support

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.