Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Event Request] Table 1650 "Curr. Exch. Rate Update Setup".ShowJobQueueEntry #27832

Open
fridrichovsky opened this issue Dec 18, 2024 · 0 comments
Labels
event-request Request for adding an event Finance GitHub request for Finance area

Comments

@fridrichovsky
Copy link
Contributor

fridrichovsky commented Dec 18, 2024

Describe the request

Please add new event

procedure ShowJobQueueEntry()
    var
        JobQueueEntry: Record "Job Queue Entry";
        //----------------------------------------------------------------------OnBeforeShowJobQueueEntry:BEGIN
        IsHandled: Boolean;
        //----------------------------------------------------------------------OnBeforeShowJobQueueEntry:END
    begin
        JobQueueEntry.SetRange("Object Type to Run", JobQueueEntry."Object Type to Run"::Codeunit);
        JobQueueEntry.SetRange("Object ID to Run", CODEUNIT::"Update Currency Exchange Rates");
        //----------------------------------------------------------------------OnBeforeShowJobQueueEntry:BEGIN
        IsHandled := false;
        OnBeforeShowJobQueueEntry(Rec, JobQueueEntry, IsHandled);
        if IsHandled then
            exit;
        //----------------------------------------------------------------------OnBeforeShowJobQueueEntry:END
        if JobQueueEntry.FindFirst() then
            PAGE.Run(PAGE::"Job Queue Entry Card", JobQueueEntry);
    end;

    //----------------------------------------------------------------------OnBeforeShowJobQueueEntry:BEGIN
    [IntegrationEvent(true, false)]
    local procedure OnBeforeShowJobQueueEntry(var Rec: Record "Curr. Exch. Rate Update Setup"; var JobQueueEntry: Record "Job Queue Entry"; var IsHandled: Boolean)
    begin
    end;
    //----------------------------------------------------------------------OnBeforeShowJobQueueEntry:END

Additional context

We need option skip open page and option how to change filters before open page
Internal work item: AB#561105

@haoranpb haoranpb added event-request Request for adding an event Finance GitHub request for Finance area labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event-request Request for adding an event Finance GitHub request for Finance area
Projects
None yet
Development

No branches or pull requests

2 participants