FormGroupControl.addDataField Method [AX 2012]

Adds a table field.

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

Run On

Client

Parameters

dataSourceId
Type: int
An Integer data type that specifies the table ID.
fieldId
Type: FieldId Extended Data Type
A fieldId system data type that specifies the field ID.
insertAfter
Type: FormControl Class
A FormControl object that indicates the position of the control; optional. The default value is nullNothingnullptrunita null reference (Nothing in Visual Basic).
arrayIndex
Type: int

Return Value

Type: FormControl Class
A FormControl object that modifies a form control.

Community Additions

ADD
Show: