FormDataSource.initValue Method

Initializes field values in a new record.

Syntax

public void initValue()

Run On

Client

Remarks

This method is called when a new record is created. It populates the record with initial values for the fields.

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

Examples

The following example overrides FormDataSource.initValue so that the TaxLimitBase field is initialized with a particular value.

public void initValue() 
{ 
    super(); 
    taxTable.TaxLimitBase = TaxLimitBase::InvoiceWithoutVAT; 
}

See Also

FormDataSource Class

FormDataSource.create Method