<?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: Using qRules 4.2 DateDiff with /resultxpath Switch</title><link>https://www.infopathdev.com:443/forums/thread/83300.aspx</link><pubDate>Mon, 08 Oct 2012 13:39:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83300</guid><dc:creator>DC Forms</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83300.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=83300</wfw:commentRss><description>&lt;p&gt;I had set the form up with two rules; calculate then set my field to the result node value. I went in to add the above code before sending the form to you so you can see the error, and now&amp;nbsp;the code&amp;nbsp;is working.&lt;/p&gt;&lt;p&gt;I copy-and-pasted the code from InfoPath into the post, then copied the code from the post back to InfoPath to avoid any typos. Something else must have been wrong/quirky. &lt;/p&gt;</description></item><item><title>Re: Using qRules 4.2 DateDiff with /resultxpath Switch</title><link>https://www.infopathdev.com:443/forums/thread/83282.aspx</link><pubDate>Fri, 05 Oct 2012 21:05:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83282</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83282.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=83282</wfw:commentRss><description>&lt;p&gt;How odd that it works in my sample form and not in your form. Can you email me your form? I can take a quick look.&lt;/p&gt;</description></item><item><title>Re: Using qRules 4.2 DateDiff with /resultxpath Switch</title><link>https://www.infopathdev.com:443/forums/thread/83281.aspx</link><pubDate>Fri, 05 Oct 2012 20:08:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83281</guid><dc:creator>DC Forms</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83281.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=83281</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;&lt;p&gt;Yes, I used the CopyXPath command in InfoPath to identify /my:debtNote/my:helperFields/my:calcSettlementDateMinusMaturityDate as the target node.&lt;/p&gt;</description></item><item><title>Re: Using qRules 4.2 DateDiff with /resultxpath Switch</title><link>https://www.infopathdev.com:443/forums/thread/83280.aspx</link><pubDate>Fri, 05 Oct 2012 20:05:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83280</guid><dc:creator>bsieloff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83280.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=83280</wfw:commentRss><description>that was it, works fine in the browser now.&amp;nbsp;thanks!</description></item><item><title>Re: Using qRules 4.2 DateDiff with /resultxpath Switch</title><link>https://www.infopathdev.com:443/forums/thread/83279.aspx</link><pubDate>Fri, 05 Oct 2012 19:56:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83279</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83279.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=83279</wfw:commentRss><description>&lt;p&gt;Do you have postback set to always on the field or button that executes the command?&lt;/p&gt;</description></item><item><title>Re: Using qRules 4.2 DateDiff with /resultxpath Switch</title><link>https://www.infopathdev.com:443/forums/thread/83278.aspx</link><pubDate>Fri, 05 Oct 2012 19:51:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83278</guid><dc:creator>bsieloff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83278.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=83278</wfw:commentRss><description>&lt;p&gt;not to hi-jack but my question is very similar&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;m using DateAdd with a /reslutxpath.&amp;nbsp; it works fine in the preview (filer?).&amp;nbsp; then I set the form to full trust, saved, admin published.&amp;nbsp; The form comes up fine in a web browser, but I don&amp;#39;t see anything in my field that is suppose to get the result.&lt;/p&gt;&lt;p&gt;My command :&amp;nbsp; concat(&amp;quot;DateAdd /xpath=/my:myFields/my:ProjectStartDate /months=&amp;quot;, ., &amp;quot; /resultxpath=/my:myFields/my:ProjectEndDate&amp;quot;)&lt;/p&gt;</description></item><item><title>Re: Using qRules 4.2 DateDiff with /resultxpath Switch</title><link>https://www.infopathdev.com:443/forums/thread/83276.aspx</link><pubDate>Fri, 05 Oct 2012 18:41:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83276</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83276.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=83276</wfw:commentRss><description>&lt;p&gt;Hi - thanks for letting us know about the typos.&lt;/p&gt;
&lt;p&gt;To use the resultxpath, you use the second syntax - with the full XPath to the result node. I&amp;#39;ve attached a sample that shows this working. Did you use the Copy XPath function in InfoPath to get the XPath to your field?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Using qRules 4.2 DateDiff with /resultxpath Switch</title><link>https://www.infopathdev.com:443/forums/thread/83275.aspx</link><pubDate>Fri, 05 Oct 2012 18:06:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83275</guid><dc:creator>DC Forms</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83275.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=83275</wfw:commentRss><description>&lt;p&gt;First, there are at least two typos in the &lt;em&gt;qRules v4.2 User Guide 2012-09-05.pdf&lt;/em&gt; documentation. On page 9 of 87, the DateDiff example for concat is missing a comma after the first element and the quotes in the document are smart quotes so they don&amp;#39;t copy-and-paste well into InfoPath. &lt;a href="http://www.howtogeek.com/wiki/Disable_Smart_Quotes_in_Word_2007"&gt;http://www.howtogeek.com/wiki/Disable_Smart_Quotes_in_Word_2007&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Second, I am not able to get DateDiff to work with the /resultxpath switch. My target field for the results is in my Main data source.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Attempt:&lt;/strong&gt; concat(&amp;quot;DateDiff /date1=&amp;quot;, &lt;u&gt;settlementDate&lt;/u&gt;, &amp;quot; /date2=&amp;quot;, &lt;u&gt;.&lt;/u&gt;, &amp;quot; /component=days /resultxpath=&amp;quot;, &lt;u&gt;calcSettlementDateMinusMaturityDate&lt;/u&gt;)&lt;br /&gt;&lt;strong&gt;Result:&lt;/strong&gt; Calculation result is sent to the qRules Result node and not the target field, no errors&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Attempt:&lt;/strong&gt; concat(&amp;quot;DateDiff /date1=&amp;quot;, &lt;u&gt;settlementDate&lt;/u&gt;, &amp;quot; /date2=&amp;quot;, &lt;u&gt;.&lt;/u&gt;, &amp;quot; /component=days /resultxpath=/my:debtNote/my:helperFields/my:calcSettlementDateMinusMaturityDate&amp;quot;)&lt;br /&gt;&lt;strong&gt;Result: &lt;/strong&gt;Calculation result is sent to the qRules Result node and not the target field, no errors&lt;/p&gt;&lt;p&gt;Am I missing something with the syntax?&lt;/p&gt;</description></item></channel></rss>