Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

by checkbox, hold method execution

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

  • Deepak Agarwal Profile Picture
    Deepak Agarwal 148 on at
    RE: by checkbox, hold method execution

    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.

  • Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,605 Super User 2024 Season 1 on at
    RE: by checkbox, hold method execution

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

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,605 Super User 2024 Season 1 on at
    RE: by checkbox, hold method execution

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

  • GirishS Profile Picture
    GirishS 27,832 Super User 2024 Season 1 on at
    RE: by checkbox, hold method execution

    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.

  • RE: by checkbox, hold method execution

    its of form level

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,605 Super User 2024 Season 1 on at
    RE: by checkbox, hold method execution

    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.

  • GirishS Profile Picture
    GirishS 27,832 Super User 2024 Season 1 on at
    RE: by checkbox, hold method execution

    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.

  • GirishS Profile Picture
    GirishS 27,832 Super User 2024 Season 1 on at
    RE: by checkbox, hold method execution

    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans