Page 37039 Project Invd. Sales by Cust.

PowerBI Reports, Microsoft.PowerBIReports

src/Apps/W1/PowerBIReports/App/Projects/Embedded/ProjectInvdSalesbyCust.Page.al56 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.PowerBIReports;using System.Integration.PowerBI;page 37039 "Project Invd. Sales by Cust."{    UsageCategory = ReportsAndAnalysis;    ApplicationArea = All;    PageType = UserControlHost;    Caption = 'Project Invoiced Sales by Customer (Power BI)';    AboutTitle = 'About Project Invoiced Sales by Customer (Power BI)';    AboutText = 'The Project Invoiced Sales by Customer report details invoiced sales for a project, broken down by customer. It includes key KPIs such as % Invoiced, Billable Invoiced Price, and Billable Total Price, offering a clear view of project invoicing by customer. ';    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 'ReportSectioncd82c6e10e816900e80b', Locked = true;    trigger OnOpenPage()    begin        ReportId := SetupHelper.OpenPowerBIEmbeddedReportPageValidation("PBI Report Setup"::"Projects App");    end;}