VersioningCompare.insertVersioningTmpTrans Method [AX 2012]

Inserts a record in the VersioningTmpTrans temporary table with the comparison of a single record.

protected RecId insertVersioningTmpTrans(
    Common _currentRecord, 
    boolean _foundOld, 
    boolean _foundNew, 
    Common _oldRecord, 
    Common _newRecord, 
    RecId _parentRecId)

Run On

Server

Parameters

_currentRecord
Type: Common Table
The record in the table that holds the current version. For example, a PurchLine record.
_foundOld
Type: boolean
A Boolean value that specifies whether the current record occurs in the old version.
_foundNew
Type: boolean
A Boolean value that specifies whether the current record occurs in the new version.
_oldRecord
Type: Common Table
The record from the history table that represents the old version of the current record. For example, a PurchLineHistory record.
_newRecord
Type: Common Table
The record from the history table that represents the new version of the current record. For example, a PurchLineHistory record.
_parentRecId
Type: RecId Extended Data Type
The record ID of the parent record in the VersioningTmpTrans temporary table. This parameter is used to reflect the tree structure in the temporary table.

Return Value

Type: RecId Extended Data Type
The value of the RecId field of the record inserted in the VersioningTmpTrans temporary table.

The method compares the two versions of the current record and saves the fields which differs as a record in the VersioningTmpTrans temporary table.

The returned RecId field can be used as argument on a following call to this method.

Community Additions

ADD
Show: