Announcements
No record found.
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
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.
Thanks Vilmos for your answer but i want it only in job to display the date to be selected.
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
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Joris dG 5
Andrew Jones a1x 2
Basit 1