web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • DAX Dev Profile Picture
    on at
    RE: Form data field extension: modified method override

    Hi Sergei,

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

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at
    RE: Form data field extension: modified method override

    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
    RE: Form data field extension: modified method override

    Hi Sergei,

    yes, I built the model with all references.

    I'm using 10.0.9

  • Sergei Minozhenko Profile Picture
    23,093 on at
    RE: Form data field extension: modified method override

    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
    RE: Form data field extension: modified method override

    Hi Andre,

    sure.

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

  • DAX Dev Profile Picture
    on at
    RE: Form data field extension: modified method override

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

    final class InventJournalTransferxxx_Extension

    {

       public void modified()

       {

          ---My Code Here---

           next modified();

           ---My Code Here---

       }

    }

  • Sergei Minozhenko Profile Picture
    23,093 on at
    RE: Form data field extension: modified method override

    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.

  • André Arnaud de Calavon Profile Picture
    297,611 Super User 2025 Season 2 on at
    RE: Form data field extension: modified method override

    Hi DAX Dev,

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

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 823 User Group Leader

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 491 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans