Page 6315 PBI Top 5 Opportunities, source in 29

Source29

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

page 6315 "PBI Top 5 Opportunities"
{
    Caption = 'PBI Top 5 Opportunities';
    Editable = false;
    PageType = List;
    SourceTable = "Power BI Chart Buffer";
    SourceTableTemporary = true;

    layout
    {
        area(content)
        {
            repeater(Group)
            {
                field(ID; Rec.ID)
                {
                    ApplicationArea = All;
                    Caption = 'ID';
                }
                field("Measure No."; Rec."Measure No.")
                {
                    ApplicationArea = All;
                    Caption = 'Opportunity No.';
                    ToolTip = 'Specifies the opportunity.';
                }
                field(Value; Rec.Value)
                {
                    ApplicationArea = All;
                    Caption = 'Value';
                }
                field("Measure Name"; Rec."Measure Name")
                {
                    ApplicationArea = All;
                    Caption = 'Measure Name';
                }
            }
        }
    }

    actions
    {
    }

    trigger OnOpenPage()
    var
        PBITopOpportunitiesCalc: Codeunit "PBI Top Opportunities Calc.";
    begin
        PBITopOpportunitiesCalc.GetValues(Rec);
    end;
}