ButtonClicked

Occurs when the user clicks a button inside a DataWindow object.

Applies to

Web DataWindow client control

Arguments

Argument Description
sender String. Identifier for the button the user clicked.
row Number. The number of the current row when the user clicked the button.
objectName String. The name of the control within the DataWindow under the pointer when the user clicked.

Return codes

There are no special outcomes for this event. The only code is:

Usage

ButtonClicked fires only for buttons with the UserDefined action. Other buttons cause the page to be reloaded from the server. The ButtonClicked event executes code after the action assigned to the button has occurred.
Note: The server-side event that posts back to the ButtonClicked client-side event can be triggered by these default event handlers: PBDataWindow_ButtonClicked, PBDataWindow_ButtonClicking, PBDataWindow_Clicked, and PBDataWindow_DelayedClicked.

This event is fired only if you have not selected Suppress Event Processing for the button. If Suppress Event Processing is on, only the Clicked event and the action assigned to the button are executed when the button is clicked.

If Suppress Event Processing is off, the Clicked event and the ButtonClicked event are fired. If the return code of the ButtonClicking event is 0, the action assigned to the button is executed and the ButtonClicked event is fired. If the return code of the ButtonClicking event is 1, neither the action nor the ButtonClicked event is executed.