Global::enableDSField Method [AX 2012]

Enable or disable the specified field in the data source.

client server public static void enableDSField(
    FormDataSource _datasource, 
    FieldId _fieldId, 
    boolean _enable)

Run On

Called

Parameters

_datasource
Type: FormDataSource Class
The form datasource to enable the fields for.
_fieldId
Type: FieldId Extended Data Type
The ID of the field to enable or disable.
_enable
Type: boolean
A Boolean value indicating whether the field should be enabled.

This is a convenience method to enable or disable and assign the skip property for a field in the associated data source. The field id must be valid for the table in referenced by this data source.

When the field is disabled for input then the skip attribute will be enabled.

Show: