Share via


PmfFormCtrl.enableDSField Method [AX 2012]

Enables or disables the specified field in the data source.

Syntax

protected void enableDSField(FieldId _fieldId, boolean _enable)

Run On

Called

Parameters

  • _enable
    Type: boolean
    true to enable the field for input; otherwise, false.

Remarks

This is a convenience method to enable, to disable, or to assign the skip property for a field in the associated data source. The form data source must be specified through one of the data source event methods or explicitly through the PmfFormCtrl.setDatasources method before it calls this method. The field ID must be valid for the table that is referenced by this data source.When the specified field is disabled for input, the skip attribute is enabled.

See Also

Reference

PmfFormCtrl Class