Skip to content

[NL][Page][11404][CashJournalSubform][OnNewRecord] Add integration event OnAfterNewRecord #30171

@KateDovgalova

Description

@KateDovgalova

Why do you need this change?

In 4PS Construct we need to fill or overwrite values of Date and "Applies-to Doc. Type" in "CBG Statement Line" in trigger OnNewRecord on page 11404 "Cash Journal Subform". Code should be executed in trigger OnNewRecord after line Rec.InitRecord(xRec) but before AfterGetCurrentRecord() - xRec is changed in this procedure.

Describe the request

Dear ALAppExtensions team,

On behalf of 4PS I would like to request integration event 'OnAfterNewRecord' to be added to trigger OnNewRecord of page 11404 "Cash Journal Subform":

    trigger OnNewRecord(BelowxRec: Boolean)
    begin
        Clear(ShortcutDimCode);
        GetHeader();
        if CBGStatement."No." <> 0 then
            Rec.InitRecord(xRec);

        OnAfterNewRecord(CBGStatement, Rec, xRec); //new

        AfterGetCurrentRecord();
    end;
    [IntegrationEvent(false, false)]
    local procedure OnAfterNewRecord(CBGStatement: Record "CBG Statement"; var CBGStatementLine: Record "CBG Statement Line"; xCBGStatementLine: Record "CBG Statement Line")
    begin
        //new
    end;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaevent-requestRequest for adding an event

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions