I think it is
impossible to change a card (cardpart) page
field's visibility dynamically (when the page goes to any other record -OnAfterGetRecord or OnAfterGetCurrRecord, the visibility variable is re-set). It works on groups but not fields. Or am I missing something very important
![:/ :/](https://forum.mibuso.com/resources/emoji/confused.png)
?
PS: We cannot use boolean array member variable (BoolVar[1],BoolVar[2], ... ect.) in the visibility property too
![:s :s](https://forum.mibuso.com/resources/emoji/confounded.png)
Answers
There was nice blog write-up somewhere explaining the difference which IncludeInDataset property makes, and why it is there. Unfortunately I can't find any reference to it right now
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Unfortunately IncludeInDataset property doesn't work. But as you said, wrapping all field controls in a group and controlling groups' visibilities works.
Thanks for suggestion!
Dynamics NAV Developer since 2005