Page 7401 Report Selection - Warehouse
src/Layers/W1/BaseApp/Warehouse/Setup/ReportSelectionWarehouse.Page.al102 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.Warehouse.Setup;using System.Reflection;page 7401 "Report Selection - Warehouse"{ AboutTitle = 'About report selection for warehouse'; AboutText = 'On this page, you set up the default reports that are used when printing warehouse documents such as picks, put-aways, and shipments. Use the Usage field to select the type of document, then specify which reports to use in the list below.'; ApplicationArea = Basic, Suite; Caption = 'Report Selection - Warehouse'; PageType = Worksheet; SaveValues = true; SourceTable = "Report Selection Warehouse"; UsageCategory = Administration; DelayedInsert = true; layout { area(content) { field(ReportUsage2; ReportUsage2) { ApplicationArea = Basic, Suite; Caption = 'Usage'; ToolTip = 'Specifies which type of document the report is used for.'; trigger OnValidate() begin SetUsageFilter(true); end; } repeater(Control1) { ShowCaption = false; field(Sequence; Rec.Sequence) { ApplicationArea = Basic, Suite; ToolTip = 'Specifies a number that indicates where this report is in the printing order.'; } field("Report ID"; Rec."Report ID") { ApplicationArea = Basic, Suite; LookupPageID = Objects; ToolTip = 'Specifies the object ID of the report.'; } field("Report Caption"; Rec."Report Caption") { ApplicationArea = Basic, Suite; DrillDown = false; LookupPageID = Objects; ToolTip = 'Specifies the display name of the report.'; } } } area(factboxes) { systempart(Control1900383207; Links) { ApplicationArea = RecordLinks; Visible = false; } systempart(Control1905767507; Notes) { ApplicationArea = Notes; Visible = false; } } } actions { } trigger OnNewRecord(BelowxRec: Boolean) begin Rec.NewRecord(); end; trigger OnOpenPage() begin SetUsageFilter(false); end; var ReportUsage2: Enum "Report Selection Warehouse Usage"; local procedure SetUsageFilter(ModifyRec: Boolean) begin if ModifyRec then if Rec.Modify() then; Rec.FilterGroup(2); Rec.SetRange(Usage, ReportUsage2); Rec.FilterGroup(0); CurrPage.Update(); end;}