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!
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!
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!
To get the date, you can use systemDateGet(), for example.
timenow() would give you time, not date.
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.
Hello Ahmed,
You can use
time2str(timenow(),1,1)
Komi,
Regards.
André Arnaud de Cal... 291,703 Super User 2024 Season 2
Martin Dráb 230,433 Most Valuable Professional
nmaenpaa 101,156