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';
}
}
}
}
}