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 :
Microsoft Dynamics AX (Archived)

How to call form field checkbox clicked method through menuitem button clicked method

(0) ShareShare
ReportReport
Posted on by 2,340

Hi All,

Please suggest how to call the form field checkbox clicked method from menuitembuttom clicked method.

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,917 Super User 2025 Season 2 on at

    Hi Nagaraj,

    Can you elaborate on your question? Do you want to execute the menu item and after this is complete also call another method which is available on a checkbox?

  • Suggested answer
    DG Profile Picture
    1,226 on at

    In theory you can set the auto-declare property of the checkbox field to 'Yes'. Then in the menu item button 'clicked' method call the method '<NameOfCheckBox>.clicked()'.

    But I think there may better be better ways to code the same thing. Please explain what you want to achieve in the end.

  • nagaraj Profile Picture
    2,340 on at
    Yes, exactly this is my requirement.
  • nagaraj Profile Picture
    2,340 on at

    Hi DG, previously some validation logic written in checkbox clicked method. Now I have created one menuitembutton and clicked method to enable and disable that checked method based on requirement. Now the previously written clicked method logic not working. So after menuitembutton clicked method I need to call the checkbox clicked method.

  • nagaraj Profile Picture
    2,340 on at

    Hi DG, the above suggested method seems to be working.

    Thank you

  • André Arnaud de Calavon Profile Picture
    300,917 Super User 2025 Season 2 on at

    Hi Nagaraj,

    Glad your answer has been provided. Can you mark the answer from DG? Then this question will get the status answered.

  • nagaraj Profile Picture
    2,340 on at

    Hi,

    I am able to call checkbox clicked method. Is it possible without manual code the check box check and uncheck with external call?

  • André Arnaud de Calavon Profile Picture
    300,917 Super User 2025 Season 2 on at

    Hi,

    Can you elaborate on your last question?

  • nagaraj Profile Picture
    2,340 on at

    Hi Andre,

    We have two fields one is check box and another one lookup both are by default non editable. If I click on menuitem button the check box should be checked and second field also enable with mandatory property yes.

    If I click on menuitem button again the checkbox should uncheck and second field should be disable. But in my case without giving second field value I can't uncheck the checkbox.

  • Suggested answer
    DG Profile Picture
    1,226 on at

    In this case, please do not call the clicked method of check-box. Instead

    1. Create a new method which perform the addition task which is currently happening on check-box click.

    2. Call this method from check-box click method.

    3. Call the same method in menu item button method clicked after 'super'.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans