Page 6307 PBI Aged Acc. Payable, source in 29

Source29

src/Layers/W1/BaseApp/Integration/PowerBI/ReportingData/PBIAgedAccPayable.Page.al73 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.Integration.PowerBI;

using Microsoft.Finance.ReceivablesPayables;
using System.Visualization;

page 6307 "PBI Aged Acc. Payable"
{
    Caption = 'PBI Aged Acc. Payable';
    Editable = false;
    PageType = List;
    SourceTable = "Power BI Chart Buffer";
    SourceTableTemporary = true;

    layout
    {
        area(content)
        {
            repeater(Control8)
            {
                ShowCaption = false;
                field(ID; Rec.ID)
                {
                    ApplicationArea = All;
                    Caption = 'ID';
                }
                field(Value; Rec.Value)
                {
                    ApplicationArea = All;
                    Caption = 'Value';
                }
                field("Period Type"; Rec."Period Type")
                {
                    ApplicationArea = All;
                    Caption = 'Period Type';
                    ToolTip = 'Specifies the type.';
                }
                field(Date; Rec.Date)
                {
                    ApplicationArea = All;
                    Caption = 'Date';
                }
                field("Date Sorting"; Rec."Date Sorting")
                {
                    ApplicationArea = All;
                    Caption = 'Date Sorting';
                }
                field("Period Type Sorting"; Rec."Period Type Sorting")
                {
                    ApplicationArea = All;
                    Caption = 'Period Type Sorting';
                }
            }
        }
    }

    actions
    {
    }

    trigger OnOpenPage()
    var
        PBIAgedAccCalc: Codeunit "PBI Aged Acc. Calc";
        ChartManagement: Codeunit "Chart Management";
    begin
        PBIAgedAccCalc.GetValues(Rec, CODEUNIT::"Aged Acc. Payable", ChartManagement.AgedAccPayableName());
    end;
}