PrintMgmtSetupDocInstance::deepCopyOnServer Method [AX 2012]

Creates a new copy of the document instance and all of the members by running on the server tier.

server private static PrintMgmtDocInstance deepCopyOnServer(
    RefRecId _fromDocInstanceRecId, 
    PrintMgmtNodeInstance _nodeInstance, 
    PrintMgmtDocumentType _docType, 
    PrintMgmtPriorityId _priority, 
    PrintMgmtSetupName _name, 
    PrintMgmtDocInstanceType _type, 
    LanguageId _langId)

Run On

Server

Parameters

_fromDocInstanceRecId
Type: RefRecId Extended Data Type
The record ID of the document instance from which to copy.
_nodeInstance
Type: PrintMgmtNodeInstance Class
The node instance of the new copy.
_docType
Type: PrintMgmtDocumentType Enumeration
The document type of the new copy.
_priority
Type: PrintMgmtPriorityId Extended Data Type
The priority of the new instance.
_name
Type: PrintMgmtSetupName Extended Data Type
The name of the new instance.
_type
Type: PrintMgmtDocInstanceType Enumeration
The document instance type of the new instance.
_langId
Type: LanguageId Extended Data Type
The language ID of the new instance.

Return Value

Type: PrintMgmtDocInstance Table
The new document instance.

ExceptionCondition
Deadlock

A deadlock exception occurs after the OCCRetryCount retried.

The new persisted state for all settings and their associated identification text is created and loaded into new objects.

Show: