Unbound controls on page are always editable
Controls not bound to a field in the record stays editable regardless if the page is in edit or view mode. At least if PageType = Card. Haven't tried other page types.
"platform": "13.0.0.0", "application": "13.0.24623.0", AL Extension: 2.0.48254
I'd suggest playing with different page types as a workaround, Card Plus, Worksheet, Document.
Be careful with Lists though, as often a variable will have values saved per record, and to get around that I usually send the value back and forth to a codeunit just to store and retrieve it so it remains static.
(sorry if posted twice; somehow GitHub does not display correctly for me today)
This is old behaviour since NAV Windows Client days. Simply create a new global variable (e.g. Named DynamicEditable) and assign it to the Editable property of your page field(s).
Set the variable like this:
OnAfterGetCurrRecord()
DynamicEditable := CurrPage.EDITABLE;
You're absolutely right :-) Thanks!