Fields with locked caption at table/table extension level are not displayed on pages with the given caption
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 881
- Forks
- 285
- Avg merge
- 3d 36m
- Merged PRs (30d)
- 1
Description
Please include the following with each issue:
1. Describe the bug
Adding fields to table/table extension with locked caption are displayed on pages with the field name rather then the given caption.
2. To Reproduce
- Create a table and a table extension with a new field
- Add a caption to the field with the property Locked set to true
- Create a page and a page extension and add the field.
- Note that the caption of the field shown in the page is not the caption set into the table/table extension, but the name of the field.
tableextension 50324 Vendor extends Vendor
{
fields
{
field(50320; "Name 3"; Text[50])
{
Caption = 'Nome 3', Locked = true;
DataClassification = CustomerContent;
}
}
}
pageextension 50321 "Vendor Card" extends "Vendor Card"
{
layout
{
addafter("Name 2")
{
field("Name 3"; Rec."Name 3")
{
ApplicationArea = All;
}
}
}
}
table 50325 "My Entity"
{
fields
{
field(50320; "Name 3"; Text[50])
{
Caption = 'Nome 3', Locked = true;
DataClassification = CustomerContent;
}
}
}
page 50321 "My Entities"
{
Caption = 'My Entities';
PageType = List;
SourceTable = "My Entity";
ApplicationArea = All;
UsageCategory = Lists;
layout
{
area(Content)
{
repeater(Control1)
{
field("Name 3"; Rec."Name 3")
{
}
}
}
}
}
Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient.
3. Expected behavior
The page shows the field with the caption given at table/table extension level.
4. Actual behavior
The page shows the name of the field as caption instead of the given caption.
5. Versions:
- AL Language: 17.0.1998613
- Visual Studio Code: 1.108.0
- Business Central: IT Business Central 27.3 (platform 27.0.44301.0 + application 27.3.44313.44331)
- Operating System:
- Windows
- Linux
- MacOS
Final Checklist
Please remember to do the following:
-
Search the issue repository to ensure you are reporting a new issue
-
Reproduce the issue after disabling all extensions except the AL Language extension
-
Simplify your code around the issue to better isolate the problem
Internal work item: AB#619449
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in Visual Studio Code using the supplied AL table, table extension, page, and page extension snippets. Compare the captions shown on the pages with the locked captions defined at table level; done when both pages display the specified table or table-extension caption instead of the field name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100