Notifications
Announcements
No record found.
Hi,
I have created a field in the Form and the field is a check box.!
i am working on master planing and in that i need to add a custom field showing safety stock, so i have added a checkbox field in the form now i want only the checkbox ticked when the safety stock is available and if its not available i want the check box anticked so how do i proceed ahead now as i am not understanding how to move forward....
Thanks in Advance;
Josiah
Hi Josiah,
First step would be to add an extension class for your business logic:
docs.microsoft.com/.../method-wrapping-coc
Once you do that, add the logic to enable/disable the checkbox:
yourTable.yourField = NoYes::Yes //for checking the checkbox yourTable.yourField = NoYes::No //for un-checking the checkbox
What will trigger your code will depend on the business scenario that you're planning to run. If you want to do it as soon as the form is opened, go with the Initialized Event Handler from the datasource.
Hope that helps.
Regards
I can accept calculating the value of the field in the init of the form, but if it is critical information that can change while the form is open, I suggest you write a display method.(As I understand it, you want an informational field that the user cannot change. So You don't need a field)
Can You help me with the code.!
I tried but it isnt working it shows it is been prematurely terminated.
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.
Abhilash Warrier 669 Super User 2025 Season 2
André Arnaud de Cal... 449 Super User 2025 Season 2
Martin Dráb 384 Most Valuable Professional