Notifications
Announcements
No record found.
Hi Experts
Can anyone tell me if there is a way to change field's properties like visible, editable, etc.
using C/AL code?
Thanks in advance
*This post is locked for comments
Hi Angel,
Let NAV be your guide, meaning: have a look at the standard application. Take for example Page 30 (Item Card) and see how, for example, costring controls are enable using boolean variables UnitCostEnable and StandardCostEnable to set the value of the Enabled property of these controls dynamically to TRUE or FALSE. Crucial for these variables is to set the IncludeInDataSet property to Yes.
And of course google is your friend too:
Hi,
You can create one boolean variable and assign the same variable to required field's Editable or Visible Property.
Later as per your conditions, you can assign the value to that particular boolean variable.
You can refer standard "No." field property in any of the sales or purchase documents (OnOpenPage > SetDocNoVisible).
Hope this helps.
Thanks again for help Vishal it works
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
HoangNam 7