This documentation is archived and is not being maintained.
AxdBase::newClassId Method [AX 2012]
Instantiates a document class object.
server public static AxdBase newClassId(ClassId _classId)
Run On
Server
Return Value
Type:
AxdBase Class
An object of the document class according to the input parameter.
Any document class object should always be instantiated through the newClassId method. It verifies that the class is a document class.
The following example shows how to instantiate an instance of AxdSalesOrder.
AxdBase axdBase =
AxdBase::newClassId(classNum(AxdSalesOrder));