web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Should display the date according to the selected date

(0) ShareShare
ReportReport
Posted on by

I had a code for getting the date of current date and system date.

I want a code for displaying the date according to the selected date should be displayed on the check box.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Your request is unclear on what exactly do you want.

    Are you talking about hiding the date control if a checkbox is ticked or not? That is not related to your tag of "Job".

    For that scenario you'd set AutoDeclaration = Yes on the FormDateControl and checkbox control too, the you can call yourFormDateControl.enabled(yourCheckBoxControl.value() == NoYes::Yes); to enable/disable it, or .visible() to show or hide it.

    If this was not your request, please learn to provide better specifications like if you would put it on paper for your customer.

  • Community Member Profile Picture
    on at

    Thanks Vilmos for your answer but i want it only in job to display the date to be selected.

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Use the Dialog class, and add a DialogField where the Extended Data Type used is of primitive data type Date, like TransDate. That will prompt you with an input, and can select the date.

    Something along these lines:

    https://community.dynamics.com/ax/b/axaptavsme/archive/2015/08/25/date-manipulation-through-x-code-ax-2012

  • Suggested answer
    Community Member Profile Picture
    on at

    Thanks Vilmos for your answer

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans