FormDataSource.validateWrite Method

Determines whether data is valid and ready to be written.

Syntax

public boolean validateWrite()

Run On

Client

Return Value

Type: boolean
Returns true if data is valid; otherwise, false.

Remarks

This method is called from the FormDataSource.write method. If false is returned, the write operation is aborted and an error message is displayed.

Override this method to add custom validation routines to your data source.

The validateWrite 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 validateWrite.

The call to the super() method in this method calls the validateWrite method on the table that is used as a data source. Therefore, the return value of the super() method should be examined. If you override the method, it should return true only if the super() method also returns true.

See Also

FormDataSource Class

FormDataSource.write Method