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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,004
André Arnaud de Cal... 857 Super User 2025 Season 2
Sohaib Cheema 548 User Group Leader