Notifications
Announcements
No record found.
Hi All,
Please suggest how to call the form field checkbox clicked method from menuitembuttom clicked method.
*This post is locked for comments
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?
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.
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.
Hi DG, the above suggested method seems to be working.
Thank you
Glad your answer has been provided. Can you mark the answer from DG? Then this question will get the status answered.
Hi,
I am able to call checkbox clicked method. Is it possible without manual code the check box check and uncheck with external call?
Can you elaborate on your last question?
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.
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.
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.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2