Skip to content

Table fields with AllowInCustomizations = Never are not visible when added to a page extension #7771

Open
@sybrenwille

Description

@sybrenwille

1. Describe the bug
When you set AllowInCustomization to Never the field cannot be used in page customizations.
However you can still add the field to a page or page extension without a warning from the compiler.
The field is however not visible.
This happens in extensions themself and also when you add a field from a dependend extension

2. To Reproduce
Create a table field with AllowInCustomization set to Never
Add the field to a page.
No compiler Error/Warning/Info appears.
Publish the extension
The field is not visible on the page, and can also not be added

3. Expected behavior
I Expected a Warning from the compiler that a field is used on a page that is not allowed because of AllowInCustomization.

4. Actual behavior
There is no indication that a field is used on a page that will never appear.
You can only check this in the client itself.

5. Versions:

  • AL Language: v13.0.1027618
  • Visual Studio Code: 1.87.2
  • Business Central: 24.0

List of Visual Studio Code extensions that you have installed:

  • BusinessCentral.LinterCop
  • ALCodeActions
  • AL Extension Pack
  • AL Navigator
  • AL Object ID Ninja
  • AL Toolbox
  • AZ AL Dev Tools/AL Code Outline

Internal work item: AB#592244

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions