<?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: Need help on set value qrules</title><link>https://www.infopathdev.com:443/forums/thread/66568.aspx</link><pubDate>Mon, 16 May 2011 15:25:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66568</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66568.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=66568</wfw:commentRss><description>&lt;p&gt;Looks like you squared yourself away just fine while I was still asleep! Great job!&lt;/p&gt;</description></item><item><title>Re: Need help on set value qrules</title><link>https://www.infopathdev.com:443/forums/thread/66564.aspx</link><pubDate>Mon, 16 May 2011 12:17:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66564</guid><dc:creator>B1rds</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66564.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=66564</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Finally got it to work myself using teh following code&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;SetValue /xpath=my:myFields/my:Actions[last()]/my:Action_Des /value=&amp;quot;, ..) where.. is the current field value, thanks again for pointing me in the&amp;nbsp;right direction&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Mike&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Need help on set value qrules</title><link>https://www.infopathdev.com:443/forums/thread/66563.aspx</link><pubDate>Mon, 16 May 2011 11:03:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66563</guid><dc:creator>B1rds</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66563.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=66563</wfw:commentRss><description>&lt;p&gt;Hillary I have also attached the file to this post&lt;/p&gt;</description></item><item><title>Re: Need help on set value qrules</title><link>https://www.infopathdev.com:443/forums/thread/66562.aspx</link><pubDate>Mon, 16 May 2011 11:01:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66562</guid><dc:creator>B1rds</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66562.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=66562</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;Thanks for your help, I have successfully applied the first&amp;nbsp; Set Value comand and it inserts the 123. What I want to do is set the Action Des field when a control is not in place with that controls name.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However when&amp;nbsp;I try and direct it to the current Control_1 value to copy this to the Action_Des&amp;nbsp;I draw ablank, the following is the command that I am using&lt;/p&gt;
&lt;div&gt;concat(&amp;quot;SetValue /xpath=my:myFields/my:Actions[last()]/my:Action_Des /value=&amp;quot;, my:myFields/my:Hazards[current()]/my:Control_1)&lt;/div&gt;
&lt;p&gt;&amp;nbsp;Again your help is very much appreciated&lt;/p&gt;</description></item><item><title>Re: Need help on set value qrules</title><link>https://www.infopathdev.com:443/forums/thread/66519.aspx</link><pubDate>Fri, 13 May 2011 15:53:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66519</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66519.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=66519</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;Glad you like qRules -- we love it and use it internally for a lot of our forms (which is one of the reasons it keeps getting new commands-- we add to it as we need things!).&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not quite sure I understand your issue -- but if what you want is to set the value of a specific field in your repeating table, SetValue is the command to use. You should be able to use last() to get the last one.&lt;/p&gt;
&lt;p&gt;SetValue /xpath=my:myFields/my:Actions[last()]/my:Action_Des /value=123&lt;/p&gt;
&lt;p&gt;Since you want to use a value from your form, you&amp;#39;d use a formula:&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;SetValue /xpath=my:myFields/myActions[last()]/my:Action_Des /value=&amp;quot;, &lt;em&gt;&lt;u&gt;pathToFieldYouWant&lt;/u&gt;&lt;/em&gt;)&lt;/p&gt;
&lt;p&gt;Can you tell me where&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;B1rds:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I have looked at the qrules library but it only states that this is difficult to do&lt;/div&gt;&lt;/BLOCKQUOTE&gt; is in the documentation? I&amp;#39;m assuming you mean the user guide? I&amp;#39;d like to correct that, since I believe what you are trying to do is not actually that difficult with qRules&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll need to copy the XPath to your Action_Des field, as I&amp;#39;m just guessing on the syntax, but then you can add [last()] to get the last row. Where the value placeholders are above, you can use the InfoPath field selector in the formula editor to select the correct node from your HazardName group -- probably something like:&lt;/p&gt;
&lt;p&gt;current()/my:Control_1[@my:Status_1 = &amp;#39;Not In Place&amp;#39;]&lt;/p&gt;
&lt;p&gt;But again, just guesses. If you need additional help, you can attach your form to the Options tab of a reply and I can help you get the command syntax right -- but I may need more description of what you are trying to accomplish if I&amp;#39;ve misunderstood.&lt;/p&gt;</description></item><item><title>Need help on set value qrules</title><link>https://www.infopathdev.com:443/forums/thread/66515.aspx</link><pubDate>Fri, 13 May 2011 13:38:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66515</guid><dc:creator>B1rds</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66515.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=66515</wfw:commentRss><description>&lt;p&gt;Hi first I must say what an excellent tool qrules is just downloaded it yeareday and it has solved major issues for me. But one remains :-)&lt;/p&gt;
&lt;p&gt;I have 2 repeating tables one where I ask the user to complete a repeating table to confirm if they have set controls in place, if they answer no using qrules insert comand a new action in another repeating table is created that must be completed, however my&amp;nbsp; isssue is that I wish to copy the control description that is not in palce to the action description in the action table. The Set up is as per below. Therefore I want to set the last row in the repeating table with the control that is not in place on teh current row in the hazard table. I hope this all makes sense I have looked at the qrules library but it only states that this is difficult to do.. Any help most welcome&lt;/p&gt;
&lt;p&gt;Tks Mike&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Myfields&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; Hazards&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HazardName (repeating table)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Control_1 (Filtered to be tied to specific Hazards)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Status_1 (In Place or Not In Place)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Control_2&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status_2&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; Actions&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Action_Des (Only added to is a specific control is not in place)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Action_owner&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Due_Date&lt;/p&gt;</description></item></channel></rss>