FormBuildControl.addDataField Method [AX 2012]

Adds a control to the control, based on the specified data field information.

public FormBuildControl addDataField(
    int dataSourceId, 
    FieldId fieldId, 
   [int arrayIndex])

Run On

Called

Parameters

dataSourceId
Type: int
An integer value that indicates the ID of the data source that the data field is bound to.
fieldId
Type: FieldId Extended Data Type
A fieldId extended data type value that indicates the ID of the data field.
arrayIndex
Type: int
An integer value that indicates the index of the data field type; optional.

Return Value

Type: FormBuildControl Class
A FormBuildControl object that represents the newly added control.

The type of control that should be added is determined automatically, based on the specified data field information.

The arrayIndex parameter has a default value of 1 when a value is not specified, so that the first index is assumed.

Community Additions

ADD
Show: