web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to update a checkbox in the field and display the checkbox tick to a particular field

(0) ShareShare
ReportReport
Posted on by 5

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 

I have the same question (0)
  • Suggested answer
    greengrimms Profile Picture
    1,400 on at

    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

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    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)

  • Josiah12 Profile Picture
    5 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans