Skip to content

Page renders ListParts collapsed if visibility handled from code #6258

@SzabolcsGyorke

Description

@SzabolcsGyorke

Describe the bug
On a Card/ Document page layout if you have a Part with a lispart page in it and if you control its visibility property from code it always appears collapsed - before v17 it started as open. And also messes up the list header - not scrolling with the columns.
To Reproduce
Steps and to reproduce the behavior:

  1. Just add a list part to a Document page and populate the Visibility property with a Boolean field.

AL Code to reproduce the issue
part(SalesLines; "Sales Order Subform")
{
ApplicationArea = Basic, Suite;
Visible = SalesLinesVisible;
Editable = DynamicEditable;
Enabled = "Sell-to Customer No." <> '';
SubPageLink = "Document No." = FIELD("No.");
UpdatePropagation = Both;
}
Expected behavior
If the Visibility boolean set to true then show the part page opened and be able to scroll left or right with the column headers following the columns.

Screenshots
If applicable, add screenshots to help explain your problem.

5. Versions:

  • AL Language: 6.0
  • Business Central: 17.0.16993.0

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions