Page 1506 Workflow Event Hierarchies

Base Application, System.Automation

src/Layers/W1/BaseApp/System/Workflow/WorkflowEventHierarchies.Page.al98 lines, Copyright (c) Microsoft Corporation. MIT

namespace System.Automation;using Microsoft.Finance.Analysis;using Microsoft.Foundation.Enums;page 1506 "Workflow Event Hierarchies"{    ApplicationArea = Suite;    Caption = 'Workflow Event Hierarchies';    PageType = ListPlus;    UsageCategory = Administration;    layout    {        area(content)        {            part(MatrixEventSubpage; "WF Event/Event Comb. Matrix")            {                ApplicationArea = Suite;                Caption = 'Supported Events';            }        }    }    actions    {        area(processing)        {            action(PreviousSet)            {                ApplicationArea = Suite;                Caption = 'Previous Set';                Image = PreviousSet;                ToolTip = 'Go to the previous set of data.';                trigger OnAction()                begin                    SetColumns("Matrix Page Step Type"::Previous);                end;            }            action(NextSet)            {                ApplicationArea = Suite;                Caption = 'Next Set';                Image = NextSet;                ToolTip = 'Go to the next set of data.';                trigger OnAction()                begin                    SetColumns("Matrix Page Step Type"::Next);                end;            }        }        area(Promoted)        {            group(Category_Process)            {                Caption = 'Process';                actionref(PreviousSet_Promoted; PreviousSet)                {                }                actionref(NextSet_Promoted; NextSet)                {                }            }        }    }    trigger OnOpenPage()    begin        SetColumns("Matrix Page Step Type"::Initial);    end;    var        MatrixManagement: Codeunit "Matrix Management";        ColumnSetEvents: Text;        MATRIX_ColumnCaptions_Events: array[12] of Text[80];        PKFirstRecInCurrSetEvents: Text;        ColumnSetLengthEvents: Integer;    local procedure SetColumns(StepType: Enum "Matrix Page Step Type")    var        WorkflowEvent: Record "Workflow Event";        EventRecRef: RecordRef;    begin        EventRecRef.Open(DATABASE::"Workflow Event");        MatrixManagement.GenerateMatrixData(            EventRecRef, StepType.AsInteger(), ArrayLen(MATRIX_ColumnCaptions_Events),            WorkflowEvent.FieldNo(Description), PKFirstRecInCurrSetEvents, MATRIX_ColumnCaptions_Events,            ColumnSetEvents, ColumnSetLengthEvents);        CurrPage.MatrixEventSubpage.PAGE.SetMatrixColumns(MATRIX_ColumnCaptions_Events, ColumnSetLengthEvents);        CurrPage.Update(false);    end;}