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, ...
Suggested Answer

Form data field extension: modified method override

(0) ShareShare
ReportReport
Posted on by

Hi,

I want to apply logic to the modified method of datasource's field.

I created a formdatafieldstr extension class.

Placed the COC modified method there, but it is not executed (breakpoint isn't hit).

Probably this is because, that on the form itself the modified method isn't overriden (?).

So, how can I have the modified method? I thought maybe I should just have it in my extension class without calling the "next", but in this case I have an error that CoC needs the call to next.

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,075 Super User 2025 Season 2 on at

    Hi DAX Dev,

    Have you also considered extending the table event? Do you really need it on form level?

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi DAX Dev,

    Could you, please, share full code of your extension class and what F&O are you using? CoC should work even if method is not overriden on the form itself.

  • DAX Dev Profile Picture
    on at

    [ExtensionOf(formDataFieldStr(InventJournalTransfer, InventDimIssue, InventLocationId))]

    final class InventJournalTransferxxx_Extension

    {

       public void modified()

       {

          ---My Code Here---

           next modified();

           ---My Code Here---

       }

    }

  • DAX Dev Profile Picture
    on at

    Hi Andre,

    sure.

    Just want to know what to do if I want to override a method.

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi DAX Dev,

    Have you tried to rebuild the project and check it again? And what F&O version are you using? At least it's working in 10.0.10

  • DAX Dev Profile Picture
    on at

    Hi Sergei,

    yes, I built the model with all references.

    I'm using 10.0.9

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

    Hi DAX Dev,

    Just to double-check, you want to change the warehouse on line level and apply custom logic? Not on the header level?

  • DAX Dev Profile Picture
    on at

    Hi Sergei,

    as it is possible to modify the warehouse on line level, I would like to apply some validation steps.

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 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans