Skip to content

Bug: Lookup on subpage not working when field is populated, and subpage has dynamic visibility #6289

@NemanjaKutlesic

Description

@NemanjaKutlesic

Describe the bug
On Page where we have multiple Subpages, we control the visibility of them by actions on top. Lookup on fields that have TableRelations in the background only works if the field value is empty. For a field with an existing Value, lookup can only be processed by ALT + down, not by mouse click!
When I comment Visible property of part, everything works as expected.
Probably similar to #4788

To Reproduce
Steps and to reproduce the behavior:

  1. Create a page with subparts (subpart must have at least one field with TableRelation to other table)
  2. Put in Visible property on part to some global boolean value
  3. create action that will show/hide that part
  4. populate a field on subpart with TableRelation from the list by using Lookup
  5. Try again to click on the lookup button on that field (nothing will happen)
  6. Try to use ALT + down combination(lookup will be shown)

Expected behavior
The lookup should always work, no matter is field populated or not, and no matter of the Visibility property of the subpage.

Screenshots
LookupIssue

Versions:

  • AL Language: 6.1.362735
  • Business Central: 17.0

Metadata

Metadata

Assignees

No one assigned

    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