Partilhar via


FormDataSource.initValue Method

Definition

Initializes field values in a new record.

public:
 override void initValue();
public override void initValue ();
override this.initValue : unit -> unit
Public Overrides Sub initValue ()

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.

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

Applies to