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

ButtonClicking – PB Docs 120 – PowerBuilder Library

ButtonClicking – PB Docs 120


ButtonClicking

Occurs when the user clicks a button inside a DataWindow object. This event occurs before the ButtonClicked event.

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

Set the return code to affect the outcome of the event:

  • 0 � execute the action assigned to the button, then trigger the ButtonClicked event.
  • 1 � prevent the action assigned to the button from executing and the ButtonClicked event from firing.

Usage

Use the ButtonClicking event to execute code before the action assigned to the button occurs. If the return code is 0, the action assigned to the button is then executed and the ButtonClicked event is fired. If the return code is 1, the action and the ButtonClicked event are inhibited.

Note: The server-side event that posts back to the ButtonClicking 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.

The Clicked event is fired before the ButtonClicking event.


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