onClick example
The following onClick event handler for an Add button puts the form’s primary rowset in Append mode to allow entry of a new row.
function newButton_onClick( )
form.rowset.beginAppend( )
The onClick of a menu item often executes a method of the form. In this example, a menu item calls the onClick event handler of the equivalent button on the form.
function addMenu_onClick( )
form.newButton.onClick( )
This example demonstrates a Next Page button in a report.
function nextPageButton_onClick( )
form.endPage := ++form.startPage
form.render( )