Page 6277 Emissions vs Target Power BI

Sustainability, Microsoft.PowerBIReports

src/Apps/W1/Sustainability/app/src/PowerBI/Embedded/EmissionsvsTargetPowerBI.Page.al61 lines, Copyright (c) Microsoft Corporation. MIT

namespace Microsoft.PowerBIReports;using System.Integration.PowerBI;page 6277 "Emissions vs Target Power BI"{    UsageCategory = ReportsAndAnalysis;    ApplicationArea = All;    PageType = UserControlHost;    Caption = 'Realized Emissions vs. Target (Power BI)';    AboutTitle = 'About Realized Emissions vs. Target (Power BI)';    AboutText = 'The Realized Emissions by Target report breaks down your carbon emissions and allows for comparison against the target. This allows you to effectively monitor planned progress and drive continuous improvement to sustainability goals.';    layout    {        area(Content)        {            usercontrol(PowerBIAddin; PowerBIManagement)            {                ApplicationArea = All;                trigger ControlAddInReady()                begin                    SetupHelper.InitializeEmbeddedAddin(CurrPage.PowerBIAddin, ReportId, ReportPageLbl);                end;                trigger ReportLoaded(ReportFilters: Text; ActivePageName: Text; ActivePageFilters: Text; CorrelationId: Text)                begin                    SetupHelper.LogReportLoaded(CorrelationId);                end;                trigger ErrorOccurred(Operation: Text; ErrorText: Text)                begin                    SetupHelper.LogError(Operation, ErrorText);                    SetupHelper.ShowPowerBIErrorNotification(Operation, ErrorText);                end;            }        }    }    var        SetupHelper: Codeunit "Power BI Report Setup";        ReportId: Guid;        ReportPageLbl: Label 'b5e269104115da14c7e4', Locked = true;    trigger OnOpenPage()    var        PowerBIReportsSetup: Record "PowerBI Reports Setup";    begin        SetupHelper.EnsureUserAcceptedPowerBITerms();#if not CLEAN27#pragma warning disable AL0801#endif        ReportId := SetupHelper.GetReportIdAndEnsureSetup(CurrPage.Caption(), PowerBIReportsSetup.FieldNo("Sustainability Report ID"));#if not CLEAN27#pragma warning restore AL0801#endif    end;}