Page 37092 Sustainability Report
src/Apps/W1/PowerBIReports/App/_Obsolete/Sustainability/EmbeddedPages/SustainabilityReport.Page.al64 lines, Copyright (c) Microsoft Corporation. MIT
#if not CLEAN27// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.PowerBIReports;using System.Integration.PowerBI;page 37092 "Sustainability Report"{ UsageCategory = ReportsAndAnalysis; ApplicationArea = All; PageType = UserControlHost; Caption = 'Sustainability Report'; AboutTitle = 'About Sustainability Report'; AboutText = 'The Sustainability Report offers a view of all Sustainability report pages embedded into a single page for easy access. '; ObsoleteReason = 'Please use and extend page "Sustainability Report Power BI" on the Sustainability app.'; ObsoleteState = Pending; ObsoleteTag = '27.0'; 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 '', Locked = true; trigger OnOpenPage() var PowerBIReportsSetup: Record "PowerBI Reports Setup"; begin SetupHelper.EnsureUserAcceptedPowerBITerms();#pragma warning disable AL0801 ReportId := SetupHelper.GetReportIdAndEnsureSetup(CurrPage.Caption(), PowerBIReportsSetup.FieldNo("Sustainability Report ID"));#pragma warning restore AL0801 end;}#endif