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

by checkbox, hold method execution

(0) ShareShare
ReportReport
Posted on by 25

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

I have the same question (0)
  • GirishS Profile Picture
    27,827 Moderator on at

    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.

  • GirishS Profile Picture
    27,827 Moderator on at

    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.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    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.

  • Praveen Adigoppula Profile Picture
    25 on at

    its of form level

  • GirishS Profile Picture
    27,827 Moderator on at

    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.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    If it's of form level, you can simply call the method on checked() method of the checkbox.

  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    Can you please give us the complete the requirement here? Also what customisation has done already?

  • Deepak Agarwal Profile Picture
    8,602 on at

    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.

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans