Quantcast
Channel: Microsoft Dynamics NAV
Viewing all articles
Browse latest Browse all 64865

Forum Post: RE: Use of Property "Editing" in Pages using C/AL Code.

$
0
0

Hi Marlon,

It can be done very easy.  You do not use Editable - but Enabled.

On the fields you want to be editable, you make the enabled depending on a Boolean value.

This boolean you control both from OnOpenPage, and later from the validate on the different fields.
I suggest you make a function you call with the FieldNo each time, so you keep it all centralized and the code clean.
On OpenPage you call the function with a 0  (zero), which in the function will process all the fields.

You can see an excellent example on this on the standard Item Card.

Kind regards

Soren Smith
---------------/////////---------------
NAV Developer, Consultant
Certified trainer since 1998


Viewing all articles
Browse latest Browse all 64865

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>