Skip to content

KVSPSAREFlatReservationMgt#

Events#

KVSPSAREOnBeforeSelectSuccessorForFlat(Record KVSPSAREFlatSuccessor, Code[20], Boolean) :#

Summary: Use this function to change the selection of the successor.

[IntegrationEvent(false, false)]
local procedure KVSPSAREOnBeforeSelectSuccessorForFlat(FlatSuccessor: Record "KVSPSAREFlatSuccessor"; FlatNo: Code[20]; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREFlatReservationMgt", 'KVSPSAREOnBeforeSelectSuccessorForFlat', '', false, false)]
local procedure DoSomethingKVSPSAREOnBeforeSelectSuccessorForFlat(FlatSuccessor: Record "KVSPSAREFlatSuccessor"; FlatNo: Code[20]; var Handled: Boolean)
begin
end;

Parameters:

  • FlatSuccessor: Record for the flat successor, filters can be added here.
  • FlatNo: No. for the flat.
  • Handled: Should be set to true if the case was handled.

KVSPSAREOnValidateFlatStatusOnTransferFlatToSuccessor(Record KVSPSAREFlat, Record KVSPSAREFlatSuccessor) :#

Summary: This function is used for assigning the status of the successor, provided that the enum has been extended.

[IntegrationEvent(false, false)]
local procedure KVSPSAREOnValidateFlatStatusOnTransferFlatToSuccessor(Flat: Record "KVSPSAREFlat"; FlatSuccessor: Record "KVSPSAREFlatSuccessor"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAREFlatReservationMgt", 'KVSPSAREOnValidateFlatStatusOnTransferFlatToSuccessor', '', false, false)]
local procedure DoSomethingKVSPSAREOnValidateFlatStatusOnTransferFlatToSuccessor(Flat: Record "KVSPSAREFlat"; FlatSuccessor: Record "KVSPSAREFlatSuccessor")
begin
end;

Parameters:

  • Flat: Record for the flat.
  • FlatSuccessor: Record for the flat successor.