<?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: SetValue on a field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/70963.aspx</link><pubDate>Fri, 07 Oct 2011 15:47:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70963</guid><dc:creator>Padraic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70963.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70963</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy.&lt;/p&gt;&lt;p&gt;Works perfectly now.&lt;/p&gt;&lt;p&gt;Much appreciated.&lt;/p&gt;&lt;p&gt;Padraic.&lt;/p&gt;</description></item><item><title>Re: SetValue on a field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/70962.aspx</link><pubDate>Fri, 07 Oct 2011 15:42:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70962</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70962.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70962</wfw:commentRss><description>&lt;p&gt;How about these:&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;SetValue /xpath=/my:Referral/my:LegislationDetails/my:LegislationRecord&lt;strong&gt;[last()]&lt;/strong&gt;/my:legislationcat /value=&amp;quot;, legislationcategory)&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;SetValue /xpath=/my:Referral/my:LegislationDetails/my:LegislationRecord&lt;strong&gt;[last()]&lt;/strong&gt;/my:legislationref /value=&amp;quot;, legislationtype)&lt;/p&gt;</description></item><item><title>Re: SetValue on a field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/70960.aspx</link><pubDate>Fri, 07 Oct 2011 15:38:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70960</guid><dc:creator>Padraic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70960.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70960</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Thank you all. I was missing the /xpath= statement and this command now works.&lt;/p&gt;&lt;p&gt;However, I now have another issue and it is this:&lt;/p&gt;&lt;p&gt;I have a preview section that displays a couple of cascading dropdown boxes. My desired outcome is that when the user selcts the values in those dropdown boxes, the values will be placed in a new row in the repeating table. There is an &amp;quot;Add to List&amp;quot; button in the preview section that uses the Insert command to add the row, which it does successfully, Within the same action, I use two SetValue commands to populate the repeating table. This works fine for the first row, but when I add any subsequent rows, all the&amp;nbsp;rows get populated with latest selection from the dropdown boxes.&lt;/p&gt;&lt;p&gt;The InsertRows rule that I have set up contains the following actions:&amp;nbsp;&lt;/p&gt;&lt;p&gt;my:position + 1&amp;nbsp;&lt;/p&gt;&lt;p&gt;concat(&amp;quot;Insert /parent=/my:Referral/my:LegislationDetails /child=/my:LegislationRecord /posn=&amp;quot;, position)&lt;/p&gt;&lt;p&gt;concat(&amp;quot;SetValue /xpath=/my:Referral/my:LegislationDetails/my:LegislationRecord/my:legislationcat /value=&amp;quot;, legislationcategory)&lt;/p&gt;&lt;p&gt;concat(&amp;quot;SetValue /xpath=/my:Referral/my:LegislationDetails/my:LegislationRecord/my:legislationref /value=&amp;quot;, legislationtype)&lt;/p&gt;&lt;p&gt;Can you please advise?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Padraic&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: SetValue on a field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/70955.aspx</link><pubDate>Fri, 07 Oct 2011 15:13:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70955</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70955.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70955</wfw:commentRss><description>&lt;p&gt;First, please drag the Error node from the Qdabra Rules data source onto your form - it will help you debug these issues by providing error info.&lt;/p&gt;
&lt;p&gt;I think you are missing a parameter:&lt;/p&gt;concat(&amp;quot;SetValue &lt;strong&gt;/xpath=&lt;/strong&gt;/my:Referral/my:LegislationDetails/my:LegislationRecord/my:legislationcat /value=&amp;quot;, legislationcategory) 
&lt;p&gt;That command should set the first instance of legislationcat to your value. If you want to set a specific instance, you can add an XPath filter.&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;SetValue &lt;strong&gt;/xpath=&lt;/strong&gt;/my:Referral/my:LegislationDetails/my:LegislationRecord&lt;strong&gt;[my:someotherfield=&amp;#39;&amp;quot;, someothervalue, &amp;quot;&amp;#39;]&lt;/strong&gt;/my:legislationcat /value=&amp;quot;, legislationcategory)&lt;/p&gt;
&lt;p&gt;for example....&lt;/p&gt;</description></item><item><title>Re: SetValue on a field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/70954.aspx</link><pubDate>Fri, 07 Oct 2011 15:12:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70954</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70954.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70954</wfw:commentRss><description>&lt;p&gt;Hi Padraic,&lt;/p&gt;
&lt;p&gt;It appears you&amp;#39;re missing the &lt;strong&gt;/xpath=&lt;/strong&gt; before the XPath in your command.&lt;/p&gt;</description></item><item><title>Re: SetValue on a field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/70953.aspx</link><pubDate>Fri, 07 Oct 2011 15:09:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70953</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70953.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70953</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Padraic-&lt;/p&gt;&lt;p&gt;SetValue sets the value of one field. We can use that command iteratively to set the value in multiple fields in a repeating table.&lt;/p&gt;&lt;p&gt;Anyway, we&amp;#39;d love to help. Can you explain why it&amp;#39;s not working? Can you display the Success, Error and Result nodes in the canvas and see that they show after the command executes?&lt;/p&gt;&lt;p&gt;Thank you. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>SetValue on a field in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/70950.aspx</link><pubDate>Fri, 07 Oct 2011 14:44:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70950</guid><dc:creator>Padraic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70950.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70950</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am trying to to set the values of a couple of&amp;nbsp;fields in a repeating table, I have tried the following and it does not work:&lt;/p&gt;&lt;p&gt;concat(&amp;quot;SetValue /my:Referral/my:LegislationDetails/my:LegislationRecord/my:legislationcat /value=&amp;quot;, legislationcategory)&lt;/p&gt;&lt;p&gt;Can you please advise?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Padraic&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>