microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
744 stars 245 forks source link

Processing only report is showing: 'Report is being rendered' #6015

Closed MaartenGerritsen closed 4 years ago

MaartenGerritsen commented 4 years ago

Describe the bug

In a report with the following properties: ProcessingOnly = true; ShowPrintStatus = false; there is still a window shown saying:

Working on it... The report is being rendered. This can take a while, depending on the number of rows that have been generated.

But there is nothing to render!

To Reproduce Steps and to reproduce the behavior:

Create a report like:

report 50100 "Test"
{
    Caption = 'Test';
    ProcessingOnly = true;
    ShowPrintStatus = false;

    dataset
    {
    }

    trigger OnPostReport()
    begin
        Sleep(5000);
        Message('Ready!');
    end;
}

If you program your own dialog, then the 'rendering' message is not shown.

unless an own dialog is programmed, like:

    trigger OnPostReport()
    var
        i: Integer;
        Window: Dialog;
    begin
        Window.Open('test #1#############');
        for i := 1 to 5 do begin
            sleep(1000);
            Window.Update(1, i);
        end;
        Window.Close();
        Message('Ready!');
    end;

Expected behavior Another message saying something like: processing. Or better, a progress bar.

Screenshots image

5. Versions:

qutreson commented 4 years ago

Let's get the issue to a team who will fix and backport it, as this repository is only for issues related to the AL compiler in latest developer preview environment for Dynamics 365 Business Central. We suggest that you open a support case or file a bug in Collaborate, to ensure that all Business Central users benefit from your catch as soon as possible.

To open a support case, you can:

If you file the bug in Collaborate, remember to include steps to reproduce the issue, and the Business Central build number and country version you're using.