<?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 filter - match any field to a field in the current row?</title><link>https://www.infopathdev.com:443/forums/thread/73988.aspx</link><pubDate>Sat, 14 Jan 2012 20:00:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73988</guid><dc:creator>shniggens</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73988.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=73988</wfw:commentRss><description>&lt;p&gt;Well that didn&amp;#39;t work.&amp;nbsp; I&amp;#39;m having a hard time figuring out what formula I need for this.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to perform math on &amp;quot;sub items&amp;quot; in a repeating table.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;In my repeating table I have&amp;nbsp;fields &amp;quot;Gear ID&amp;quot; and &amp;quot;Kit&amp;quot;.&amp;nbsp; Kit is a checkbox with a default value of 0.&amp;nbsp; The items in my SharePoint list (that I CopyTable over) that are part of a kit, have the &amp;quot;Kit&amp;quot; Value set to 1.&amp;nbsp; In my repeating table, I hide items with a&amp;nbsp;&amp;quot;Kit&amp;quot; value set to 1.&amp;nbsp; &amp;nbsp; I also have a &amp;quot;Need&amp;quot; field.&amp;nbsp; If need is &amp;gt; 1, it sets all the&amp;nbsp;rows with the same &amp;quot;Gear ID&amp;quot; to a &amp;quot;Kit&amp;quot; value of 0 (so that they show up in my table).&amp;nbsp; Only items that are part of a kit have identical &amp;quot;Gear ID&amp;quot;.&amp;nbsp;&amp;nbsp; This works great.&amp;nbsp; (It acutally only sets the preceeding-sibling with the gear ID, so that the top level kit item always show . . . the &amp;quot;main&amp;quot; item, so to speak).&lt;/p&gt;
&lt;p&gt;I also have fields &amp;quot;KitOriginalCount&amp;quot; gets it&amp;#39;s values from a SharePoint list.&amp;nbsp; Let&amp;#39;s say the kit includes 3 bananas, 2 apples, and 10 pineapples.&amp;nbsp; And the main item is &amp;quot;Fruit Basket&amp;quot;.&amp;nbsp;&amp;nbsp; So if I order 1 or more &amp;quot;Fruit Baskets&amp;quot; it will set that row&amp;#39;s &amp;quot;Need&amp;quot; count to Need * KitOriginalCount.&amp;nbsp; This causes an infinite loop, though.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I need to find a way that if I set the kit &amp;quot;Fruit Basket&amp;quot; main item to 2, it needs to set the sub items &amp;quot;Need&amp;quot; to 6 bananas, 4 apples, and 20 pineapples.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I tried adding fields &amp;quot;KitNeedNumber&amp;quot;, which the main item sets with it&amp;#39;s &amp;quot;Need&amp;quot; field, and &amp;quot;KitSubItemTotal&amp;quot; which mulitplies &amp;quot;KitNeedNumber&amp;quot; and KItOriginalCount&amp;quot;.&amp;nbsp; I tried to have this field set the need field if GearID = GearID, and KitOriginalCount is greater than 0.&amp;nbsp; But it still causes an infinite loop.&lt;/p&gt;
&lt;p&gt;Any ideas how I can accomplish what I&amp;#39;m trying to do here?&amp;nbsp; I was going to just settle for only displaying the &amp;quot;KitNeedNumber&amp;quot;, but I save the &amp;quot;Need&amp;quot; field to a SharePoint list, and use it for reporting and other things.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;If you read all this, I&amp;#39;m sorry, and thank you.&amp;nbsp; : )&lt;/p&gt;</description></item><item><title>Re: SetValue filter - match any field to a field in the current row?</title><link>https://www.infopathdev.com:443/forums/thread/73926.aspx</link><pubDate>Thu, 12 Jan 2012 21:18:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73926</guid><dc:creator>shniggens</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73926.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=73926</wfw:commentRss><description>&lt;p&gt;Never mind.&amp;nbsp; I needed to concat in the field.&amp;nbsp; Here&amp;#39;s what the formula that works looks like -&lt;/p&gt;
&lt;p&gt;concat(&amp;quot;SetValue /xpath=/my:myFields/my:Pullsheet/my:PullSheet/my:Kit[../my:GearID=&amp;#39;&amp;quot;, GearID, &amp;quot;&amp;#39;] /value=0&amp;quot;)&lt;/p&gt;</description></item><item><title>SetValue filter - match any field to a field in the current row?</title><link>https://www.infopathdev.com:443/forums/thread/73921.aspx</link><pubDate>Thu, 12 Jan 2012 20:44:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73921</guid><dc:creator>shniggens</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73921.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=73921</wfw:commentRss><description>&lt;p&gt;I want to set the value in a repeating table of any row that has a value that matches the value in the current row.&amp;nbsp;&amp;nbsp; So if the GearID in any field = teh GearID in the current field, set Kit (another field in the row) to 0.&lt;/p&gt;
&lt;p&gt;I am trying this formula with no success -&lt;/p&gt;
&lt;p&gt;SetValue /xpath=/my:myFields/my:Pullsheet/my:PullSheet/my:Kit[../my:GearID=current()/../my:GearID] /value=0&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>