<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Preceding Sibling in Repeating Table Action Rules</title><link>https://www.infopathdev.com:443/forums/thread/106264.aspx</link><pubDate>Wed, 20 Apr 2016 15:10:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106264</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106264.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106264</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Okay - just to wrap this post up, after looking at the template, the issue had to do with the location of the submit button. The XPath was invalid because it wasn&amp;#39;t relative to the actual button location. Here&amp;#39;s how to use InfoPath to test your expression -&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Add another condition on the button&lt;/li&gt;&lt;li&gt;Just leave the first &amp;amp; second dropdowns to their default values, we don&amp;#39;t care, we aren&amp;#39;t&amp;nbsp;going to keep the new condition&lt;/li&gt;&lt;li&gt;In the third dropdown, select &amp;quot;Use a formula&amp;quot; to open the formula editor&lt;/li&gt;&lt;li&gt;Paste in the expression you are attempting to use - and click the Verify Formula button&lt;/li&gt;&lt;li&gt;If you don&amp;#39;t get any errors - hooray! Something else must be wrong if things aren&amp;#39;t working as anticipated (if you are me, you&amp;nbsp;have forgotten to use not instead of != or some other silliness)&lt;/li&gt;&lt;li&gt;If you do get an error, you can work through what the issue is - sometimes it helps if you select the group or field you are using in your expression and click Edit XPath so you can&amp;nbsp;see the relative path&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Re: Preceding Sibling in Repeating Table Action Rules</title><link>https://www.infopathdev.com:443/forums/thread/106259.aspx</link><pubDate>Tue, 19 Apr 2016 22:24:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106259</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106259.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106259</wfw:commentRss><description>I just emailed you via your forum email address, so you can reply with the template. It may be tomorrow before I can take a look. :)</description></item><item><title>Re: Preceding Sibling in Repeating Table Action Rules</title><link>https://www.infopathdev.com:443/forums/thread/106257.aspx</link><pubDate>Tue, 19 Apr 2016 21:12:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106257</guid><dc:creator>GwenW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106257.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106257</wfw:commentRss><description>&lt;p&gt;Hi Hilary, thanks for this. Your sample works great,&amp;nbsp;but for some reason my&amp;nbsp;form isn&amp;#39;t working when I put in the code (with my fields of course :)).&amp;nbsp; It&amp;#39;s bizarre,&amp;nbsp;I even copied my xpath to make sure I had the&amp;nbsp;field name/path correct. I can&amp;#39;t figure out what I&amp;#39;m missing.&amp;nbsp; I even switched the field that I&amp;#39;m testing to another field that is a simple text field.&amp;nbsp; The field I need to work is a concatenated field (2 text fields put together) and I thought maybe this was the issue (with it having a default value).&amp;nbsp; I don&amp;#39;t have a default value on my repeating table (so no rows show on entry), but I removed yours and yours still worked fine.&lt;/p&gt;&lt;p&gt;Can I email you my form? I tried to attach&amp;nbsp;a simplified version of&amp;nbsp;it (I removed a lot of stuff/data connections that you don&amp;#39;t need, so it&amp;#39;s not so jumbled), but the file size is too big.&amp;nbsp; Just curious to see if you can&amp;nbsp;see what I&amp;#39;m missing?&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I was using Chrome as my browser on the original post.&amp;nbsp;I&amp;#39;ll stick with IE from now on :)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks! Gwen&lt;/p&gt;</description></item><item><title>Re: Preceding Sibling in Repeating Table Action Rules</title><link>https://www.infopathdev.com:443/forums/thread/106228.aspx</link><pubDate>Mon, 18 Apr 2016 21:35:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106228</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106228.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106228</wfw:commentRss><description>So - you just need to disable the button if you have two items that match? See if the attached sample helps you at all - save locally, right click and select design, then preview so you can try it. PS &amp;gt; as to the spacing issue, I&amp;#39;m finding that IE works best for the forum. What browser are you using? I&amp;#39;m using Edge right now and it just makes a mess. :)</description></item><item><title>Re: Preceding Sibling in Repeating Table Action Rules</title><link>https://www.infopathdev.com:443/forums/thread/106225.aspx</link><pubDate>Mon, 18 Apr 2016 19:04:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106225</guid><dc:creator>GwenW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106225.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106225</wfw:commentRss><description>Sorry, I originally added spacing to make this more readable, but when I posted, it lumped everything together.</description></item><item><title>Preceding Sibling in Repeating Table Action Rules</title><link>https://www.infopathdev.com:443/forums/thread/106224.aspx</link><pubDate>Mon, 18 Apr 2016 18:59:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106224</guid><dc:creator>GwenW</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106224.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=106224</wfw:commentRss><description>Hi, I&amp;#39;m struggling with the preceding sibling expression and wasn&amp;#39;t able to find anything previously posted that helped in this situation. I&amp;#39;m using IP 2010, QRules 6.1 (maybe there is something I can do here instead of preceding sibling?). It&amp;#39;s a browser form.

I have 3 fields in a repeating table: Customer, Year, Concatenated Customer-Year (named Add_Year_Cust). I need to see if there are any duplicate customer/year combinations entered. 

I have been successful in turning the Year field &amp;quot;red&amp;quot; when a duplicate is found with: preceding-sibling::my:Item[my:Add_Year_Cust = current()/my:Add_Year_Cust]   (this turns the 2nd occurrence of Year red (I&amp;#39;m not concerned with turning both, so I didn&amp;#39;t try to work in a following sibling or anything)

Now, I need to disable the Submit button (I created, not an IP Submit)  if a match is found.  I wasn&amp;#39;t able to figure out a formula on the button itself, and thought the best thing is to create a &amp;quot;test&amp;quot; field in the repeating table. I added 2 Action Rules on the Year field (I also tried putting these rules on all the other fields, but it didn&amp;#39;t help).

Action Rule 1) I put the same expression for my condition and then setting the test field to  &amp;quot;Match&amp;quot;. 

                                  preceding-sibling::my:Item[my:Add_Year_Cust = current()/my:Add_Year_Cust]

Action Rule 2) I put the same expression but no equal to and setting the test field to &amp;quot;No&amp;quot;. 

                                  preceding-sibling::my:Item[my:Add_Year_Cust != current()/my:Add_Year_Cust]

The idea was then I would have a formatting rule on my button to look for any occurrence of &amp;quot;Match&amp;quot; and then disable the button.

However, neither condition is ever being met... the rules aren&amp;#39;t changing the value of my test field either way (it remains blank which is my default). I would&amp;#39;ve thought at least the first rule would&amp;#39;ve worked since it&amp;#39;s the same as the one on the conditional rule (which works). I wasn&amp;#39;t sure about the second one.  Attaching an image... 

Any help would be really appreciated :)
Thanks, Gwen</description></item></channel></rss>