FormDataSource.initValue Method [AX 2012]

Initializes field values in a new record.

public void initValue()

Run On

Client

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.

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; 
}

Community Additions

ADD
Show: