Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Default Checkbox (True)

Posted on by Microsoft Employee

Good morning to all:

I have a question about that subject, I need the default value in the checkbox of a table to be true. 

I read in the forum about this Theme, but the answers are not clear and i need a better explanation.

I have already in the propierties the "value = 1" and "Autodeclaration = Yes"

Which method do I need in the design of the checkbox?

How do I call it from the form "init"?

Thanks you.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Default Checkbox (True)

    Thank you very much, that works. I had tested with that, but I had used an "init ()" method instead of "initValue ()", now I understand why it failed.

    Thanks again.

  • AX 2012 r3 Profile Picture
    AX 2012 r3 2,420 on at
    RE: Default Checkbox (True)

    Hi Adame,

    Try this

    yourcontrolname.value(True);

    Regards.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,269 Super User 2024 Season 2 on at
    RE: Default Checkbox (True)

    HI Adame,

    On the table, you should create or modify the initValue() method. Then you can add coding like this:

    this.setEnable = NoYes::Yes;   (setEnable should be replaced with your fieldname)

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans