AxdBase.setParmMethodAsMandatory Method [AX 2012]

Sets the field specified by a parm method as mandatory in the schema and XML.

Syntax

public void setParmMethodAsMandatory(ClassId classId, str parmMethod)

Run On

Server

Parameters

  • parmMethod
    Type: str
    The name of the parm method.

Remarks

This method should only be called when the AxdBase.initMandatoryFieldsMap Method is overridden.

Use the classnum Function to make sure that the classId parameter is correct.

Examples

The following example shows how to specify a parm method from the AxdBase class as mandatory:

this.setParmMethodAsMandatory( 
    classnum(AxdSalesOrder), 
    methodstr(AxdBase,parmDocPurpose));

See Also

AxdBase Class

AxdBase.setTableFieldAsMandatory Method

AxdBase.initMandatoryFieldsMap Method