Announcements
No record found.
Hey,In Dynamics ax2012, I want when click on check box then field From Date and To Date automatically get current system date.
How can do? Please help me.Thanks!
Hello Ahmed,
You can use
time2str(timenow(),1,1)
Komi,
Regards.
It's not clear but I think you have a form and 3 unbound control. Then;
Set from and To controls Auto Decleration property to YES
At the CurrentDate's modified method, check CurrentDate's value and set other values.
To get the date, you can use systemDateGet(), for example.
timenow() would give you time, not date.
Is it a form or a dialog? Anyways, you need to override the modified method of the Current date. In that method, check if the flag is true, and based on that you can use DateTimeUtil::utcNow() top populate the Active from and Active to fields.
Hope this helps!
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.
Giorgio Bonacorsi 681
André Arnaud de Cal... 446 Super User 2026 Season 1
Syed Haris Shah 202 Super User 2026 Season 1