FormDataSource.validateDelete Method
Requests that the user confirm the deletion of a record from the data source.
Syntax
public boolean validateDelete()
Run On
Client
Return Value
Type: boolean
true if the deletion is performed successfully; otherwise, false.
Remarks
This method calls the validateDelete method on the data source table. The FormDataSource.validateDelete method is called by the FormDataSource.delete method. Use this method to add custom data validation checks whenever they are required.
The validateDelete method can be overridden on a form data source by right-clicking the Methods node under the data source, pointing to Override Method, and then clicking validateDelete.
Examples
The following example does not call the super() method and returns true. This supresses the display of the delete confirmation message box.
public boolean validateDelete()
{
// Do not display warning dialog.
return true;
}