Turning fields invisible or not editable on 2013

Spyroot
Spyroot Member Posts: 45
edited 2014-12-23 in NAV Three Tier
Is there a way to turn invisible or not editable fields on page when certain criteria happens?

on old version the code was:

Currform.MyField.VISIBLE := FALSE;
Currform.MyField.EDITABLE := FALSE;

Since I upgrade to 2013 the code change I'm in learning process again ;)

Thank you in advance.

Comments

  • skulla
    skulla Member Posts: 140
    Yes you can accomplish this in 2013. Create a new boolean variable and in the properties of the variable set IncludeInDataSet to yes. Assign this variable to the page field Editable property.

    Add the code on the open page, onaftergetrecord, onaftergetcurrrecord to set the variable to true or false based on your requirement.