ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 296 "Reminder Line", field 5 "Entry No.", OnLookup trigger; OnBeforeLookupEntryNo

Open nd2403 opened this issue 4 years ago • 1 comments

Hello, we need a way to influence the OnLookup trigger logic for Type values different then "Customer Ledger Entry". Thank you in advance.

        field(5; "Entry No."; Integer)
        {
            BlankZero = true;
            Caption = 'Entry No.';
            TableRelation = "Cust. Ledger Entry";

            trigger OnLookup()
            var
// - new
                IsHandled: Boolean;
// + new
            begin
// - new
                IsHandled := false;
                OnBeforeLookupEntryNo(Rec, IsHandled);
                if IsHandled then
                    exit;
// + new
                if Type <> Type::"Customer Ledger Entry" then
                    exit;
                SetCustLedgEntryView;
                if CustLedgEntry.Get("Entry No.") then;
                LookupCustLedgEntry;
            end;

    [IntegrationEvent(false, false)]
    local procedure OnBeforeLookupEntryNo(var ReminderLine: Record "Reminder Line"; var IsHandled: Boolean)
    begin
    end;

nd2403 avatar Dec 09 '21 13:12 nd2403

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Jan 11 '22 07:01 JesperSchulz