Skip to content

Codeunit WSB_DCAFolderStructure

Implements the WSB_IDCARemoteFolderStructure for custom folder structures that are defined in the BC client and can be customized by administrators.

Properties

Name Value
Access Public

Methods

wgFncCopyRemoteFolderStructure

Creates a copy of an existing remote folder structure. Opens a page where the user can enter a code and description for the new folder structure.

Parameters

Type Name Description
Record "WSB_DCAFolderStructure" pRecWSB_DCAFolderStructure The existing folder structure.

Returns

Type Description
Boolean true iff the folder structure has been copied.

wgFncCopyRemoteFolderStructure

Creates a copy of an existing remote folder structure.

Parameters

Type Name Description
Record "WSB_DCAFolderStructure" pRecWSB_DCAFolderStructure The existing folder structure.
Code[30] pNewFolderStructureCode The code of the new folder structure
Text[100] pNewFolderStructureDesc The description of the new folder structure.

wgFncCreateSampleFolderStructure

Creates a sample folder structure.

Returns

Type Description
Boolean true iff the sample folder structure has been created by the procedure.

wgFncEditTableFolderStructureFilters

Edit the filters for a table-specific folder structure entry.

Parameters

Type Name Description
Record "WSB_DCATableFolderStructure" vRecWSB_DCATableFolderStructure The table-specific folder structure entry

Returns

Type Description
Boolean true iff the filters were edited successfully.

wgFncExportFolderStructures

Exports folder structure(s) to an XML file.

Parameters

Type Name Description
Record "WSB_DCAFolderStructure" vRecWSB_DCAFolderStructure Filter of the folder structures to export.

wgFncExportFolderStructures

Exports folder structure(s) as XML to a BLOB.

Parameters

Type Name Description
Record "WSB_DCAFolderStructure" vRecWSB_DCAFolderStructure Filter of the folder structures to export.
Codeunit "Temp Blob" vCduTempBlob The TempBlob to write the folder structures to.

wgFncGetDocumentArchiveFolderStructureFileFilter

Returns the file filter for Document Archive Folder Structure files.

Returns

Type Description
Text Document Archive Folder Structure file filter.

wgFncGetDocumentArchiveFolderStructuresFileExtension

Returns the file extension for Document Archive folder structure files.

Returns

Type Description
Text[3] Document Archive folder structure file extension.

wgFncGetFolderPathEntryText

Gets the folder path part for a folder path structure entry.

Parameters

Type Name Description
Record "WSB_DCAFolderPathStructure" pRecWSB_DCAFolderPathStructure The folder path structure entry.

Returns

Type Description
Text The folder path part for the entry.

wgFncGetFolderPathEntryText

Gets the folder path part for a folder path structure entry.

Parameters

Type Name Description
Record "WSB_DCAFolderPathStructure" pRecWSB_DCAFolderPathStructure The folder path structure entry.
Record "WSB_DCAFile" pRecWSB_DCAFile The Document Archive file to get the path for.

Returns

Type Description
Text The folder path part for the entry.

wgFncGetRemoteFolderPath

Retrieves the remote folder path for a file record.

Parameters

Type Name Description
Record "WSB_DCAFile" pRecWSB_DCAFile The file record.

Returns

Type Description
Text The remote folder path.

wgFncGetRemoteFolderPath

Retrieves the remote folder path for a specific folder structure for a file record.

Parameters

Type Name Description
Code[30] pFolderStructureCode The code of the folder structure.
Record "WSB_DCAFile" pRecWSB_DCAFile The file record.

Returns

Type Description
Text The remote folder path.

wgFncGetRemoteFolderPathSample

Retrieves a sample remote folder path.

Returns

Type Description
Text The remote folder path.

wgFncGetRemoteFolderPathSample

Retrieves a sample remote folder path for a specific folder structure.

Parameters

Type Name Description
Record "WSB_DCAFolderStructure" pRecWSB_DCAFolderStructure The folder structure.

Returns

Type Description
Text The remote folder path.

wgFncGetRemoteFolderPathSample

Retrieves a sample remote folder path for a specific folder structure.

Parameters

Type Name Description
Code[30] pFolderStructureCode The code of the folder structure.

Returns

Type Description
Text The remote folder path.

wgFncGetRemoteFolderPathSample

Retrieves a sample remote folder path for a specific folder structure, specifically for a table.

Parameters

Type Name Description
Code[30] pFolderStructureCode The code of the folder structure.
Integer pTableNo The ID of the table to get a sample folder path for.

Returns

Type Description
Text The remote folder path.

wgFncGetRemoteFolderPathSample

Retrieves a sample remote folder path for a table-specific folder structure.

Parameters

Type Name Description
Record "WSB_DCATableFolderStructure" pRecWSB_DCATableFolderStructure The table-specific folder structure.

Returns

Type Description
Text The remote folder path.

wgFncGetRemoteFolderPathSample

Retrieves a sample remote folder path for a specific folder structure, specifically for a record.

Parameters

Type Name Description
Code[30] pFolderStructureCode The code of the folder structure.
Variant pRecRelatedVariant The record.

Returns

Type Description
Text The remote folder path.

wgFncGetSampleFolderStructureCode

Retrieve the code/identifier of the sample folder structure.

Returns

Type Description
Code[30] The code of the sample folder structure.

wgFncGetTableFolderStructureFiltersText

Gets the table-specific folder structure entry's filters as a readable text.

Parameters

Type Name Description
Record "WSB_DCATableFolderStructure" vRecWSB_DCATableFolderStructure The table-specific folder structure.

Returns

Type Description
Text The filters as a readable text.

wgFncGetTableFolderStructureFilterView

Gets the table-specific folder structure entry's filter view.

Parameters

Type Name Description
Record "WSB_DCATableFolderStructure" vRecWSB_DCATableFolderStructure The table-specific folder structure.

Returns

Type Description
Text The filter view.

wgFncImportFolderStructures

Imports folder structures from an XML file.

wgFncImportFolderStructures

Imports folder structure(s) that were stored in XML format.

Parameters

Type Name Description
Codeunit "Temp Blob" pCduTempBlob The TempBlob to read the folder structure(s) from.

wgFncSelectTableFilters

Lets the user select table filters for a table-specific folder structure entry.

Parameters

Type Name Description
Integer pTableNumber The ID of the table.
Text pTableCaption The caption of the table.
Text pInputFilterViewAsText The current filter view.
Text vOutputFilterViewAsText The output filter view.

Returns

Type Description
Boolean true iff filters were selected successfully (false if the user aborted).

wgFncSetRemoteFileName

Sets the remote file name for a file record.

Parameters

Type Name Description
Record "WSB_DCAFile" vRecWSB_DCAFile The file record.

wlEvpOnBeforeGetFolderPathEntryValueText

Allows to hook into determining a folder path part for a remote folder path.

Parameters

Type Name Description
Record "WSB_DCAFolderPathStructure" pRecWSB_DCAFolderPathStructure The folder path entry record.
Record "WSB_DCAFile" pRecWSB_DCAFile The Document Archive File record.
Text vFolderPathEntryValueText The folder path part.
Boolean vIsHandled Set this to true if your extension handles computing a folder path part for this folder path entry record.