Skip to content

BC28 - Groups nested inside grid() with Visible toggled via CurrPage.Update(false) not rendered after initial page load #8190

@robertbacu

Description

@robertbacu

Describe the issue

BC version where it broke: 28.0
Last working version: 27.x

Description:
On a Card page where a group nested inside a grid() container has Visible = SectionsVisible
and SectionsVisible starts as false at page open, toggling SectionsVisible to true
and calling CurrPage.Update(false) in a field's OnValidate trigger does not cause the
group and its fields to appear in the web client.

The fields remain blank/invisible until Page Inspection (Ctrl+Alt+F1) is opened, which
triggers a full page re-render and the groups then display correctly.

Actual behaviour: Groups that were not in the DOM at initial render remain absent after CurrPage.Update(false).

Expected behavior

Expected behaviour: CurrPage.Update(false) should cause newly-visible groups (including those nested in grids) to render in the DOM.

Steps to reproduce

Minimal repro:

  • Card page, SourceTable = any table
  • A group nested inside a grid() with Visible = SectionsVisible where SectionsVisible = false on OnOpenPage
  • A scan/lookup field whose OnValidate sets SectionsVisible := true and calls CurrPage.Update(false)
  • Run on BC28 web client → groups do not appear after validate

Additional context

Workaround:
Move Visible = SectionsVisible from the inner nested group up to a top-level group
that is a direct child of area(content), above the grid() container.
This allows BC28's partial-update mechanism to correctly toggle visibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Contribution-BugSomething isn't working in the contribution processSCMGitHub request for SCM area

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions