FormDataSource.initValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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;
}