Occurs when the user clicks anywhere in a Web DataWindow client control.
Argument |
Description |
---|---|
sender |
Object. The source of the event. |
row |
Number. The number of the row the user clicked. |
objectName |
String. The name of the control within the DataWindow under the pointer when the user clicked. |
Web DataWindow client control
Set the return code to affect the outcome of the event:
0 Continue processing
1 Prevent the focus from changing
When the user clicks on a DataWindow button, the Clicked event occurs before the ButtonClicking event. When the user clicks anywhere else, the Clicked event occurs when the mouse button is released.
This script in a .aspx file submits the value of the selected row in the DataWindow to the server:
function objdwCustomers_Clicked(sender, rowNumber, objectName) { document.Form1.rownum.value = rowNumber; document.Form1.submit(); }
The clicked event is defined in the element for the Web DataWindow client control in the form:
<dw:webdatawindowcontrol id="dwCustomers" runat="server" DataWindowObject="d_customer" LibraryList="masterdetail.pbl" ClientEventClicked="objdwCustomers_Clicked" ...> </dw:webdatawindowcontrol>