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)

Salesparmtable - InitfromSalesTable() method

(0) ShareShare
ReportReport
Posted on by 2,426

Good Morning,

I have added one field to salestable_extension table
i want to flow it to salesparmtable.
There is one method in Salesparmtable - InitfromSalesTable()
I want to write code in the above method.
What should be done in that case.
Copying event handler is the solution and in that pre or post should be used?
Please show some light on this.
Regards.
Have a great day.

*This post is locked for comments

I have the same question (0)
  • AX 2012 r3 Profile Picture
    2,426 on at

    Experts please reply.

  • Verified answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    Yes, you can use

    - a post event handler

    - or Chain of Command and add your logic after the "next" call.

  • AX 2012 r3 Profile Picture
    2,426 on at

    Hi,

    Thanks for your reply.

    1. Post event handler - If i do so, if i copy paste handler and paste in class then in that copied handler method i will get args right.. In that which record will be present.

    Salestable or Salesparmtable record.

    2.Chain of command - can you give some example .

    Regards.

    Have a great day.

  • Verified answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    1. Yes

    2. Please see this example:

    [ExtensionOf[tableStr(SalesParmTable))]
    final class MySalesParmTable_Extension // Remember to include your prefix in the naming to avoid conflicts with standard objects, isv solutions and so on
    {
        public void initFromSalesTable(SalesTable _salesTable)
        {
            next initFromSalesTable(_salesTable);
    
            this.MyField = _salesTable.MyField;
        }
    }


  • AX 2012 r3 Profile Picture
    2,426 on at

    Thanks for your kind reply.

    I will make a try and let you know.

    Regards.

    Have a great day.

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 44

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans