<?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 table - the calendar</title><link>https://www.infopathdev.com:443/forums/thread/88510.aspx</link><pubDate>Fri, 29 Mar 2013 16:34:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88510</guid><dc:creator>bsieloff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88510.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=88510</wfw:commentRss><description>&lt;p&gt;This poor cat.. I skinned it 100 different ways, but got my solution&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;a href="https://my.company.com/_vti_bin/listdata.svc/Calendar?$top=5&amp;amp;$orderby=StartTime"&gt;https://my.company.com/_vti_bin/listdata.svc/Calendar?$top=5&amp;amp;$orderby=StartTime&lt;/a&gt;
desc&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;" class="MsoNoSpacing"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

 &lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: sort table - the calendar</title><link>https://www.infopathdev.com:443/forums/thread/88505.aspx</link><pubDate>Fri, 29 Mar 2013 15:05:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88505</guid><dc:creator>bsieloff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88505.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=88505</wfw:commentRss><description>&lt;p&gt;I was also thinking of filtering with oData, but I have never filtered on date with oData and my command seems to be falling short.&lt;/p&gt;&lt;p&gt;For starters I was going to fitler on a single date then expand it to greater than todays date&lt;/p&gt;&lt;p&gt;my command is: &lt;a href="https://my.company.com/_vti_bin/listdata.svc/Calendar?$filter=StartTime"&gt;https://my.company.com/_vti_bin/listdata.svc/Calendar?$filter=StartTime&lt;/a&gt; eq 2013-03-25T10:00:00&lt;/p&gt;&lt;p&gt;do you think this could work?&amp;nbsp; If so, do you see the issue with my odata query?&lt;/p&gt;&lt;p&gt;the xml:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;m:properties&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:ContentTypeID&amp;gt;0x010200C4E292BDA623AC46AAB10BD6AC79D86E&amp;lt;/d:ContentTypeID&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Title&amp;gt;All Hands Meeting&amp;lt;/d:Title&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Location&amp;gt;Room 1B&amp;lt;/d:Location&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:StartTime m:type=&amp;quot;Edm.DateTime&amp;quot;&amp;gt;2013-03-25T10:00:00&amp;lt;/d:StartTime&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:EndTime m:type=&amp;quot;Edm.DateTime&amp;quot;&amp;gt;2013-03-25T12:30:00&amp;lt;/d:EndTime&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:DONOTUSE m:null=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:AllDayEvent m:type=&amp;quot;Edm.Boolean&amp;quot;&amp;gt;false&amp;lt;/d:AllDayEvent&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Recurrence m:type=&amp;quot;Edm.Boolean&amp;quot;&amp;gt;false&amp;lt;/d:Recurrence&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Workspace m:type=&amp;quot;Edm.Boolean&amp;quot;&amp;gt;false&amp;lt;/d:Workspace&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:CategoryValue m:null=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:MonthDay&amp;gt;Monday, March 25&amp;lt;/d:MonthDay&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Time&amp;gt;10:00 AM&amp;lt;/d:Time&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Date_Time&amp;gt;Monday, March 25, 10:00 AM&amp;lt;/d:Date_Time&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Summary&amp;gt;All hands meeting for Fermilab employees&amp;lt;/d:Summary&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:TITLE_SUMMARY&amp;gt;FemiLab All Hands Meeting - All hands meeting for employees&amp;lt;/d:TITLE_SUMMARY&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:StartDate m:type=&amp;quot;Edm.DateTime&amp;quot;&amp;gt;2013-03-25T10:00:00&amp;lt;/d:StartDate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Id m:type=&amp;quot;Edm.Int32&amp;quot;&amp;gt;1&amp;lt;/d:Id&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:ContentType&amp;gt;Event&amp;lt;/d:ContentType&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Modified m:type=&amp;quot;Edm.DateTime&amp;quot;&amp;gt;2013-03-25T14:38:03&amp;lt;/d:Modified&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Created m:type=&amp;quot;Edm.DateTime&amp;quot;&amp;gt;2013-03-22T14:28:17&amp;lt;/d:Created&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:CreatedById m:type=&amp;quot;Edm.Int32&amp;quot;&amp;gt;55&amp;lt;/d:CreatedById&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:ModifiedById m:type=&amp;quot;Edm.Int32&amp;quot;&amp;gt;53&amp;lt;/d:ModifiedById&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Owshiddenversion m:type=&amp;quot;Edm.Int32&amp;quot;&amp;gt;5&amp;lt;/d:Owshiddenversion&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Version&amp;gt;1.0&amp;lt;/d:Version&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;d:Path&amp;gt;/Lists/Calendar&amp;lt;/d:Path&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/m:properties&amp;gt;&lt;/p&gt;</description></item><item><title>Re: sort table - the calendar</title><link>https://www.infopathdev.com:443/forums/thread/88470.aspx</link><pubDate>Thu, 28 Mar 2013 17:56:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88470</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88470.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=88470</wfw:commentRss><description>&lt;p&gt;It might be hard to achieve all of this on a single secondary data source. Have you thought of copying just the rows you need to another data source, to make things easier?&lt;/p&gt;&lt;p&gt;&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;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.infopathdev.com/files/folders/qrules/entry58577.aspx"&gt;http://www.infopathdev.com/files/folders/qrules/entry58577.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;You could use one of the two methods to copy just 5 items. The document explains decrementing all the way down to 0, but you could just iterate 5 times and be done, getting that data into a second data source.&lt;/p&gt;&lt;p&gt;Be careful with position() and these type of things if you require browser compatibility. I&amp;#39;ve seen templates stop being browser compat because of hiding rows of a repeating table.&lt;/p&gt;</description></item><item><title>Re: sort table - the calendar</title><link>https://www.infopathdev.com:443/forums/thread/88467.aspx</link><pubDate>Thu, 28 Mar 2013 16:44:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88467</guid><dc:creator>bsieloff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88467.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=88467</wfw:commentRss><description>&lt;p&gt;ok... one more question for this thread.&lt;/p&gt;&lt;p&gt;&amp;nbsp;So I have the calendar items being sorted by date (Thanks again)&lt;/p&gt;&lt;p&gt;I want to show only the most current 5 items on the form..&lt;/p&gt;&lt;p&gt;I do this by adding an expression on the repeating table ( expresssion : position()&amp;gt;5 )&lt;/p&gt;&lt;p&gt;If I order=DESC then I have calendar items from too far in the future being shown and filling up those 5 spots.. ie:&lt;/p&gt;&lt;p&gt;May 30th Item 6&lt;/p&gt;&lt;p&gt;May 29th Item 5&lt;/p&gt;&lt;p&gt;May 29th Item 4&lt;/p&gt;&lt;p&gt;May 29th Item 3&lt;/p&gt;&lt;p&gt;May 28th Item 2&lt;/p&gt;&lt;p&gt;May 28th Item 1&lt;/p&gt;&lt;p&gt;May 27th Item -1&lt;/p&gt;&lt;p&gt;May 27th Item -2&lt;/p&gt;&lt;p&gt;May 26th Item -3&lt;/p&gt;&lt;p&gt;May 25th Item -4&lt;/p&gt;&lt;p&gt;so the top 5 here leaves out Item 1&lt;/p&gt;&lt;p&gt;I then decided to put a formatting rule on the repeating table that says to hide any calendar item that is &amp;lt;= todays date and changed the order=ASC&lt;/p&gt;&lt;p&gt;unfortunately the empty items (listed as negative in my example) are still counted towards the five items in my expression but just hidden and I only see one item, Item 1&lt;/p&gt;&lt;p&gt;Any suggestions on how to get the top 5 dates starting with todays date and sorted decending?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;-Bob&lt;/p&gt;</description></item><item><title>Re: sort table - the calendar</title><link>https://www.infopathdev.com:443/forums/thread/88466.aspx</link><pubDate>Thu, 28 Mar 2013 15:49:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88466</guid><dc:creator>bsieloff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88466.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=88466</wfw:commentRss><description>&lt;p&gt;That was it... the &amp;quot;/&amp;quot; before&amp;nbsp;&amp;quot; /d:EventDate &amp;quot;&lt;/p&gt;&lt;p&gt;Very cool&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;</description></item><item><title>Re: sort table - the calendar</title><link>https://www.infopathdev.com:443/forums/thread/88458.aspx</link><pubDate>Thu, 28 Mar 2013 13:19:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88458</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88458.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=88458</wfw:commentRss><description>I suspect the problem is the slash before d:EventDate, but you could drag the QdabraRules &amp;gt; Error, Success and Result&amp;nbsp;nodes into the canvas to get more information about whether the command is working or not.</description></item><item><title>Re: sort table - the calendar</title><link>https://www.infopathdev.com:443/forums/thread/88457.aspx</link><pubDate>Thu, 28 Mar 2013 12:55:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88457</guid><dc:creator>bsieloff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88457.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=88457</wfw:commentRss><description>&lt;p&gt;Hi Ernesto,&lt;/p&gt;&lt;p&gt;Thanks for taking a look.&lt;/p&gt;&lt;p&gt;My command looks like: &lt;/p&gt;&lt;p&gt;SortTable /dsname=Calendar /row=/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW /compare=/d:EventDate&lt;/p&gt;&lt;p&gt;The command does run now but I dont see any change.&amp;nbsp; The table is exactly as it was.&amp;nbsp; I look at the result field but nothing is in there and the success checkbox is checked.&amp;nbsp; Where does the resulting sorted table get stored?&lt;/p&gt;&lt;p&gt;Thanks again,&lt;/p&gt;&lt;p&gt;-Bob&lt;/p&gt;</description></item><item><title>Re: sort table - the calendar</title><link>https://www.infopathdev.com:443/forums/thread/88456.aspx</link><pubDate>Thu, 28 Mar 2013 12:12:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88456</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88456.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=88456</wfw:commentRss><description>&lt;p&gt;Hi-&lt;/p&gt;&lt;p&gt;It looks like you&amp;#39;re missing a slash before compare?&lt;/p&gt;&lt;p&gt;Also, this is incorrect:&lt;/p&gt;&lt;p&gt;&amp;nbsp;/row=/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Title&lt;/p&gt;&lt;p&gt;You want the row parameter to point to the repeating node, so it would need to be&lt;/p&gt;&lt;p&gt;&amp;nbsp;/row=/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW&lt;/p&gt;&lt;p&gt;In addition, /compare should be relative to the /row. So use:&lt;/p&gt;&lt;p&gt;/compare=/d:EventDate&lt;/p&gt;&lt;p&gt;&amp;nbsp;Hope this helps!&lt;/p&gt;</description></item><item><title>sort table - the calendar</title><link>https://www.infopathdev.com:443/forums/thread/88451.aspx</link><pubDate>Thu, 28 Mar 2013 03:00:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88451</guid><dc:creator>bsieloff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=88451</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;First time using sort table and I&amp;#39;m not getting it to work correctly.&amp;nbsp; I&amp;#39;m sorting on a secondary data connection (sharepiont calendar) datasource name = Calendar&lt;/p&gt;&lt;p&gt;I want to sort the titles by &amp;#39;Start Time&amp;#39;&lt;/p&gt;&lt;p&gt;So this is what I have&lt;/p&gt;&lt;p&gt;SortTable /dsname=Calendar /row=/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Title compare=/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:EventDate&lt;/p&gt;&lt;p&gt;&amp;nbsp;my error code is:&lt;/p&gt;&lt;p&gt;Required parameter unspecified: compare. Usage is: &lt;br /&gt;&lt;br /&gt;SortTable &lt;br /&gt;        
[/dsname=Data Source Name] &lt;br /&gt;        /row=XPath to Table Row &lt;br /&gt;        
/compare=Relative XPath to Compare Field &lt;br /&gt;        [/order=Sort Order (asc | 
desc)] &lt;br /&gt;        [/type=Data Type (text | number)]&lt;/p&gt;&lt;p&gt;&amp;nbsp;give me a hint?&lt;/p&gt;</description></item></channel></rss>