Show / Hide Table of Contents

    Queue Events

    Contains events related to enqueueing functions.

    Object Definition

    Object TypeCodeunit
    Object ID70337531
    Object NameQWEEG Queue Events

    Events

    Name Description
    OnBeforeGetKeepEagleOutputQueueData(Enum "QWEEG Queue Type"; Integer; Integer; Integer; Boolean; Boolean) Raised when an enqueued function has been completed, before the "Keep Eagle Output Queue Data" is determined.
    OnBeforeQueueFunction(Enum "QWEEG Function Type"; Integer; Record "QWEEG Function Setup"; Codeunit "QWETB Temp Blob") Raised when a function is queued, once for each function being queued.

    Remarks

    In the events in this codeunit you can use the Type and Number parameters to determine if the event should be handled.

    To simplify this you can create a function that checks the Type and "No." fields and returns true if the event should be handled.

    local procedure IsMyEvent(Type: Enum "QWEEG Function Type"; Number: Integer): Boolean
    begin
        exit((Type = Type::Report) and (Number = Report::"MyReport"));
    end;
    

    Then you can use this function in the events like this:

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"QWEEG Queue Events", OnBeforeQueueFunction, '', false, false)]
    local procedure BeforeQueueFunction(Type: Enum "QWEEG Function Type"; Number: Integer;FunctionSetup: Record "QWEEG Function Setup"; var Parameters: Codeunit "QWETB Temp Blob")
    begin
        if not IsMyEvent(Type, Number) then
            exit;
    
        ModifyParameters(FunctionSetup, Parameters);
    end;
    

    This documentation is generated from Eagle v27.0

    Back to top Copyright © 2020 SmartApps
    Generated by DocFX