KVSPSATimeTrackingChartMgt
Events
OnBeforeUpdateData(Record Business Chart Buffer, Date, Integer, Enum KVSPSAPeriodType, Boolean) :
Summary: Event raised before updating the chart.
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateData(var BusinessChartBuffer: Record "Business Chart Buffer"; var StartDate: Date; var NoOfPeriods: Integer; var PeriodType: Enum "KVSPSAPeriodType"; var IsHandled: Boolean):
Parameters:
BusinessChartBuffer: The chart buffer being initializedStartDate: Start date of the current period for the chartNoOfPeriods: Number of periods to displayPeriodType: Type of each periodIsHandled: Set to true to skip default chart update
OnAfterSetPeriodValues(Record Business Chart Buffer, Integer, Date, Date, Code[20], Decimal, Decimal, Decimal) :
Summary: Event raised after setting chart values for a period. Allows addition of custom values.
[IntegrationEvent(false, false)]
local procedure OnAfterSetPeriodValues(var BusinessChartBuffer: Record "Business Chart Buffer"; PeriodCounter: Integer; var StartDate: Date; var ToDate: Date; ResNo: Code[20]; var PostedHours: Decimal; var CapacityHours: Decimal; var AbsenceTime: Decimal):
Parameters:
BusinessChartBuffer: The business chart buffer the chart is usingPeriodCounter: Current period numberStartDate: Start date of current periodToDate: End date of current periodResNo: Resource number being processedPostedHours: Posted hours for this periodCapacityHours: Capacity hours for this periodAbsenceTime: Absence time for this period
OnBeforeGetPostedHours(Decimal, Date, Date, Code[20], Boolean) :
Summary: Event raised before calculating posted hours. Allows custom calculation logic.
[IntegrationEvent(false, false)]
local procedure OnBeforeGetPostedHours(var PostedHours: Decimal; FromDate: Date; ToDate: Date; ResNo: Code[20]; var IsHandled: Boolean):
Parameters:
PostedHours: Posted hours that will be processedFromDate: Start date for calculationToDate: End date for calculationResNo: Resource numberIsHandled: Set to true to skip default posted hours calculation
OnBeforeGetCapacityHours(Decimal, Date, Date, Code[20], Boolean) :
Summary: Event raised before calculating capacity hours. Allows custom calculation logic.
[IntegrationEvent(false, false)]
local procedure OnBeforeGetCapacityHours(var CapacityHours: Decimal; FromDate: Date; ToDate: Date; ResNo: Code[20]; var IsHandled: Boolean):
Parameters:
CapacityHours: Capacity hours that will be processedFromDate: Start date for calculationToDate: End date for calculationResNo: Resource numberIsHandled: Set to true to skip default capacity hours calculation
OnBeforeGetAbsenceTime(Decimal, Date, Date, Code[20], Boolean) :
Summary: Event raised before calculating absence time. Allows custom calculation logic.
[IntegrationEvent(false, false)]
local procedure OnBeforeGetAbsenceTime(var AbsenceTime: Decimal; FromDate: Date; ToDate: Date; ResNo: Code[20]; var IsHandled: Boolean):
Parameters:
AbsenceTime: Absence time that will be processedFromDate: Start date for calculationToDate: End date for calculationResNo: Resource numberIsHandled: Set to true to skip default absence time calculation
OnBeforeAddMeasures(Record Business Chart Buffer, Text, Text, Text, Boolean) :
Summary: Event raised before adding default measures. Allows customization of chart measures.
[IntegrationEvent(false, false)]
local procedure OnBeforeAddMeasures(var BusinessChartBuffer: Record "Business Chart Buffer"; PostedHoursCaption: Text; RemainingCapacityCaption: Text; AbsenceCaption: Text; var IsHandled: Boolean):
Parameters:
BusinessChartBuffer: The chart buffer to add measures toPostedHoursCaption: Caption for posted hours default measureRemainingCapacityCaption: Caption for remaining capacity default measureAbsenceCaption: Caption for absence default measureIsHandled: Set to true to skip default measure addition
OnBeforeCalcAndInsertColumns(Record Business Chart Buffer, Enum KVSPSAPeriodType, Integer, Date, Boolean) :
Summary: Event raised before inserting columns. Allows custom column logic.
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcAndInsertColumns(var BusinessChartBuffer: Record "Business Chart Buffer"; PeriodType: Enum "KVSPSAPeriodType"; NoOfPeriods: Integer; StartDate: Date; var IsHandled: Boolean):
Parameters:
BusinessChartBuffer: The chart buffer to add columns toPeriodType: Type of each periodNoOfPeriods: Number of periods to displayStartDate: Start date of the current periodIsHandled: Set to true to skip default column insertion
OnBeforeSetFromToPeriodText(Text, Enum KVSPSAPeriodType, Integer, Date, Boolean) :
Summary: Event raised before setting period text that is displayed above the chart.
[IntegrationEvent(false, false)]
local procedure OnBeforeSetFromToPeriodText(var FromToPeriodText: Text; PeriodType: Enum "KVSPSAPeriodType"; NoOfPeriods: Integer; StartOfCurrentPeriodDate: Date; var IsHandled: Boolean):
Parameters:
FromToPeriodText: Period text that will be displayedPeriodType: Type of current periodNoOfPeriods: Number of periods the chart displaysStartOfCurrentPeriodDate: Start date of current periodIsHandled: Set to true to skip default period text formatting
OnBeforeDataPointClicked(JsonObject, Date, Enum KVSPSAPeriodType, Integer, Boolean) :
Summary: Event raised before handling the click on a data point.
[IntegrationEvent(false, false)]
local procedure OnBeforeDataPointClicked(Point: JsonObject; var StartOfCurrPeriodDate: Date; var PeriodType: Enum "KVSPSAPeriodType"; var NoOfPeriods: Integer; var IsHandled: Boolean):
Parameters:
Point: JsonObject containing information about the clicked data pointStartOfCurrPeriodDate: Current period start datePeriodType: Current period typeNoOfPeriods: Number of periodsIsHandled: Set to true to skip default click handling
OnBeforeSetValue(Record Business Chart Buffer, Text, Boolean) :
Summary: Event raised before setting a value in the business chart buffer. Allows custom value modification or handling.
[IntegrationEvent(false, false)]
local procedure OnBeforeSetValue(var BusinessChartBuffer: Record "Business Chart Buffer"; MeasureName: Text; var IsHandled: Boolean):
Parameters:
BusinessChartBuffer: The chart buffer to set the value inMeasureName: Name of the measure to set the value forIsHandled: Set to true to skip default value setting
OnAfterSetPeriodLength(Record Business Chart Buffer, Enum KVSPSAPeriodType) :
Summary: Event raised after setting the period length in the business chart buffer. Allows custom period length handling.
[IntegrationEvent(false, false)]
local procedure OnAfterSetPeriodLength(var BusinessChartBuffer: Record "Business Chart Buffer"; PeriodType: Enum "KVSPSAPeriodType"):
Parameters:
BusinessChartBuffer: The chart buffer to set the period length inPeriodType: The period type the buffer is supposed to use