Global::enableDSField Method [AX 2012]

Enable or disable the specified field in the data source.

Syntax

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

Run On

Called

Parameters

  • _enable
    Type: boolean
    A Boolean value indicating whether the field should be enabled.

Remarks

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.

See Also

Reference

Global Class