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)

How to stop the process after the Pre event handler

(0) ShareShare
ReportReport
Posted on by 435

Hi All,

I have created Pre event handler for "SRSReportRunPrinter" class.

Now i want to run only Pre event handler method for my report, afterwards stop the standard process.

How can i achieve this.

Anyone suggest.

Thanks.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    I do not think that is possible to skip the main method execution. You could only "throw" to handle the code interruption in the next catch block, but in that case it stops all subsequent execution, since it is an error.

  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    Hi Edselv Evert,

    It is possible in PU11 with a new  Replaceable feature in CoC kashperuk.blogspot.co.nz/.../development-tutorial-extensibility_7.html , however, method you want to skip should be marked with  [Replaceable] and it could be done only by MS if you create an extension request and they accept it. Otherwise, you may look at "workaround" with exception, however, I won't recommend you this way, because it is a hack and could cause lots of problem.

  • Vilmos Kintera Profile Picture
    46,149 on at

    For AX 2012 the above are not applicable.

  • Mea_ Profile Picture
    60,284 on at

    Oh that's 2012. So don't waste your\our time and go with standard "overlayering" approach instead of event handlers, they are far from ideal in 2012 and have very limited capacity.

  • Vilmos Kintera Profile Picture
    46,149 on at

    Please kindly mark the answers which you have found to be helpful with the checkbox next to each post, in order to resolve the thread and assist others.

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
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans