web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Inheritance Class in Ax7

(0) ShareShare
ReportReport
Posted on by

Hi friends,

               I need to know the inheritance class for LedgerAccuralTrans.  i am trying to change the enddate() value for ledgerjournaltransaccural form, i have taken postevent handler method for calcenddate() and updated my end date 

but till i cant change  my end date. can anyone please suggest me the solution.

Thanks & regards,

padmapriya

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    dasdasd Profile Picture
    841 on at

    Hi Padma,

    In AX7 it is simply done by creating an extension class with the template shown below using the ‘ExtensionOf’ attribute:

    [ExtensionOf(classStr(MyClass))]

    final class MyClass_Extension

    {

    }

    Now for your postevent handler you can get the datasource from Event Arguments and assign your value to the relevant datasource field.

    Regards,

    Tabsheer

  • Community Member Profile Picture
    on at

    Hi Tabsheer,

                  I have created posteventhandler method for calcenddate(),  

                  TransDate ret = _args.getReturnValue();

                   if(ret)

                   {

                       ret =toDate; // info(strfmt("%1",recId)); // ret = ;//systemDateGet() ;); = syste

                   }

                   _args.setReturnValue(ret);

             this is code passing end date value .

    this affects in ledgerjournaltrans accural form but not in ledgerjournaltransaccuraltrans form.

    thanks & regards,

    padmapriya.v

  • dasdasd Profile Picture
    841 on at

    Hi Padma,

    From which form you have created posteventhandler method for calcenddate() ?

    Beacuse I couldn't find calcenddate method in forms as describe by you.

    Regards,

    Tabsheer

  • Community Member Profile Picture
    on at

    Hi Tabsheer,

           The form name is ledgerjournaltransaccural their the method "End date" in that calcenddate() is called . and calcenddate() is coming from ledgerjournaltransaccural table.

    thanks & regards,

    padmapriya

  • Suggested answer
    Fedir Kryvyi Profile Picture
    1,026 on at

    You can right click on the class and select "View hierarchy" to check hierarchy tree of the class

    4276.Untitled.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
imran ul haq Profile Picture

imran ul haq 8

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 4 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans