web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Cannot view or edit media field

(0) ShareShare
ReportReport
Posted on by 555

Hi experts,

I have made my own extensions for Business Central Cloud (Sandbox): One new table and one new list page.

I want to show a picture on my list page (and maybe later on a new card page). And I want it to be possible for the user to insert a jpg-file, to change the file in BC and to delete the file in BC (= empty the field).

As I understand, Media or MediaSet are the best types to use in this case.

The problem is that the field is not at all visible on my list page.

What am I missing?

table 50100 CarBrand
{
    DataClassification = ToBeClassified;
    Caption = 'Car Brands';

    fields
    {
        field(1; "Car Brand"; Code[20])
        {
            DataClassification = ToBeClassified;
            Caption = 'Brand';
        }

        field(2; Description; Text[50])
        {
            DataClassification = ToBeClassified;
            Caption = 'Desc.';
        }

        field(3; "Picture of Logo"; Media)
        {
            DataClassification = ToBeClassified;
            Caption = 'Logo';
//            Subtype = Bitmap;
        }

    keys
    {
        key(PK; "Car Brand")
        {
            Clustered = true;
        }
    }
}

page 50100 CarBrand
{
    PageType = List;
    ApplicationArea = All;
    UsageCategory = Lists;
    SourceTable = CarBrand;
    Caption = 'Brands...';

    layout
    {
        area(Content)
        {
            repeater(General)
            {
                field("Car Brand"; Rec."Car Brand")
                {
                    ApplicationArea = All;
                    ToolTip = 'The brand';
                }

                field("Description"; Rec.Description)
                {
                    ApplicationArea = All;
                    ToolTip = 'Some desc.';
                }

                field("Picture of Logo"; Rec."Picture of Logo")
                {
                    ApplicationArea = All;
                    ToolTip = 'The logo';
                }
            }
        }
    }    
}
I have the same question (0)
  • Verified answer
    THE Italian Profile Picture
    on at
    RE: Cannot view or edit media field

    MediSet has to be used in one of the following scenarios

    ...

    Display media with records in list type pages, when the page is viewed in the Tile layout. For more information, see Displaying Data as Tiles.

    Display media on a card type page for a record.

    Display media in a report.

    ...

    as per

    docs.microsoft.com/.../devenv-working-with-media-on-records

    Therefore, if you want to see an image in the list, this must be set to Tile mode and respect the following rules

    docs.microsoft.com/.../devenv-lists-as-tiles

  • Morten Steengaard Profile Picture
    555 on at
    RE: Cannot view or edit media field

    Hi Duilio,

    Thank you very much.

    Best regards,

    Morten

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sumit Singh Profile Picture

Sumit Singh 2,085

#2
YUN ZHU Profile Picture

YUN ZHU 1,810 Super User 2025 Season 2

#3
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 1,788

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans