<?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>Re: loop thr grid</title><link>http://forums.method.me/cs/forums/thread/25328.aspx</link><pubDate>Mon, 19 Jan 2015 15:11:14 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:25328</guid><dc:creator>Method_Justin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/25328.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=25328</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;span id="mce_1_start" style="overflow:hidden;"&gt;Marcelo,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;I would recommend using two Action Results, one to keep track of the largest number and another to keep track of the RecordID for &lt;span id="mce_6_start" style="overflow:hidden;"&gt;its&amp;nbsp;&lt;/span&gt;record.&lt;/p&gt;
&lt;p&gt;Create the&lt;span id="mce_7_start" style="overflow:hidden;"&gt; Action Result&lt;/span&gt;&amp;nbsp;to keep track of the largest number and make it equal to 0 (create this before your Loop Through Grid action). In your Loop Through Grid, &lt;span id="mce_2_start" style="overflow:hidden;"&gt;use a Conditional Statement to&amp;nbsp;&lt;/span&gt;compare the value &lt;span id="mce_8_start" style="overflow:hidden;"&gt;of&amp;nbsp;&lt;/span&gt;hours &lt;span id="mce_3_start" style="overflow:hidden;"&gt;&lt;span id="mce_4_start" style="overflow:hidden;"&gt;(for&lt;/span&gt;&amp;nbsp;&lt;/span&gt;the current record) with &lt;span id="mce_11_start" style="overflow:hidden;"&gt;that&lt;/span&gt;&amp;nbsp;Action Result&lt;span id="mce_5_start" style="overflow:hidden;"&gt;. &lt;span id="mce_12_start" style="overflow:hidden;"&gt;&lt;/span&gt;If it&amp;#39;s larger than your Action Result, store that value &lt;span id="mce_13_start" style="overflow:hidden;"&gt;of hours to&lt;/span&gt;&amp;nbsp;that Action Result and store that record&amp;#39;s RecordID to a second Action Result. By the end of the loop, your first AR should contain the highest number of hours from your grid, and your second AR should contain that record&amp;#39;s RecordID.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;- Justin&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: loop thr grid</title><link>http://forums.method.me/cs/forums/thread/25314.aspx</link><pubDate>Fri, 16 Jan 2015 20:24:31 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:25314</guid><dc:creator>Marcelo11756</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/25314.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=25314</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;That will never happen. it is a grid of work orders completed for the equipment, every work order will have more hours that the one before, the value i need will always be the last work order completed&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: loop thr grid</title><link>http://forums.method.me/cs/forums/thread/25303.aspx</link><pubDate>Fri, 16 Jan 2015 14:30:21 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:25303</guid><dc:creator>Method_Justin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/25303.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=25303</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Hi &lt;/span&gt;Marcelo,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;/span&gt;What if there are multiple record&lt;span id="mce_3_start" style="overflow:hidden;"&gt;&lt;/span&gt;s &lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;span id="mce_4_start" style="overflow:hidden;"&gt;matching&lt;/span&gt;&lt;span id="mce_5_start" style="overflow:hidden;"&gt;&lt;/span&gt; this condition? For example, if the highest number&amp;nbsp;&lt;span id="mce_2_end" style="overflow:hidden;"&gt;&lt;span id="mce_4_end" style="overflow:hidden;"&gt;&lt;span id="mce_5_end" style="overflow:hidden;"&gt;&lt;span id="mce_6_start" style="overflow:hidden;"&gt;of hours for any record is 10, but there are 3 records that &lt;span id="mce_7_start" style="overflow:hidden;"&gt;have&lt;/span&gt;&amp;nbsp;10 hours. What would you like to do in that situation?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;Let me know.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;- Justin&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>loop thr grid</title><link>http://forums.method.me/cs/forums/thread/25302.aspx</link><pubDate>Fri, 16 Jan 2015 05:05:46 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:25302</guid><dc:creator>Marcelo11756</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/25302.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=25302</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;when looping through a grid how do I get the bigger record, I have a grid where we keep the hours for the equipment, I only whant to get the record with the most hours, how can I achieve that?&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>