Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns an instance of the FormDataObject class that has the specified ID.
Syntax
public FormDataObject object(FieldId fieldId, [int arrayIndex])
Run On
Client
Parameters
- fieldId
Type: FieldId Extended Data Type
- 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);
}
}