<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>Qdabra qRules</title><link>https://www.infopathdev.com:443/forums/131.aspx</link><description>qRules adds support to your InfoPath  forms. With qRules, you can add features to your form that require code, but without having to write it. </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: sort calendar items ascending but only need top 5 from todays date</title><link>https://www.infopathdev.com:443/forums/thread/92221.aspx</link><pubDate>Thu, 15 Aug 2013 12:43:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92221</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92221.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=92221</wfw:commentRss><description>&lt;p&gt;What happens if you&amp;nbsp;reverse the sort before copying over the 5 items?&lt;/p&gt;</description></item><item><title>Re: sort calendar items ascending but only need top 5 from todays date</title><link>https://www.infopathdev.com:443/forums/thread/92217.aspx</link><pubDate>Wed, 14 Aug 2013 22:05:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92217</guid><dc:creator>bsieloff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92217.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=92217</wfw:commentRss><description>&lt;p&gt;Hi Ernesto,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thinking this through, could this scenario happen?&lt;/p&gt;&lt;p&gt;Today = 8/14/2013&lt;/p&gt;&lt;p&gt;get calendar items desc&lt;/p&gt;&lt;p&gt;item#&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp; Start Date&lt;/p&gt;&lt;p&gt;item 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Oct 1&lt;/p&gt;&lt;p&gt;item 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sept 15&lt;/p&gt;&lt;p&gt;itme 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aug 19&lt;/p&gt;&lt;p&gt;item 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aug 18&lt;/p&gt;&lt;p&gt;item 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aug 17&lt;/p&gt;&lt;p&gt;item 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aug 16&lt;/p&gt;&lt;p&gt;item 7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aug 15&lt;/p&gt;&lt;p&gt;item 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Aug 14&lt;/p&gt;&lt;p&gt;&amp;gt;&amp;gt;copy table , 1st 5 items&lt;/p&gt;&lt;p&gt;That would copy over Aug 17th to Oct 1st items&lt;/p&gt;&lt;p&gt;reverse the sort&lt;/p&gt;&lt;p&gt;Aug 17th&lt;/p&gt;&lt;p&gt;Aug 18th&lt;/p&gt;&lt;p&gt;Aug 19th &lt;/p&gt;&lt;p&gt;Sept 15th&lt;/p&gt;&lt;p&gt;Oct 1st&lt;/p&gt;&lt;p&gt;If I&amp;#39;m following your idea correctly, I think I would miss out on starting from the current date, Aug 14th.&lt;/p&gt;&lt;p&gt;Does that make sense or am I not following your idea correctly?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;-Bob&lt;/p&gt;</description></item><item><title>Re: sort calendar items ascending but only need top 5 from todays date</title><link>https://www.infopathdev.com:443/forums/thread/92213.aspx</link><pubDate>Wed, 14 Aug 2013 21:23:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92213</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92213.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=92213</wfw:commentRss><description>&lt;p&gt;Hi-&lt;/p&gt;
&lt;p&gt;You could:&lt;/p&gt;
&lt;p&gt;1. Query the calendar items&lt;/p&gt;
&lt;p&gt;2. Sort them DESC (in the 2DS)&lt;/p&gt;
&lt;p&gt;3. Use a method like the one described here to copy the individual rows over to another location (main DOM perhaps)&amp;nbsp;on the form&amp;#39;s schema: &lt;a href="http://www.infopathdev.com/files/folders/qrules/entry58854.aspx"&gt;http://www.infopathdev.com/files/folders/qrules/entry58854.aspx&lt;/a&gt;. You would iterate 5 times only but the steps should be quite similar.&lt;/p&gt;
&lt;p&gt;4. Sort them ASC (in the main DOM) and display them on the view.&lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;</description></item><item><title>sort calendar items ascending but only need top 5 from todays date</title><link>https://www.infopathdev.com:443/forums/thread/92210.aspx</link><pubDate>Wed, 14 Aug 2013 21:13:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92210</guid><dc:creator>bsieloff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92210.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=92210</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am displaying calendar items in a form and I need the most current 5 calendar events starting from now().&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; Very easy if I needed desc as I would sort DESC and then put in an expression: position()&amp;gt;5&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;with ascending the position()&amp;nbsp;function will not&amp;nbsp;work since the sort order is going to count from the beginning and stop after 5, thus leaving nothing to show since there are 100&amp;#39;s of calendar entries.&lt;/p&gt;&lt;p&gt;Any clever methods to do this?&lt;/p&gt;&lt;p&gt;I am using qRules to do the sorts&lt;/p&gt;&lt;p&gt;SharePoint 2010, InfoPath 2010, qRules&lt;/p&gt;</description></item></channel></rss>