Notifications
Announcements
No record found.
Hi Folks,
I've created a new EDT 'DeliveryTime' of type 'EdtTime', which extends 'TimeOfDay' and I've assigned this EDT to newly created field in PurchTable.
Whenever I'm creating a record by default the newly created field will have default time "12:00 AM". I just want to remove the default time assignment for the field.
I've gone through the properties of EDT but none of the property helping. Any help would be much appreciated.
Thanking you in advance
Time of day is actually seconds from midnight. So if the field is empty = 0, it will show as midnight.
So there's no "default value", it's zero. But time field will show it like that.
Hi Kedar,
You should take a look at PurchTable.initValue method. The method is called when new record is created and you can initialize default values.
BR, Sergei
Hi Nikolaos,
Thanks for your reply, currently it's working as you mentioned. But, I want that field to be blank in the form, if there is no value/null.
Regards,
Kedar
Time field shows times. There's no "blank time".
In some data types, such as int, you can hide 0 value in the data type settings. Not sure if you can do it for time. But if you can, it would mean that midnight is shown as empty. Since midnight is same as zero, there's no special value for "empty". Just like in your old digital watch it shows 00:00 when time is not set up.
You can of course create a display field (string) that shows empty string if your time field is zero. Just remember that then empty means midnight.
I do agree and know the points you mentioned.
But suppose consider I do not have delivery date on PO and delivery time is populating as default time, this doesn't makes any sense. This is the reason I want to set the field value to null.
There is no null value for time of day. But you can of course hide the field (or show a display field with empty contents) if the delivery date is empty.
Yeah well, that's the last solution I'm thinking of providing. Just wanted to check whether I can do as expected.
Thanks a lot for your quick response Nikolaos.
Also note that if you fix it in this one field, all other date fields in all other forms will keep working as before, therefore users will have to get used to anyway...
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 646 Most Valuable Professional
André Arnaud de Cal... 529 Super User 2025 Season 2
Sohaib Cheema 285 User Group Leader