<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/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>Method:Classic General Q&amp;amp;A</title><link>http://forums.method.me/cs/forums/13.aspx</link><description>Ask technical support questions, how do I? Questions... Or anything else you want to know from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>TIP: Shared Results As Variables When Calling Other Action Sets</title><link>http://forums.method.me/cs/forums/thread/16276.aspx</link><pubDate>Mon, 25 Feb 2013 23:17:17 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:16276</guid><dc:creator>Blake C</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/16276.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=16276</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Just a quick tip I discovered this week while implementing custom payroll calculation logic&lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;/span&gt;. Hopefully others will find this useful in their customization efforts within Method.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have a top level button action that includes several different&amp;nbsp;&lt;span id="mce_2_start" style="overflow:hidden;"&gt;calls to other buttons using the action &amp;#39;Call &lt;span id="mce_3_start" style="overflow:hidden;"&gt;Ano&lt;/span&gt;ther Action Set&amp;#39;. Once I get the basic functionality working in one button&amp;#39;s actions and see the need to use the same logic in another button&amp;#39;s actions, I refactor the logic into it&amp;#39;s own button. Then, from the calling routine, I create one or more Shared Results to be used as variables. The new button acts as a &amp;quot;sub routine&amp;quot; of sorts and &amp;quot;returns&amp;quot; one or more Shared Results that the calling routine will then use in it&amp;#39;s own action sequence once control returns back to it. In the step immediately after the Call Another Action Set, I do a Get Value From Shared Result and use that information to continue on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;Hopefully that makes sense. Doing something like this really helped me reduce duplication as well as separate and simplify logic. Any changes I need to make or if I need to add new functionality, the work will be more isolated rather than jammed into a huge button with tons of potentially confusing conditional statements.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;Hope this helps&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>