AxInternalBase.setField Method [AX 2012]

Assigns a value to a field in the currentRecord that is assigned to the AxBC class.

Syntax

protected void setField(FieldId _fieldId, anytype _anytype)

Run On

Called

Parameters

  • _anytype
    Type: anytype
    The value that you want to assign to the field.

Remarks

This method is intended for use by the fieldName and parmFieldName methods in the AxBC class.

The setField method on an AxInternalBase object checks whether the field has already been set to a specific value. If the field has not been set to a value, this method assigns the specified value to the field. It also updates the list of fields that have assigned values assigned to them. If the field has already been set to a value, this method does not assign the value to the field.

An actual implementation can be viewed in the declaration of the parmCustGroup method on the AxSalesTable class.

See Also

AxInternalBase Class

AxSalesTable.parmCustGroup Method