AxdBase::newClassId Method [AX 2012]
Instantiates a document class object.
Syntax
server public static AxdBase newClassId(ClassId _classId)
Run On
Server
Parameters
- _classId
Type: ClassId Extended Data Type
The class ID of the document class that will be instantiated.
Return Value
Type: AxdBase Class
An object of the document class according to the input parameter.
Remarks
Any document class object should always be instantiated through the newClassId method. It verifies that the class is a document class.
Examples
The following example shows how to instantiate an instance of AxdSalesOrder.
AxdBase axdBase =
AxdBase::newClassId(classNum(AxdSalesOrder));