Share via


AssetTransfer.setUpTransferData Method [AX 2012]

Prepares the asset transfer data by executing the AOT query for transfer from dimension and transfer to dimension.

Syntax

protected AssetTmpAssetTransferHistory setUpTransferData(Query _query, [boolean _forUpdate])

Run On

Server

Parameters

  • _query
    Type: Query Class
    The AOT query contains either a AssetFromDimension query or a AssetToDimension query.
  • _forUpdate
    Type: boolean
    A Boolean value that indicates whether to update the AssetTmpAssetTransferHistory record for dimension to value or to insert the record; optional.

Return Value

Type: AssetTmpAssetTransferHistory Table
The AssetTmpAssetTransferHistory table buffer.

Remarks

This method executes the AOT queries both for an asset transfer from dimension and a transfer to dimension. For the transfer from dimension, records are inserted in the AssetTmpAssetTransferHistory table. For the transfer to dimension, records are updated if they are found; otherwise records are inserted with only transfer to dimension.

See Also

Reference

AssetTransfer Class