I am working on creating a table and a page in Business Central using AL. Below is the table and page code I’ve implemented:
Error: The name 'No.' does not exist in the current context.
field("No."; "No.")
line in the page code.No.
field is properly defined in the table as field(1; "No."; Code[20])
.Error: The name 'Department' does not exist in the current context.
field("Department"; "Department")
line in the page code.Department
field is also defined in the table as field(2; "Department"; Text[30])
.Error: 'CurrPage.InsertRecord()' does not exist.
InsertNew
action of the page.PageType
to Card
, but the InsertRecord
method does not seem to work with Card
.Verified the Table Definition:
No.
and Department
fields are defined in the table.Changed the PageType:
PageType
from Card
to List
, but the issue persisted.Recompiled and Republished:
AL: Publish Without Debugging
.No.
and Department
fields from the table.InsertRecord
action should allow adding new records to the table.No.
, Department
) defined in the table?'InsertRecord' does not exist
error for a Card
or List
page?Any help or insights would be greatly appreciated!
Hi, good day
I hope this can help you, and give you some hints.
Refreshing the page on Table Extension
Best Regards
Gerardo
CurrPage.InsertRecord()
is not a valid function. What exactly are you trying to achieve with that?field("No."; Rec."No.")
{
ApplicationArea = All;
Caption = 'Mitarbeiter Nr.';
}
field("Department"; Rec."Department")
{
ApplicationArea = All;
Caption = 'Abteilung';
}
André Arnaud de Cal...
292,162
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156