Skip to content

KVSCCEvents#

Events#

OnBeforeCheck(Record KVSCCEntity, Boolean) :#

Summary: OnBeforeCheck is called before creating the request data and sending the request. You can use this event in order to manipulate the entity data by yourselves. If you want to break the standard processing, you can use (activate) the referenced "Handled" parameter in order to make the logic not process the check anymore.

[IntegrationEvent(true, false)]
procedure OnBeforeCheck(var entityVar: Record "KVSCCEntity"; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSCCEvents", 'OnBeforeCheck', '', false, false)]
local procedure DoSomethingOnBeforeCheck(var entityVar: Record "KVSCCEntity"; var Handled: Boolean)
begin
end;

Parameters:

  • entityVar: Referenced Record of type KVSCCEntity. This record holds all the data that is used for the current check.
  • Handled: VAR Boolean Parameter to skip the standard processing.

OnAfterCheck(Record KVSCCEntity) :#

Summary: OnAfterCheck is called after handling the data request and modifying the entity. You can use this event in order to start an own processing logic based on the entity results.

[IntegrationEvent(true, false)]
procedure OnAfterCheck(var entityVar: Record "KVSCCEntity"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSCCEvents", 'OnAfterCheck', '', false, false)]
local procedure DoSomethingOnAfterCheck(var entityVar: Record "KVSCCEntity")
begin
end;

Parameters:

  • entityVar: Referenced Record of type KVSCCEntity. This record holds all the data (request and response) that is used for and returned by the current check.

OnBeforeIsOwnServer(Boolean, Boolean) :#

Summary: OnBeforeIsOwnServer is called before the code checks if a self created environment or the KUMAVISION environment should be used for requests. You can use the return value of this event to force the use of one of the two systems.

[IntegrationEvent(false, false)]
procedure OnBeforeIsOwnServer(var ReturnValue: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSCCEvents", 'OnBeforeIsOwnServer', '', false, false)]
local procedure DoSomethingOnBeforeIsOwnServer(var ReturnValue: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • ReturnValue: VAR Boolean Parameter to set the return value of the procedure, true for you own environment or false for the KUMAVISION enviroment
  • IsHandled: VAR Boolean Parameter to skip the standard processing