Skip to content

KVSTRDItemVariantFastEntryMgt#

Events#

KVSTRDOnAfterGetDataFromVariantFastEntryPage(Record KVSTRDVariantFastEntryBuffer, Boolean) :#

Summary: This event is raised after the data from the Variant Fast Entry page has been retrieved. It allows additional processing or validation of the data before it is used.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterGetDataFromVariantFastEntryPage(var TempVariantFastEntryBuffer: Record "KVSTRDVariantFastEntryBuffer" temporary; var PageClosedWithOk: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDItemVariantFastEntryMgt", 'KVSTRDOnAfterGetDataFromVariantFastEntryPage', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterGetDataFromVariantFastEntryPage(var TempVariantFastEntryBuffer: Record "KVSTRDVariantFastEntryBuffer" temporary; var PageClosedWithOk: Boolean)
begin
end;

Parameters:

  • TempVariantFastEntryBuffer: Temporary buffer containing variant fast entry data.
  • PageClosedWithOk: Specifies whether the page was closed with an OK action.

KVSTRDOnBeforeExitIsSalesVariantFastEntryRequire(Record Sales Line, Record Item, Boolean) :#

Summary: This event is raised after checking if the Sales Variant Fast Entry is required and before it exits the function IsVariantFastEntryRequired.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeExitIsSalesVariantFastEntryRequire(SalesLine: Record "Sales Line"; Item: Record "Item"; var IsRequired: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDItemVariantFastEntryMgt", 'KVSTRDOnBeforeExitIsSalesVariantFastEntryRequire', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeExitIsSalesVariantFastEntryRequire(SalesLine: Record "Sales Line"; Item: Record "Item"; var IsRequired: Boolean)
begin
end;

Parameters:

  • SalesLine: The Sales Line record being processed.
  • Item: The Item record associated with the Sales Line.
  • IsRequired: Boolean variable indicating if the Sales Variant Fast Entry is required. You can change the value by using your own logic, for example.

KVSTRDOnBeforeInsertSalesLineFromVariantFastEntry(Record Sales Line) :#

Summary: This event is raised before inserting a Sales Line from the Variant Fast Entry. It allows you to modify the Sales Line record before it is inserted into the database.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInsertSalesLineFromVariantFastEntry(var SalesLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDItemVariantFastEntryMgt", 'KVSTRDOnBeforeInsertSalesLineFromVariantFastEntry', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInsertSalesLineFromVariantFastEntry(var SalesLine: Record "Sales Line")
begin
end;

Parameters:

  • SalesLine: The new Sales Line record that is being inserted from the Variant Fast Entry.