FormDataSource.object Method

Returns an instance of the FormDataObject class that has the specified ID.

Syntax

public FormDataObject object(FieldId fieldId, [int arrayIndex])

Run On

Client

Parameters

  • arrayIndex
    Type: int

Return Value

Type: FormDataObject Class
An instance of the FormDataObject class that has the ID that is specified in the objectId parameter.

Examples

The following example creates a FormDataObject object for the RepositoryFolder field in the SysVersionControlParameters table, and then sets the AllowEdit property for the field to true.

public void initFormDatasource(FormDataSource _formDataSource) 
{ 
    FormDataObject dataObject = _formDataSource.object( 
        fieldnum(SysVersionControlParameters, RepositoryFolder)); 
  
    if (dataObject) 
    { 
        dataObject.allowEdit(true); 
    } 
}

See Also

Reference

FormDataSource Class