web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Change default time of the EDT 'EDTTime'

(0) ShareShare
ReportReport
Posted on by 640

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

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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.

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    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

  • Kedar Dande Profile Picture
    640 on at

    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

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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.

  • Kedar Dande Profile Picture
    640 on at

    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.

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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.

  • Suggested answer
    Kedar Dande Profile Picture
    640 on at

    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.

  • Verified answer
    Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans