Skip to content

KVSFCYJobLogisticManagement#

Events#

OnAfterCreateJobLocation(Record Location, Record Location) :#

Summary: Integration event that is raised after creating a job location from a template location, providing an extension point for implementing additional location setup logic, custom field population, or supplementary configuration steps following the completion of job location creation and template data copying operations.

[IntegrationEvent(false, false)]
local procedure OnAfterCreateJobLocation(FromLocation: Record "Location"; var ToLocation: Record "Location"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYJobLogisticManagement", 'OnAfterCreateJobLocation', '', false, false)]
local procedure DoSomethingOnAfterCreateJobLocation(FromLocation: Record "Location"; var ToLocation: Record "Location")
begin
end;

Parameters:

  • FromLocation: Location record containing the template location data that was used as the source for creating the new job location, providing context and reference information for additional setup operations.
  • ToLocation: Location record (passed by reference) representing the newly created job location that can be modified by extensions to add custom fields, perform additional configuration, or apply business-specific setup logic after the standard creation process.

OnAfterCreateJobTaskLocation(Record Job Task, Boolean, Record Location, Record Location) :#

Summary: Integration event that is raised after creating a job task location from a template location, providing an extension point for implementing custom location configuration, additional field population, or supplementary setup operations specific to job task-based location creation workflows and template data copying processes.

[IntegrationEvent(false, false)]
local procedure OnAfterCreateJobTaskLocation(SourceJobTask: Record "Job Task"; var SetLocationValue: Boolean; FromLocation: Record "Location"; var ToLocation: Record "Location"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYJobLogisticManagement", 'OnAfterCreateJobTaskLocation', '', false, false)]
local procedure DoSomethingOnAfterCreateJobTaskLocation(SourceJobTask: Record "Job Task"; var SetLocationValue: Boolean; FromLocation: Record "Location"; var ToLocation: Record "Location")
begin
end;

Parameters:

  • SourceJobTask: Job Task record that initiated the location creation process, providing context about the job task requirements and specifications for custom location configuration logic.
  • SetLocationValue: Boolean variable (passed by reference) indicating whether the location should be automatically assigned to the job task, allowing extensions to modify this behavior based on custom business logic or validation rules.
  • FromLocation: Location record containing the template location data that was used as the source for creating the new job task location, providing reference information for additional setup and configuration operations.
  • ToLocation: Location record (passed by reference) representing the newly created job task location that can be modified by extensions to add custom fields, perform task-specific configuration, or apply specialized business logic after the standard creation process.