Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

EDT real with an upper limit

(1) ShareShare
ReportReport
Posted on by 273
We're trying to put an upper bound on a numeric Extended Data Type, i.e. such that it can never be higher than 99,999,999.99  I can only find EDT properties on MS learn for AX 2012, not D365, so there were a couple of properties at EDT level that looked like they had potential:
  • Scale
  • Display Length
  • No of Decimals
The third of these has the expected effect, the second just seems to change the size of the input control, and the first doesn't have any obvious impact, even after build, DB sync, dev box restart (last of these very much a desperation idea)
 
On the off-chance we could implement through the UI, we also tried two properties of the control on the form:
  • Display Length
  • Display Length Mode
  • Limit Text
  • Limit Text Mode
Again, these appear to have no effect: we're able to input numbers with more digits than the values specified in the above properties & they're saved to the DB & shown again when the form is refreshed. Can anyone please point to a property we're missing? Or do we need to extend the validateWrite method on the table to which we're adding the field?
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,433 Most Valuable Professional on at
    EDT real with an upper limit
    I don't think there is a way to do it through properties.
     
    The best method for the validation in GUI is validateField() on the table, because then the value is checked immediately on change; it doesn't require saving the record.
    But you still may want to validate it in validateWrite() as well, to ensure that the rule is enforced even when the value is set from code or so.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,703 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans