<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>RSS feed for InstantSpot site think-lab.net</title><link>http://think.instantspot.com</link><language>en-us</language><copyright>This work is Copyright &#xA9; 2009 by think-lab.net</copyright><generator>RSSVille ColdFusion FeedMaker, version 1.0</generator><pubDate>Sat, 07 Nov 2009 13:23:27 GMT</pubDate><item><title>Handleing Results in Model-Glue </title><link>http://think.instantspot.com/blog/2008/03/10/Handleing-Results-in-ModelGlue-</link><description>&lt;p&gt;Ok I am not the world&amp;rsquo;s best blogger but I am going to give a shot.  So I am working on a &lt;a href=&quot;http://model-glue.com&quot;&gt;Model-Glue&lt;/a&gt; Application that I started about a year and a half ago.  And I am finally starting to reuse some of my functions.  For example I have a saveUserAddress function and a saveUserAccount function and in both of these function&amp;rsquo;s I add result named success if there wasn&amp;rsquo;t an error.  So here is the problem, we adding a new feature that allows a user to setup a new address and a new account on the same screen but in &lt;a href=&quot;http://model-glue.com&quot;&gt;Model-Glue&lt;/a&gt; if there is a result the next function will not be called. So to fix this problem I added an argument to the message in the modelglue.xml file like so.&lt;br /&gt; &lt;br /&gt; &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;message name=&amp;quot;SaveUserAddress&amp;quot;&amp;gt;     &amp;lt;argument name=&amp;quot;addResult&amp;quot; value=&amp;quot;false&amp;quot; /&amp;gt; &amp;lt;/message&amp;gt; &amp;lt;message name=&amp;quot;SaveUserAccount&amp;quot; /&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt; &lt;br /&gt; Then in the controller component I add some logic to account for this.&lt;br /&gt; &lt;br /&gt; &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;cfif arguments.event.ArgumentExists(&amp;quot;addResult&amp;quot;)&amp;gt;     &amp;lt;cfif arguments.event.getValue(&amp;quot;addResult&amp;quot;) EQ true&amp;gt;         &amp;lt;cfset arguments.event.addResult(&amp;quot;success&amp;quot;, true) /&amp;gt;     &amp;lt;/cfif&amp;gt; &amp;lt;/cfif&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt; &lt;p&gt;I know there some &lt;a href=&quot;http://www.mach-ii.com&quot;&gt;Mach-II&lt;/a&gt; guys  out there  so I would like to know how you handle this in &lt;a href=&quot;http://www.mach-ii.com&quot;&gt;Mach-II&lt;/a&gt;.&lt;/p&gt;</description><pubDate>Tue, 11 Mar 2008 00:40:00 GMT</pubDate><guid>http://think.instantspot.com/blog/2008/03/10/Handleing-Results-in-ModelGlue-</guid><category>code,ColdFusion,CFC,model-glue</category></item><item><title>I am moving over .</title><link>http://think.instantspot.com/blog/2008/02/29/I-am-moving-over-</link><description>&lt;p&gt;I am moving my over to instantspot.&lt;/p&gt;</description><pubDate>Fri, 29 Feb 2008 06:06:00 GMT</pubDate><guid>http://think.instantspot.com/blog/2008/02/29/I-am-moving-over-</guid><category>General</category></item></channel></rss>