ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Page 256 "Payment Journal" - CurrentJnlBatchName triggers

Open jlorenc01 opened this issue 3 years ago • 1 comments

Hi there,

I would like to ask for a two new publishers on the page 256 "Payment Journal", in the page field CurrentJnlBatchName OnLookup() and OnValidate() triggers. The same triggers are on the page 39 "General Journal".

field(CurrentJnlBatchName; CurrentJnlBatchName)
{
    ApplicationArea = Basic, Suite;
    Caption = 'Batch Name';
    ...

    trigger OnLookup(var Text: Text): Boolean
    begin
        CurrPage.SaveRecord();
        GenJnlManagement.LookupName(CurrentJnlBatchName, Rec);
        SetControlAppearanceFromBatch();
        OnAfterSetControlAppearanceFromBatch(CurrentJnlBatchName); // NEW EVENT
        CurrPage.Update(false);
    end;

    trigger OnValidate()
    begin
        GenJnlManagement.CheckName(CurrentJnlBatchName, Rec);
        CurrentJnlBatchNameOnAfterVali();
        OnAfterValidateCurrentJnlBatchName(CurrentJnlBatchName); // NEW EVENT
    end;
}

// NEW EVENTS
[IntegrationEvent(false, false)]
local procedure OnAfterSetControlAppearanceFromBatch(CurrentJnlBatchName: Code[10])
begin
end;

[IntegrationEvent(false, false)]
local procedure OnAfterValidateCurrentJnlBatchName(CurrentJnlBatchName: Code[10])
begin
end;

jlorenc01 avatar Oct 27 '23 14:10 jlorenc01

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.

Build ID: 13591.

JesperSchulz avatar Nov 03 '23 09:11 JesperSchulz