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 :
Microsoft Dynamics AX (Archived)

What exactly is in XppPrePostArgs _args ??

(0) ShareShare
ReportReport
Posted on by

Hi,

I try to understand Event Handlers and have problem with figure out what is in XppPrePostArgs _args ??

Event handlers could be subscribe to method and delegates... But the methods and delegates could be in many places: classes, tables, forms etc...

Could someone explain in simply word :) what is in XppPrePostArgs _args ??

Thank you in advance.

PS. I know that mixing topics isnt a good practise... but could someone give me url where i can find classes which are mostly use with explanations and examples ?? For example i discovered today that there is class DictTable which provides information about a table. Yes i know... that are basics :) Could you give examples about another useful classes/tables/etc.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    XppPrePostArgs _args is just a declaration of a method parameter. The type is XppPrePostArgs class and you can see its members in documentation or in your development environment. _args is just a name of the variable.

    It's used primarily with event handles attached to methods, when it provides information about method parameters (e.g. getArg()), about the current object (getThis()) and it even allows you to make some changes, such as changing the return value (setReturnValue()). Look at details into documentation and use cross-references if you want to find examples in code.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans