Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Axboundfield's ondatachanged event do not fire in case of Date field

Posted on by 922

Hello everyone,

I have noticed that ondatachanged event does not fire in case of changes in "Date" field.

Here is my code;

7455.Screenshot_5F00_6.png

Here when I change worker Ondatachange event fires but no response in case of start date and end date.

7180.Screenshot_5F00_7.png

Due to this issue, my workflow submits button to appear and does not submit the newly changed date instead it submit old date which is stored in the table.

Is there any workaround on how to save the date to backend table on date change?

*This post is locked for comments

  • Khurshid Wali Profile Picture
    Khurshid Wali 922 on at
    RE: Axboundfield's ondatachanged event do not fire in case of Date field

    Thankyou BrandonSA for your reply,

    I tried that that too. date lookup does not hit any event handler on EP.

  • Suggested answer
    BrandonSA Profile Picture
    BrandonSA 1,669 on at
    RE: Axboundfield's ondatachanged event do not fire in case of Date field

    Hi

    Try to use the modified() method instead.

    I could be wrong - I'm open to correction on this one - but modified() fires whenever the field is modified. ondatachanged() fires when the field is modified AND saved.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans