Codeunit WSB_DCATransferFileMgt
Exposes procedures for transferring files from one record to another (N.B. without making actual copies).
Properties
Methods
wgFncEditTransferFileSettingsFilters
Edit the source or target filters for a transfer file settings record.
Parameters
Type |
Name |
Description |
Record "WSB_DCATransferFileSettings" |
vRecWSB_DCATransferFileSettings |
The entity definition |
Option |
pType |
The type of filter (source or target). |
Returns
Type |
Description |
Boolean |
true iff the filters were edited successfully. |
wgFncGetAllowedTargetsForSource
Gets the targets that are allowed for a source.
Parameters
Type |
Name |
Description |
Enum "WSB_DCATransferFileSource" |
pSource |
The source. |
List |
vAllowedTargets |
The allowed targets in a list. |
wgFncGetTransferFileSettingsFiltersText
Gets the transfer file settings' filters as a readable text.
Parameters
Type |
Name |
Description |
Record "WSB_DCATransferFileSettings" |
vRecWSB_DCATransferFileSettings |
The transfer file settings record. |
Option |
pType |
The type of filter (source or target). |
Returns
Type |
Description |
Text |
The filters as a readable text. |
wgFncGetTransferFileSettingsFilterView
Gets the transfer file settings record's filter view.
Parameters
Type |
Name |
Description |
Record "WSB_DCATransferFileSettings" |
vRecWSB_DCATransferFileSettings |
The transfer file settings record. |
Option |
pType |
The type of filter (source or target). |
Returns
Type |
Description |
Text |
The filter view. |
wgFncLookupTransferFileTargets
Opens the "Transfer Target Lookup" page to select transfer targets for a transfer source. If the user clicks on "OK" to close the page, the selected transfer targets will be returned.
Parameters
Type |
Name |
Description |
Boolean |
pAllowMultiselect |
Whether to allow multi-select. |
Enum "WSB_DCATransferFileSource" |
pSource |
The source to select targets for. |
Record "WSB_DCATransferTargetLookup" temporary |
vRecTempWSB_DCATransferTargetLookup |
The selected transfer target(s). |
Returns
Type |
Description |
Boolean |
true iff the user entity definition(s) and pressed "OK". |
wgFncRemoveTransferredFiles
Removes all files that were earlier transferred from one record to another record.
Parameters
Type |
Name |
Description |
Variant |
pSourceRecRelatedVariant |
The record where the Document Archive Files were copied from. |
Variant |
pTargetRecRelatedVariant |
The record where the Document Archive Files were copied to, and from which they will be unlinked. |
Returns
Type |
Description |
Boolean |
true iff successfully unlinked/removed the transferred files. |
wgFncSetTransferFileSettingsFilterView
Set the filter view for a transfer file settings record.
Parameters
Type |
Name |
Description |
Record "WSB_DCATransferFileSettings" |
vRecWSB_DCATransferFileSettings |
The transfer file settings record. |
Option |
pType |
The type of filter (source or target). |
Text |
pNewTableViewAsText |
The table filter view as text |
Returns
Type |
Description |
Boolean |
true iff applying the view was successful. |
wgFncTransferFiles
Transfers all Document Archive files attached to one record to another record.
Parameters
Type |
Name |
Description |
Variant |
pSourceRecRelatedVariant |
The record to copy the Document Archive Files from. |
Variant |
pTargetRecRelatedVariant |
The record to copy the Document Archive Files to. |
Returns
Type |
Description |
Boolean |
true iff successfully transferred the files. |
wgFncTransferFiles
Transfers all Document Archive files attached to one record to another record.
Parameters
Type |
Name |
Description |
Variant |
pSourceRecRelatedVariant |
The record to copy the Document Archive Files from. |
Variant |
pTargetRecRelatedVariant |
The record to copy the Document Archive Files to. |
Boolean |
pFollowTransferSettings |
Whether to follow the Transfer File Settings. |
Returns
Type |
Description |
Boolean |
true iff successfully transferred the files. |
wlEvpOnAfterGetAllowedTargetsForSource
Allows to hook into getting the targets that are allowed for a source.
Parameters
Type |
Name |
Description |
Enum "WSB_DCATransferFileSource" |
pSource |
The source. |
List |
vAllowedTargets |
The allowed targets for the source. |
wlEvpOnAfterGetSourceRecordForProdOrderLine
Allows to hook into getting the source record to possibly transfer Document Archive files from.
Parameters
Type |
Name |
Description |
Record "Prod. Order Line" |
pRecProdOrderLine |
The production order header record. |
Variant |
vSourceRecordVariant |
The source record for the production order line. |
Boolean |
vSuccess |
Set this to true if your extension successfully found a source record with Document Archive files to transfer files from. |
wlEvpOnAfterGetSourceRecordForProductionBOMLine
Allows to hook into getting the source record to possibly transfer Document Archive files from.
Parameters
Type |
Name |
Description |
Record "Production BOM Line" |
pRecProductionBOMLine |
The production BOM line record. |
Variant |
vSourceRecordVariant |
The source record for the production BOM line. |
Boolean |
vSuccess |
Set this to true if your extension successfully found a source record with Document Archive files to transfer files from. |
wlEvpOnAfterGetSourceRecordForProductionOrder
Allows to hook into getting the source record to possibly transfer Document Archive files from.
Parameters
Type |
Name |
Description |
Record "Production Order" |
pRecProductionOrder |
The production order header record. |
Variant |
vSourceRecordVariant |
The source record for the production order header. |
Boolean |
vSuccess |
Set this to true if your extension successfully found a source record with Document Archive files to transfer files from. |
wlEvpOnAfterGetSourceRecordForPurchaseLine
Allows to hook into getting the source record to possibly transfer Document Archive files from.
Parameters
Type |
Name |
Description |
Record "Purchase Line" |
pRecPurchLine |
The purchase line record. |
Variant |
vSourceRecordVariant |
The source record for the purchase line. |
Boolean |
vSuccess |
Set this to true if your extension successfully found a source record with Document Archive files to transfer files from. |
wlEvpOnAfterGetSourceRecordForSalesLine
Allows to hook into getting the source record to possibly transfer Document Archive files from.
Parameters
Type |
Name |
Description |
Record "Sales Line" |
pRecSalesLine |
The sales line record. |
Variant |
vSourceRecordVariant |
The source record for the sales line. |
Boolean |
vSuccess |
Set this to true if your extension successfully found a source record with Document Archive files to transfer files from. |
wlEvpOnAfterGetTransferFileSourceForTable
Allows to hook into getting the transfer file source for a table ID.
Parameters
Type |
Name |
Description |
Integer |
pTableNo |
The ID of the table to get the transfer file source for. |
Enum "WSB_DCATransferFileSource" |
vTransferFileSource |
The transfer file source. |
Boolean |
vFound |
Set this to true if your extension found a transfer file source type for the table with this ID. |
wlEvpOnAfterGetTransferFileSourceTableNo
Allows to hook into getting the table ID for a transfer file source.
Parameters
Type |
Name |
Description |
Enum "WSB_DCATransferFileSource" |
pTransferFileSource |
The transfer file source (enum). |
Integer |
vTableNo |
The corresponding table ID. |
wlEvpOnAfterGetTransferFileTargetForTable
Allows to hook into getting the transfer file target for a table ID.
Parameters
Type |
Name |
Description |
Integer |
pTableNo |
The ID of the table to get the transfer file target for. |
Enum "WSB_DCATransferFileTarget" |
vTransferFileTarget |
The transfer file target. |
Boolean |
vFound |
Set this to true if your extension found a transfer file target type for the table with this ID. |
wlEvpOnAfterGetTransferFileTargetTableNo
Allows to hook into getting the table ID for a transfer file target.
Parameters
Type |
Name |
Description |
Enum "WSB_DCATransferFileTarget" |
pTransferFileTarget |
The transfer file target (enum). |
Integer |
vTableNo |
The corresponding table ID. |
wlEvpOnAfterTransferFiles
Allows to hook into the moment right after files are transferred from a source to target record.
Parameters
Type |
Name |
Description |
Variant |
pSourceRecRelatedVariant |
The source record. |
Variant |
pTargetRecRelatedVariant |
The target record. |
Boolean |
pFollowTransferSettings |
Whether to follow the transfer settings configuration. |
Boolean |
vSuccess |
Whether transferring files was performed successfully. |
Boolean |
vIsHandled |
Set this to true if your extension handles transferring files for this record-type combination. |
wlEvpOnBeforeRemoveTransferredFiles
Allows to hook into removing linked transferred files from a record.
Parameters
Type |
Name |
Description |
Variant |
pSourceRecRelatedVariant |
The source record. |
Variant |
pTargetRecRelatedVariant |
The target record. |
Boolean |
vSuccess |
Whether the files were removed successfully. |
Boolean |
vIsHandled |
Set this to true if your extension handles removing the linked transferred files for this record-type combination. |
wlEvpOnBeforeTransferFiles
Allows to hook into the moment right before files are transferred from a source to target record.
Parameters
Type |
Name |
Description |
Variant |
pSourceRecRelatedVariant |
The source record. |
Variant |
pTargetRecRelatedVariant |
The target record. |
Boolean |
pFollowSetup |
Whether to follow the transfer settings configuration. |
Boolean |
vSuccess |
Whether transferring files was performed successfully. |
Boolean |
vIsHandled |
Set this to true if your extension handles transferring files for this record-type combination. |