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
- classId
Type: ClassId Extended Data Type
The ID of the class.
- 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));