ProjRevenueTrans.validateWrite Method

Determines whether the current record is valid and ready to be written to the database.

Syntax

public boolean validateWrite([boolean _checkVal])

Run On

Called

Parameters

  • _checkVal
    Type: boolean
    Indicator to perform additional validation. Set to false to only perform validation check in the parent method and skip the validation in this method; optional.

Return Value

Type: boolean
true if the record is valid; otherwise, false.

Remarks

This method must be called before a record is written to the database. It is automatically called from forms when the user tries to save the record. In addition to mandatory field validation performed by the parent method, this method calls ProjValCheckTrans.ValidateMandatory to perform additional validations based on project parameter settings. It also calls ProjRevenueTrans.smaValidateSubscription to validate SMASubscription related fields if appropriate.

See Also

Reference

ProjRevenueTrans Table