Share via


FormBuildActionPaneControl.addDataField Method

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

Syntax

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

Run On

Client

Parameters

  • dataSourceId
    Type: int
    An integer value that indicates the ID of the data source that the data field is bound to.
  • 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.

Remarks

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

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

See Also

Reference

FormBuildActionPaneControl Class