Skip to content

KVSPSAJob PSA Chart Mgt#

Events#

KVSPSAOnAddMeasure(Record Business Chart Buffer, Enum Business Chart Type, Enum KVSPSAJobChartType) :#

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAddMeasure(var BusinessChartBuffer: Record "Business Chart Buffer"; BusinessChartType: Enum "Business Chart Type"; JobChartType: Enum "KVSPSAJobChartType"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob PSA Chart Mgt", 'KVSPSAOnAddMeasure', '', false, false)]
local procedure DoSomethingKVSPSAOnAddMeasure(var BusinessChartBuffer: Record "Business Chart Buffer"; BusinessChartType: Enum "Business Chart Type"; JobChartType: Enum "KVSPSAJobChartType")
begin
end;

KVSPSAOnMapPageIdToJobChartType(Integer, Enum KVSPSAJobChartType) :#

Summary: Event triggered when mapping a page ID to a job chart type during chart management initialization. Allows subscribers to define custom mappings between page IDs and job chart types for pages not handled by standard mappings.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnMapPageIdToJobChartType(CurrPageID: Integer; var JobChartType: Enum "KVSPSAJobChartType"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob PSA Chart Mgt", 'KVSPSAOnMapPageIdToJobChartType', '', false, false)]
local procedure DoSomethingKVSPSAOnMapPageIdToJobChartType(CurrPageID: Integer; var JobChartType: Enum "KVSPSAJobChartType")
begin
end;

Parameters:

  • CurrPageID: The current page ID that needs to be mapped to a job chart type.
  • JobChartType: The job chart type enum that subscribers can set to define the appropriate chart type for the given page ID.

KVSPSAOnSetJobChartValuesChart(Record Business Chart Buffer, Record Job, Enum KVSPSAJobChartType) :#

Summary: Event triggered when setting job chart values for custom job chart types. Allows subscribers to populate chart data for job chart types that are not handled by the standard chart value population logic.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnSetJobChartValuesChart(var BusinessChartBuffer: Record "Business Chart Buffer"; var Job: Record "Job"; JobChartType: Enum "KVSPSAJobChartType"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAJob PSA Chart Mgt", 'KVSPSAOnSetJobChartValuesChart', '', false, false)]
local procedure DoSomethingKVSPSAOnSetJobChartValuesChart(var BusinessChartBuffer: Record "Business Chart Buffer"; var Job: Record "Job"; JobChartType: Enum "KVSPSAJobChartType")
begin
end;

Parameters:

  • BusinessChartBuffer: The business chart buffer that can be modified to set chart values and data points.
  • Job: The job record providing context and data source for the chart values.
  • JobChartType: The job chart type enum specifying which custom chart type requires value population.