<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to use X++ Delegates in Dynamics AX 2012 </title><link>http://blogs.msdn.com/b/x/archive/2011/08/02/how-to-use-x-delegates-in-dynamics-ax-2012.aspx</link><description>In this post I want to cover some of the core functional aspects of the new delegates feature introduced in AX 2012. X++ delegates expose the publisher -subscriber pattern where a delegate defines a clear contract in a publisher class. This contract is</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How to use X++ Delegates in Dynamics AX 2012 </title><link>http://blogs.msdn.com/b/x/archive/2011/08/02/how-to-use-x-delegates-in-dynamics-ax-2012.aspx#10281728</link><pubDate>Tue, 13 Mar 2012 01:12:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10281728</guid><dc:creator>Steven</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How do I programatically attach to the &amp;quot;update&amp;quot; method on a table. I want to subscribe many instances of my class to this such that I can pickup then status changes within the table occur. Every example I&amp;#39;ve seen simply referes to delegates on a class, yet in the AOT I can add a event subscription statically - which is of no real use. I need to do this dynamically.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10281728" width="1" height="1"&gt;</description></item><item><title>re: How to use X++ Delegates in Dynamics AX 2012 </title><link>http://blogs.msdn.com/b/x/archive/2011/08/02/how-to-use-x-delegates-in-dynamics-ax-2012.aspx#10192512</link><pubDate>Wed, 03 Aug 2011 18:05:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10192512</guid><dc:creator>Marcos Calderon M</dc:creator><description>&lt;p&gt;Among the reasons delegates and events handlers have been introduced in AX2012 is to provide application developers with additional tools to reduce the need of customizations base on editing X++ source code in upper layers, however that implies application code should be designed and written in a such a way that &amp;nbsp;the behavior exposed could be customized by event handlers subscribed to the delegates, passing as part of the contract the enough information and right abstractions (APIs) to make possible the behavior customization easy. Pre and Post event handlers have been introduced with the same reason in mind (Additional reference useful to read is: &lt;a rel="nofollow" target="_new" href="http://daxmusings.blogspot.com/2011/07/ax-2012-models-events-part3-power-combo.html"&gt;daxmusings.blogspot.com/.../ax-2012-models-events-part3-power-combo.html&lt;/a&gt;)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10192512" width="1" height="1"&gt;</description></item><item><title>re: How to use X++ Delegates in Dynamics AX 2012 </title><link>http://blogs.msdn.com/b/x/archive/2011/08/02/how-to-use-x-delegates-in-dynamics-ax-2012.aspx#10192401</link><pubDate>Wed, 03 Aug 2011 13:16:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10192401</guid><dc:creator>Tommy</dc:creator><description>&lt;p&gt;@Curious: &amp;quot;delegates&amp;quot; are an essential part of an event driven architecture. This is great news for those who want to reuse business logic without overriding, replace, rewrite or shadow existing business logic. It enhances future maintenance of your business application making it even easier to add custom logic to existing logic. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10192401" width="1" height="1"&gt;</description></item><item><title>re: How to use X++ Delegates in Dynamics AX 2012 </title><link>http://blogs.msdn.com/b/x/archive/2011/08/02/how-to-use-x-delegates-in-dynamics-ax-2012.aspx#10192290</link><pubDate>Wed, 03 Aug 2011 05:10:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10192290</guid><dc:creator>Curious</dc:creator><description>&lt;p&gt;Why was this change made, I&amp;#39;m trying to see the business logic?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10192290" width="1" height="1"&gt;</description></item></channel></rss>