AL icon indicating copy to clipboard operation
AL copied to clipboard

[Bug]: Blob field upload and OnValidate

Open Schnieringer opened this issue 2 months ago • 0 comments

Please include the following with each issue:

1. Describe the bug If there is post-processing (OnValidate) with a message or notification for a blob field in OnValidate, the upload window is no longer closed and remains open on the page.

2. To Reproduce Field in a Table extension:

tableextension 50100 MyCompanyInformationExt extends "Company Information"
{
    fields
    {
        field(50100; "New Company Picture"; Blob)
        {
            Caption = 'New Company Picture';
            Subtype = Bitmap;
            ToolTip = 'New Company Picture.';
            trigger OnValidate()
            begin
                Message('My Onw Company Picture has been uploaded.');
            end;
        }
    }
}

Page Extension:

pageextension 50100 MyCompany extends "Company Information"
{
    layout
    {
        addlast(General)
        {
            field(MyMyOnwCompanyPicture; Rec."New Company Picture")
            {
                ApplicationArea = All;
                Caption = 'My New Company Picture';
                Editable = true;
                ToolTip = 'Specifies my own company picture.';
            }
        }
    }
}

3. Expected behavior The Upload should close, the message should appear

5. Versions:

  • AL Language: 16.2.1869542
  • Visual Studio Code: 1.105.1
  • Business Central: (Platform 27.0.40210.0 + Application 27.0.38460.40293)

Internal work item: AB#612421

Schnieringer avatar Oct 27 '25 15:10 Schnieringer