Validate

Description

Occurs immediately after the context is restored in the server component.

Applies to

PSWebDataWindowClass objects

Arguments

None

Returns

Boolean. If true is returned, the validation is considered successful. If false is returned, the webdw.ValidationError event is triggered. You get a compiler error if you do not include a return value in the event script.

Usage

The server component action is performed only after the validation succeeds.

Examples

Example 1

This example makes sure that the salary entered is greater than $20,000.

var result;
/* real(gettext() )  > 20000 */
result = (parseFloat(exprCtx.currentText) > 20000);
return result;

See also