Skip to content

Commit

Permalink
Added a table and page extensions for my BC
Browse files Browse the repository at this point in the history
I have been able to add social meadia links to customer's page
  • Loading branch information
kibexd committed Jun 10, 2024
1 parent 47300ce commit 1e0bb7b
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"server": "http://localhost:8080/BC210/",
"serverInstance": "BC210",
"authentication": "Windows",
"startupObjectId": 50101,
"startupObjectId": 22,
"startupObjectType": "Page",
"breakOnError": "All",
"launchBrowser": true,
Expand Down
37 changes: 37 additions & 0 deletions Pag-Ext50101.SocialMedia.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
pageextension 50101 "Social Media Card" extends "Customer Card"
{
layout
{
addfirst(General)
{
field(Facebook; Rec.Facebook)
{
ApplicationArea = All;
}

field(Instagram; Rec.Instagram)
{
ApplicationArea = All;
}

field(Twitter; Rec.Twitter)
{
ApplicationArea = All;
}

field(LinkenIn; Rec.LinkenIn)
{
ApplicationArea = All;
}
}
// Add changes to page layout here
}

actions
{
// Add changes to page actions here
}

var
myInt: Integer;
}
26 changes: 26 additions & 0 deletions Tab-Ext50100.SocialMedia.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
tableextension 50100 "Social Media" extends Customer
{
fields
{
field(50100; Instagram; Text[50])
{
Caption = 'Instagram';
DataClassification = ToBeClassified;
}
field(50101; Facebook; Text[50])
{
Caption = 'Facebook';
DataClassification = ToBeClassified;
}
field(50102; Twitter; Text[50])
{
Caption = 'Twitter';
DataClassification = ToBeClassified;
}
field(50103; LinkenIn; Text[50])
{
Caption = 'LinkenIn';
DataClassification = ToBeClassified;
}
}
}

0 comments on commit 1e0bb7b

Please sign in to comment.