Skip to content

[Event Request] [W1][Report][7000097][Reject Docs.] trigger OnPreReport #29397

@jcarrascolbt

Description

@jcarrascolbt

Why do you need this change?

We need to add the event to be able to assign the requestpage variables without needing to show it to the user.

Describe the request

trigger OnPreReport()
    begin
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
        OnBeforeRequestPageRun(PostingDate, IncludeExpenses, UseJournal, TemplName, BatchName);
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
        GLSetup.Get();

        if UseJournal = UseJournal::AuxJournal then begin
            if not GenJnlBatch.Get(TemplName, BatchName) then
                Error(Text1100000);
            ReasonCode := GenJnlBatch."Reason Code";
            GenJnlTemplate.Get(TemplName);
            SourceCode := GenJnlTemplate."Source Code";
        end;
    end;
[IntegrationEvent(false, false)]
    local procedure OnBeforeRequestPageRun(var PostingDate: Date; var IncludeExpenses: Boolean; var UseJournal: Option; var TemplName: Code[10]; var BatchName: Code[10])
    begin
    end;

Internal work item: AB#612790

Metadata

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions