Page 783 Relationship Performance
src/Layers/W1/BaseApp/CRM/Opportunity/RelationshipPerformance.Page.al82 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.CRM.Opportunity;using System.Integration;using System.Visualization;page 783 "Relationship Performance"{ Caption = 'Top 5 Opportunities'; PageType = CardPart; layout { area(content) { field(StatusText; StatusText) { ApplicationArea = RelationshipMgmt; Caption = 'Status Text'; Enabled = false; ShowCaption = false; Style = StrongAccent; StyleExpr = true; ToolTip = 'Specifies the status of the chart.'; Visible = false; } usercontrol(BusinessChart; BusinessChart) { ApplicationArea = RelationshipMgmt; trigger DataPointClicked(Point: JsonObject) begin BusinessChartBuffer.SetDrillDownIndexes(point); RlshpPerformanceMgt.DrillDown(BusinessChartBuffer, TempOpportunity); end; trigger DataPointDoubleClicked(Point: JsonObject) begin end; trigger AddInReady() begin IsChartAddInReady := true; UpdateChart(); end; trigger Refresh() begin if IsChartAddInReady then UpdateChart(); end; } } } actions { } var BusinessChartBuffer: Record "Business Chart Buffer"; TempOpportunity: Record Opportunity temporary; StatusText: Text; IsChartAddInReady: Boolean; protected var RlshpPerformanceMgt: Codeunit "Relationship Performance Mgt."; protected procedure UpdateChart() begin if not IsChartAddInReady then exit; RlshpPerformanceMgt.UpdateData(BusinessChartBuffer, TempOpportunity); BusinessChartBuffer.UpdateChart(CurrPage.BusinessChart); end;}