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
733 stars 243 forks source link

Group Visibility breaks RichContent Control in Factboxes #7533

Closed ChrisBlankDe closed 10 months ago

ChrisBlankDe commented 11 months ago

1. Describe the bug If a FactBox contains a group which contains a RichContent control has the Visible property configured then ExtendedDatatype = RichContent is ignored and the control falls back to multiline.

2. To Reproduce Steps to reproduce the behavior: Create a CardPart Page which contains one group with configured visibile property. the group contains a RichContent Control

Add the CardPart Page as Factbox on another Page

pageextension 50110 CustomerCardExt extends "Customer Card"
{
    layout
    {
        addfirst(factboxes)
        {
            part(DoodleFactbox; DoodleFactbox)
            {
                ApplicationArea = All;
                Caption = 'Doodle Factbox';
            }
        }
    }
}
page 50110 "DoodleFactbox"
{
    PageType = CardPart;
    layout
    {
        area(Content)
        {
            group(General)
            {
                Visible = DoodleBoardVisible; //This line breaks the rich editor
                ShowCaption = false;
                field(RichControl; dummyText)
                {
                    Caption = 'Rich Text', Locked = true;
                    ShowCaption = false;
                    MultiLine = true;
                    ExtendedDatatype = RichContent;
                    Editable = false;
                }
            }
        }
    }
    trigger OnOpenPage()
    begin
        DoodleBoardVisible := true;
        dummyText := '<b>Hello World</b>';
    end;

    var
        dummyText: Text;
        DoodleBoardVisible: Boolean;
}

3. Expected behavior I expect that the rich content control renders the html fine: This can be achived by removing or comment out the Visible Property image

4. Actual behavior Control falls back to normal multiline content image

5. Versions:

Final Checklist

Please remember to do the following:

EmilDamsbo commented 10 months ago

Hi, thanks for reporting this issue. Unfortunately this is not in the scope of this repository, as it relates to the rendering in the web client. I have instead opened a ticket internally for our web client team to make sure that the Visible property does not break the rendering of the rich text control. The fix will be shipped in a future update of Business Central.