Dear @DeveloperCc,
Please try with the following code for adding a new field in Business Central.
tableextension 50100 "My new item feild" extends Item
{
fields
{
field(50101; "dropboxtest"; Decimal)
{
Caption = 'Drop Box Value';
DataClassification = ToBeClassified;
}
field(50102; Newfield; Integer)
{
Caption = 'Input';
DataClassification = CustomerContent;
}
field(50103; "Test"; Option)
{
Caption = 'Value Option';
DataClassification = ToBeClassified;
OptionMembers = "Value1","Value2";
}
field(50104; Instructorcode; Code[25])
{
Caption = 'Instructor File';
DataClassification = ToBeClassified;
TableRelation = Resource where(Type = const(Person));
}
field(50105; DateOfBirth; Date)
{
Caption = 'Date Of Birth';
DataClassification = ToBeClassified;
}
}
}
pageextension 50100 "Field on item card" extends "Item Card"
{
layout
{
addfirst(InventoryGrp)
{
field(dropboxtest; Rec."dropboxtest")
{
ApplicationArea = all;
}
}
addfirst(InventoryGrp)
{
field(Newfield; Rec.Newfield)
{
ApplicationArea = all;
Importance = Additional;
}
}
addfirst(InventoryGrp)
{
field(Test; Rec.Test)
{
ApplicationArea = all;
ShowMandatory = true;
}
}
addfirst(InventoryGrp)
{
field(Instructorcode; Rec.InstructorCode)
{
ApplicationArea = all;
}
}
addlast(InventoryGrp)
{
field(DateOfBirth; Rec.DateOfBirth)
{
ApplicationArea = all;
}
}
}
actions
{
}
}
Thanks,
Janarthanan.v