Skip to content

KVSKBAServiceProFormaPrinted#

Procedures#

OnRun#

procedure OnRun(Rec: Record "#437dbf0e84ff417a965ded2bb9650972#Service Header")

SetSuppressCommit(Boolean) :#

Summary: This function sets the SuppressCommit variable to the value passed in. It is used to control whether the commit at the end of the OnRun trigger should be executed or not.

procedure SetSuppressCommit(NewSuppressCommit: Boolean): 

Parameters:

  • NewSuppressCommit: The new value for SuppressCommit.

Events#

OnBeforeOnRun(Record Service Header, Boolean) :#

Summary: This event is raised before anything else is done in the OnRun trigger.

[IntegrationEvent(false, false)]
local procedure OnBeforeOnRun(var ServiceHeader: Record "Service Header"; var SuppressCommit: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceProFormaPrinted", 'OnBeforeOnRun', '', false, false)]
local procedure DoSomethingOnBeforeOnRun(var ServiceHeader: Record "Service Header"; var SuppressCommit: Boolean)
begin
end;

Parameters:

  • ServiceHeader: The Service Header, where the field KVSKBANoPrintedProForma should be increased by 1.
  • SuppressCommit: Whether or not the Commit at the very end should be executed.

OnBeforeModify(Record Service Header) :#

Summary: This event is raised before the Service Header is modified.

[IntegrationEvent(false, false)]
local procedure OnBeforeModify(var ServiceHeader: Record "Service Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAServiceProFormaPrinted", 'OnBeforeModify', '', false, false)]
local procedure DoSomethingOnBeforeModify(var ServiceHeader: Record "Service Header")
begin
end;

Parameters:

  • ServiceHeader: The Service Header, where the field KVSKBANoPrintedProForma should be increased by 1 and is about to be modified.