Auto populate Current date field in form ax2012
I want when open form then CreateDateTime field auto fill, how??
Any one help me please.
Thank You!
I want when open form then CreateDateTime field auto fill, how??
Any one help me please.
Thank You!
You verify an answer by Did this answer your question? > Yes on the reply (or replies) answering the question.
You can read more about it in Suggested and Verified Answers.
Sir issue resolved.
Thanks.
If it answered your question, please don't forget to verify the answer.
Thank for help.
You can't show the time when the record was inserted to database before it was actually inserted. That's clearly impossible - you don't know when exactly it'll be inserted - or if it'll be inserted at all.
If you really want, you can create another field with a different meaning - not when the record was created, but when it was initialized and a user could start working on it. Then you could easily initialize the value in initValue() method of the table. But I doubt that this additional field would be useful enough; that's why I recommended stricking to CreatedDateTime.
okay you mean when user add record and then show in form otherwise it is not possible?
Thank you!
You're looking at the problem from a wrong angle. You want to to initialize the value when creating a new record in the table, not when opening a form. Yes, when you open a form and there is no record, a new one is created, therefore it looks like the same thing in the particular case, but focusing on the form is misleading.
The problem in your case is that this field is populated when the record is inserted, which didn't happen yet. It'll be populated when you fill mandatory fields and save the record. That's how it works across the system, therefore the best thing you can do is explaining that to users and not making any changes.
André Arnaud de Cal...
294,430
Super User 2025 Season 1
Martin Dráb
233,043
Most Valuable Professional
nmaenpaa
101,158
Moderator