Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

New Method creation in Table

Posted on by 362

Hi Team,

I have created a Extension for a table and would like to add a new table method to it.But i am not getting that option. Could you please suggest me.

Regards

Venky

*This post is locked for comments

  • Venkatdax0 Profile Picture
    Venkatdax0 362 on at
    RE: New Method creation in Table

    Thanks Sukrut

  • Venkatdax0 Profile Picture
    Venkatdax0 362 on at
    RE: New Method creation in Table

    Hi Sukrut,

    I tried the same on different project in visual studio by creating the table extension of CustParameters table. However i am getting the error as The Extends of Attribute specification is invalid when i am building the project as shown in the below screenshot.Could you please help me in knowing the points if i missed anything.

    Extenparams.png

    Regards

    Venky

  • Gautam Profile Picture
    Gautam 3,945 on at
    RE: New Method creation in Table

    Hi

    have a look to below link

    gautamdynamicsax.blogspot.in/.../ax-7-adding-method-to-table-using.html

    Thanks

  • Suggested answer
    Venkatdax0 Profile Picture
    Venkatdax0 362 on at
    RE: New Method creation in Table

    Hi Sukrut,

    Thanks a lot for the clarification.

    I have created a new extension class and i was able to call the same from the table buffer of the respective respective table for which i have created an extension class in event handler class. However i see that the logic is not getting executed. I have debugged the code and see that the line where i have called the method is there. Could you please help me on this if i am missing anything in this regard.

    Regards

    Venky

  • Venkatdax0 Profile Picture
    Venkatdax0 362 on at
    RE: New Method creation in Table

    Hi Sukrut,

    Thanks a lot for the clarification.

    I am just wondering if the extension class and event handler class are the same which are called anonymously. I also see an option to create the method in augmentation class which extends the table. Could you please clarify me.

    Regards

    Venky

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