Codeunit wDCR_LayoutSelectionMgt
A codeunit with procedures for layout selections.
Properties
Methods
wgFncGetReportLayoutSelection
Procedure to retrieve the report layout selection for specified report ID, company name and user ID.
Parameters
Type |
Name |
Description |
Integer |
pReportID |
Report Object ID |
Text[30] |
pCompanyName |
Company Name |
Guid |
pUserID |
User ID |
Record "Report Layout Selection" temporary |
vRecTempReportLayoutSelection |
The layout selection. |
Text[250] |
vLayoutName |
The name of the layout of the layout selection. |
Guid |
vAppID |
The layout app ID. |
Text[255] |
vMimeType |
The MIME Type of the layout. |
Boolean |
vIsUserDefined |
Whether the layout is a user-defined layout. |
Boolean |
vSelectionExists |
Whether a layout selection exists. |
wgFncRemoveReportLayoutSelections
Removes the report layout selections for the report object with specified ID, in all companies.
Parameters
Type |
Name |
Description |
Integer |
pReportID |
Report Object ID. |
wgFncRemoveReportLayoutSelectionsForCurrentCompany
Removes the report layout selections for the report object with specified ID in the current company only.
Parameters
Type |
Name |
Description |
Integer |
pReportID |
Report Object ID. |
wgFncRemoveTenantReportLayoutSelections
Removes all tenant report layout selections for the specified report layout.
Parameters
Type |
Name |
Description |
Record "Report Layout List" |
pRecReportLayoutList |
The report layout. |
Boolean |
pConfirm |
Whether confirmation from the user is needed. |
wgFncRemoveTenantReportLayoutSelections
Removes all tenant report layout selections for the specified report layout.
Parameters
Type |
Name |
Description |
Integer |
pReportID |
Report Object ID. |
Text[250] |
pLayoutName |
The name of the layout. |
Guid |
pAppID |
The layout app ID. |
Boolean |
pConfirm |
Whether confirmation from the user is needed. |
wgFncSelectLayoutsForAllCompanies
Sets up the report layout selections to the specified report layout for all companies. Confirmation from the user is requested.
Parameters
Type |
Name |
Description |
Record "Report Layout List" |
vRecReportLayoutList |
The report layout. |
wgFncSetReportLayoutSelection
Sets a report layout selection. Copy of "Report Layouts Impl.".SetDefaultReportLayoutSelection
Parameters
Type |
Name |
Description |
Record "Report Layout List" |
pRecSelectedReportLayoutList |
The report layout. |
Text[30] |
pCompanyName |
Company name. |
Returns
Type |
Description |
Boolean |
true iff successful. |
wgFncSetReportLayoutSelection
Sets a report layout selection. Copy of "Report Layouts Impl.".SetDefaultReportLayoutSelection
Parameters
Type |
Name |
Description |
Record "Report Layout List" |
pRecSelectedReportLayoutList |
The report layout. |
Text[30] |
pCompanyName |
Company name. |
Guid |
pUserID |
User ID |
Returns
Type |
Description |
Boolean |
true iff successful. |
wgFncSetReportLayoutSelectionForCurrentCompany
Sets a report layout selection for the current company.
Parameters
Type |
Name |
Description |
Record "Report Layout List" |
pRecSelectedReportLayoutList |
The report layout |
Returns
Type |
Description |
Boolean |
true iff successful |
wlEvpOnBeforeSelectLayoutsForAllCompanies
Allows to hook into setting a report layout to be used in all companies.
Parameters
Type |
Name |
Description |
Record "Report Layout List" |
vRecReportLayoutList |
The report layout. |
Boolean |
vIsHandled |
Set this to true if your extension handles setting report layout selections for the report layout. |