ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 296 "Reminder Line", field 10 "Document Type", OnValidate trigger; OnValidateDocumentTypeOnBeforeTestField

Open nd2403 opened this issue 5 years ago • 1 comments

Hello, we need to influence for which types of document to execute TestField of Type with Customer Ledger Entry. Thank you in advance!

field(10; "Document Type"; Enum "Gen. Journal Document Type")
        {
            Caption = 'Document Type';

            trigger OnValidate()
            var
// - new
                IsHandled: Boolean;
// + new
            begin 
// - new
                IsHandled := false;
                OnValidateDocumentTypeOnBeforeTestField(Rec, IsHandled);
                if not IsHandled then
// + new
                    TestField(Type, Type::"Customer Ledger Entry");
                Validate("Document No.");
            end;
        }
    [IntegrationEvent(false, false)]
    local procedure OnValidateDocumentTypeOnBeforeTestField(var ReminderLine: Record "Reminder Line"; var IsHandled: Boolean)
    begin
    end;

nd2403 avatar Nov 25 '21 14:11 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 Dec 03 '21 14:12 JesperSchulz