Skip to content

KVSFCYEnumAssignmentManagement#

Procedures#

GetIntegerAsEnumfromDeliveryScheduleDocumentType(Enum KVSFCYDelSchedDocumentType) : Enum#

Summary: Converts a Delivery Schedule Document Type enumeration value to its corresponding Integer As Enum representation for business central integration scenarios, providing standardized enum-to-integer mapping for delivery schedule document type processing, cross-module communication, and data exchange operations with extensibility support through integration events.

procedure GetIntegerAsEnumfromDeliveryScheduleDocumentType(KVSFCYDelSchedDocumentType: Enum "KVSFCYDelSchedDocumentType"): Enum KVSKBAIntegerAsEnum

Parameters:

  • KVSFCYDelSchedDocumentType: Delivery Schedule Document Type enumeration value to be converted to integer representation (Blank, Delivery Schedule, Blanket Delivery Schedule), serving as the source enum for conversion to standardized integer enum format.

Returns: Integer As Enum value corresponding to the input Delivery Schedule Document Type, providing standardized integer representation for cross-module compatibility and data exchange operations (0 for blank, 1 for Delivery Schedule, 4 for Blanket Delivery Schedule).

Events#

OnGetIntegerAsEnumfromDeliveryScheduleDocumentTypeOnBeforeCaseElse(Enum KVSFCYDelSchedDocumentType, Enum KVSKBAIntegerAsEnum, Boolean) :#

Summary: Event triggered before the case else clause when converting Delivery Schedule Document Type to Integer As Enum. This event allows custom handling of delivery schedule document type values that are not covered by the standard conversion logic, providing extensibility for additional document type mappings without modifying the core conversion function.

[IntegrationEvent(false, false)]
local procedure OnGetIntegerAsEnumfromDeliveryScheduleDocumentTypeOnBeforeCaseElse(KVSFCYDelSchedDocumentType: Enum "KVSFCYDelSchedDocumentType"; var IntegerAsEnum: Enum "KVSKBAIntegerAsEnum"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYEnumAssignmentManagement", 'OnGetIntegerAsEnumfromDeliveryScheduleDocumentTypeOnBeforeCaseElse', '', false, false)]
local procedure DoSomethingOnGetIntegerAsEnumfromDeliveryScheduleDocumentTypeOnBeforeCaseElse(KVSFCYDelSchedDocumentType: Enum "KVSFCYDelSchedDocumentType"; var IntegerAsEnum: Enum "KVSKBAIntegerAsEnum"; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSFCYDelSchedDocumentType: The Delivery Schedule Document Type enumeration value that could not be converted by the standard case statement and requires custom handling.
  • IntegerAsEnum: The Integer As Enum result variable that can be set by custom logic to provide the appropriate integer enumeration mapping for the input document type.
  • IsHandled: Boolean flag to indicate if the conversion has been handled by custom logic, preventing the default error from being thrown when set to true.

OnGetJobPlanningLineNewStatusFromJobStatus(Enum Job Status, Enum Job Planning Line Status) :#

[IntegrationEvent(false, false)]
local procedure OnGetJobPlanningLineNewStatusFromJobStatus(CurrentStatus: Enum "Job Status"; var ResultEnum: Enum "Job Planning Line Status"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYEnumAssignmentManagement", 'OnGetJobPlanningLineNewStatusFromJobStatus', '', false, false)]
local procedure DoSomethingOnGetJobPlanningLineNewStatusFromJobStatus(CurrentStatus: Enum "Job Status"; var ResultEnum: Enum "Job Planning Line Status")
begin
end;