Announcements
Hi team,
I have a query here-
if checkbox unchecked, stop functionality of static method in a form in AX, how to write code for that in job.
Please let me know if possible..
Thank you and regards,
A Praveen
Hi,
How the static method is called. You can try to write your business logic on check box control when its modified you disable static method call if its on button.
Can you please give us the complete the requirement here? Also what customisation has done already?
If it's of form level, you can simply call the method on checked() method of the checkbox.
If the check box values is not stored in the table then its impossible to get the value of the check box control on the job. Since that check box control is not bound to datasource.
Thanks,
Girish S.
its of form level
Hi Praveen,
You can simply call the static method of form when this checkbox is enabled. If it's disabled it won't get executed and it will stop further execution.
You can write the code on clicked method / on clicked event and checking this Noyes condition, you can call directly that method.
Oh seems you need to write that in job.
So is the check box field is a table level field or form control?
Thanks,
Girish S.
Hi Praveen,
As per my understanding - if its a custom method you can add a if condition - if the check box is unchecked don't call that method else call that method.
If above is not exact functionality you are referring to, please elaborate more on your query.
Thanks,
Girish S.
André Arnaud de Cal...
294,208
Super User 2025 Season 1
Martin Dráb
232,970
Most Valuable Professional
nmaenpaa
101,158
Moderator