microsoft / microsoft/AL

[Bug]: Blob field upload and OnValidate

Open
#8,145 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

accepted
Dominant language
PowerShell
Stars
881
Forks
285
Avg merge
3d 36m
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the provided AL table and page extension in Business Central Platform 27.0 using Visual Studio Code. Start with the Blob field's OnValidate trigger and upload interaction; done means the upload window closes while the validation message appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.