Skip to content

KVSFCYManufacturingLibSubsc#

Events#

OnBeforeGetxRecValuesRoutingLine(Record Routing Line, Record Routing Line, Integer, Boolean) :#

Summary: Integration event that fires before retrieving and preserving previous record values for routing lines during field validation processing. This event allows subscribers to intercept and customize the field value preservation logic before standard routing line field values are restored from previous record versions during routing line number validation workflows, providing access to current and previous routing line records and field context for custom field preservation and business rule implementation. It enables implementation of specialized field preservation logic, custom business rules, and extension of routing line field management processes in manufacturing scenarios where routing line field preservation requires additional customization or alternative field handling approaches for accurate routing data management.

[IntegrationEvent(false, false)]
local procedure OnBeforeGetxRecValuesRoutingLine(var Rec: Record "Routing Line"; var xRec: Record "Routing Line"; CurrFieldNo: Integer; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingLibSubsc", 'OnBeforeGetxRecValuesRoutingLine', '', false, false)]
local procedure DoSomethingOnBeforeGetxRecValuesRoutingLine(var Rec: Record "Routing Line"; var xRec: Record "Routing Line"; CurrFieldNo: Integer; var IsHandled: Boolean)
begin
end;

Parameters:

  • Rec: Current routing line record that will receive preserved field values during routing line number validation and field preservation workflows.
  • xRec: Previous routing line record containing original field values that will be preserved during field validation and preservation processing workflows.
  • CurrFieldNo: Integer representing the current field number that triggered the validation, providing context for field-specific preservation logic and processing workflows.
  • IsHandled: Boolean parameter that can be set to true by subscribers to indicate that custom field preservation has been performed and standard preservation workflow should be bypassed.

OnBeforeGetxRecValuesProdOrderRoutingLine(Record Prod. Order Routing Line, Record Prod. Order Routing Line, Integer, Boolean) :#

Summary: Integration event that fires before retrieving and preserving previous record values for production order routing lines during field validation processing. This event allows subscribers to intercept and customize the field value preservation logic before standard production order routing line field values are restored from previous record versions during production order routing line number validation workflows, providing access to current and previous production order routing line records and field context for custom field preservation and business rule implementation. It enables implementation of specialized field preservation logic, custom business rules, and extension of production order routing line field management processes in manufacturing scenarios where routing line field preservation requires additional customization or alternative field handling approaches for accurate production routing data management.

[IntegrationEvent(false, false)]
local procedure OnBeforeGetxRecValuesProdOrderRoutingLine(var Rec: Record "Prod. Order Routing Line"; var xRec: Record "Prod. Order Routing Line"; CurrFieldNo: Integer; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingLibSubsc", 'OnBeforeGetxRecValuesProdOrderRoutingLine', '', false, false)]
local procedure DoSomethingOnBeforeGetxRecValuesProdOrderRoutingLine(var Rec: Record "Prod. Order Routing Line"; var xRec: Record "Prod. Order Routing Line"; CurrFieldNo: Integer; var IsHandled: Boolean)
begin
end;

Parameters:

  • Rec: Current production order routing line record that will receive preserved field values during routing line number validation and field preservation workflows.
  • xRec: Previous production order routing line record containing original field values that will be preserved during field validation and preservation processing workflows.
  • CurrFieldNo: Integer representing the current field number that triggered the validation, providing context for field-specific preservation logic and processing workflows.
  • IsHandled: Boolean parameter that can be set to true by subscribers to indicate that custom field preservation has been performed and standard preservation workflow should be bypassed.