PrintMgmtSetupDoc::construct Method [AX 2012]

Creates a new document.

client server public static PrintMgmtSetupDoc construct(
    PrintMgmtNodeInstance _nodeInstance, 
    PrintMgmtDocumentType _docType, 
    LanguageId _langId, 
   [PrintMgmtSetupFolder _parent])

Run On

Called

Parameters

_nodeInstance
Type: PrintMgmtNodeInstance Class
The node instance to use to configure the document.
_docType
Type: PrintMgmtDocumentType Enumeration
The document type of the new document.
_langId
Type: LanguageId Extended Data Type
The language ID for the new document.
_parent
Type: PrintMgmtSetupFolder Class
The folder in which to store the new document.

Return Value

Type: PrintMgmtSetupDoc Class
The new document.

ExceptionCondition
Error

The required node instance is missing.

-or-

The document type is invalid.

Do not use this method, use PrintMgmtSetupItem::newDoc.

Show: