FormDataSource.object Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
object(Int32) |
Returns an instance of the FormDataObject class that has the specified ID. |
object(Int32, Int32) |
object(Int32)
Returns an instance of the FormDataObject class that has the specified ID.
public:
override Dynamics::AX::Application::FormDataObject ^ object(int num1);
public override Dynamics.AX.Application.FormDataObject object (int num1);
override this.object : int -> Dynamics.AX.Application.FormDataObject
Public Overrides Function object (num1 As Integer) As FormDataObject
Parameters
- num1
- Int32
Returns
An instance of the FormDataObject class that has the ID that is specified in the objectId parameter.
Remarks
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);
}
}
Applies to
object(Int32, Int32)
public:
override Dynamics::AX::Application::FormDataObject ^ object(int _fieldId, int _arrayIndex);
public override Dynamics.AX.Application.FormDataObject object (int _fieldId, int _arrayIndex);
override this.object : int * int -> Dynamics.AX.Application.FormDataObject
Public Overrides Function object (_fieldId As Integer, _arrayIndex As Integer) As FormDataObject
Parameters
- _fieldId
- Int32
- _arrayIndex
- Int32