Page 5229 Confidential Info. Overview
src/Layers/W1/BaseApp/HumanResources/Analysis/ConfidentialInfoOverview.Page.al143 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.HumanResources.Analysis;using Microsoft.Finance.Analysis;using Microsoft.Foundation.Enums;using Microsoft.HumanResources.Employee;using Microsoft.HumanResources.Setup;page 5229 "Confidential Info. Overview"{ Caption = 'Confidential Info. Overview'; DataCaptionExpression = ''; DeleteAllowed = false; InsertAllowed = false; LinksAllowed = false; PageType = Card; SaveValues = true; SourceTable = Employee; layout { area(content) { group("Matrix Options") { Caption = 'Matrix Options'; field(MATRIX_CaptionRange; MATRIX_CaptionRange) { ApplicationArea = BasicHR; Caption = 'Column Set'; Editable = false; ToolTip = 'Specifies the range of values that are displayed in the matrix window, for example, the total period. To change the contents of the field, choose Next Set or Previous Set.'; } } } } actions { area(processing) { action(ShowMatrix) { ApplicationArea = BasicHR; Caption = '&Show Matrix'; Image = ShowMatrix; ToolTip = 'View the data overview according to the selected filters and options.'; trigger OnAction() var MatrixForm: Page "Conf. Info. Overview Matrix"; begin Clear(MatrixForm); MatrixForm.Load(MATRIX_CaptionSet, MatrixRecords, MATRIX_CurrSetLength); MatrixForm.RunModal(); end; } action("Previous Set") { ApplicationArea = BasicHR; Caption = 'Previous Set'; Image = PreviousSet; ToolTip = 'Go to the previous set of data.'; trigger OnAction() begin GenerateColumnCaptions("Matrix Page Step Type"::Previous); end; } action("Next Set") { ApplicationArea = BasicHR; Caption = 'Next Set'; Image = NextSet; ToolTip = 'Go to the next set of data.'; trigger OnAction() begin GenerateColumnCaptions("Matrix Page Step Type"::Next); end; } } area(Promoted) { group(Category_Process) { Caption = 'Process'; actionref(ShowMatrix_Promoted; ShowMatrix) { } actionref("Previous Set_Promoted"; "Previous Set") { } actionref("Next Set_Promoted"; "Next Set") { } } } } trigger OnOpenPage() begin GenerateColumnCaptions("Matrix Page Step Type"::Initial); end; var MATRIX_MatrixRecord: Record Confidential; MatrixRecords: array[32] of Record Confidential; MATRIX_CaptionSet: array[32] of Text[80]; MATRIX_CaptionRange: Text; MATRIX_PKFirstRecInCurrSet: Text; MATRIX_CurrSetLength: Integer; local procedure GenerateColumnCaptions(StepType: Enum "Matrix Page Step Type") var MatrixMgt: Codeunit "Matrix Management"; RecRef: RecordRef; CurrentMatrixRecordOrdinal: Integer; begin Clear(MATRIX_CaptionSet); Clear(MatrixRecords); CurrentMatrixRecordOrdinal := 1; RecRef.GetTable(MATRIX_MatrixRecord); RecRef.SetTable(MATRIX_MatrixRecord); MatrixMgt.GenerateMatrixData( RecRef, StepType.AsInteger(), ArrayLen(MatrixRecords), 1, MATRIX_PKFirstRecInCurrSet, MATRIX_CaptionSet, MATRIX_CaptionRange, MATRIX_CurrSetLength); MATRIX_MatrixRecord.SetPosition(MATRIX_PKFirstRecInCurrSet); repeat MatrixRecords[CurrentMatrixRecordOrdinal].Copy(MATRIX_MatrixRecord); CurrentMatrixRecordOrdinal := CurrentMatrixRecordOrdinal + 1; until (CurrentMatrixRecordOrdinal > MATRIX_CurrSetLength) or (MATRIX_MatrixRecord.Next() <> 1); end;}