Question
BMO Financial Group
CA
Last activity: 27 Jul 2025 17:50 EDT
Visible when/Enable when condition in Navigation Rule not working
Hi , I have a scenario where I need to Hide/disable the menu items present in a Navigation rule on the screen.
This is supposed to happen when a flag is set on pyDisplayHarness from another harness. I have tried adding when rule for visible when/enable when condition in the Navigation rule and both of them seem to be not working. Attached is the Navigation rule screenshot for reference.
Could you please advise as what could be missing or how to debug this further ?
@AshwaniJha The issue is that visible/enable conditions in a Navigation rule don’t update dynamically they get evaluated only once when the portal loads. If you're setting a flag on
pyDisplayHarnessfrom another harness, the Navigation menu won’t recheck that flag unless the section is manually refreshed. First, double-check in the Clipboard that the flag is actually present and set on the right page. Instead ofpyDisplayHarness, try using a requestor-level data page or declare page that holds the flag. This lets the condition persist across screens. You can also try forcing a refresh of the navigation section using aRefresh-OtherSectionaction when the flag is updated. If you're in Constellation or a complex layout, consider replacing the traditional Navigation rule with a section-based custom menu where visibility rules work properly on change.