<?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: Logical And/Or of a repeating table field</title><link>https://www.infopathdev.com:443/forums/thread/34714.aspx</link><pubDate>Fri, 21 Nov 2008 15:39:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34714</guid><dc:creator>Frederik Van Lierde</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34714.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=34714</wfw:commentRss><description>&lt;p&gt;An Aleternative is the following&lt;/p&gt;
&lt;p&gt;In your repeating table you can even use a Text box or another control&lt;br /&gt;Add a rule to this control in the repeating table&lt;/p&gt;
&lt;p&gt;- Add Rule&lt;br /&gt;- Set Condition&lt;br /&gt;- Select &lt;strong&gt;The Expression&lt;/strong&gt; in the first Dropdown&lt;br /&gt;- Add count&lt;strong&gt;(/my:myFields/my:group2/my:group3/my:Status&lt;/strong&gt;[. = string(&amp;quot;Fail&amp;quot;)]) = 0&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The bold chars, change it to the xpath of your control&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string(&amp;quot;Fail&amp;quot;)] : chnge the &amp;quot;Fail&amp;quot; to whatever value you want to check,&amp;nbsp; when you work with False/True, change it to string(false())&lt;/p&gt;
&lt;p&gt;Add as Action: Set Field, select your Global Field and set Success as value&lt;br /&gt;&lt;br /&gt;When all fields are different the Fail, the expression will return = 0, and the field will be updated with the name you like&lt;/p&gt;
&lt;p&gt;This expression you can also use as condition before submitting the form.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Logical And/Or of a repeating table field</title><link>https://www.infopathdev.com:443/forums/thread/31524.aspx</link><pubDate>Tue, 19 Aug 2008 03:21:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31524</guid><dc:creator>hoda007</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31524.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=31524</wfw:commentRss><description>&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;I have kind of found a very ugly way to do this, so I am still looking for a cleaner way. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;These are the steps I have taken to get me through what I need for now.&lt;/font&gt;&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;First I assigned the following values to my repeating table column (which is a drop-down list box, “myPassFailField”):&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;
&lt;blockquote&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; Fail: value = 0 (default),&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Pass: value = 1 &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Then,&amp;nbsp;I set the default value of my read only textbox (in a separate section of my form) using the following formula:&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/font&gt;
&lt;blockquote&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;count(myPassFailField) - sum(myPassFailField)&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&amp;nbsp;&lt;/blockquote&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;I am able to display the number of records in my repeating table&amp;nbsp;that are still in the failed status.&amp;nbsp;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Each record will increment the count by one, since every record is counted. But only the “pass” values will add up in the “Sum”, therefore I will be left with the total count of Failed records.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;The only issue is that since my default value is “Fail”, even new forms will have a Fail count of 1.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Hope this helps anybody with a similar problem, However I am still looking for the correct solution.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Logical And/Or of a repeating table field</title><link>https://www.infopathdev.com:443/forums/thread/31522.aspx</link><pubDate>Tue, 19 Aug 2008 02:29:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31522</guid><dc:creator>hoda007</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31522.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=31522</wfw:commentRss><description>&lt;p&gt;Hello, &lt;/p&gt;
&lt;p&gt;Is there a way to set the value of a field to True or False, based on the Logical AND&amp;nbsp;of the values of a&amp;nbsp;field inside a repeating table?&lt;/p&gt;
&lt;p&gt;Basically&amp;nbsp;I have a repeating table with a Pass/Fail field as one of the columns. &lt;/p&gt;
&lt;p&gt;I have another field (read only)&amp;nbsp;in another section of the form, that should display &amp;quot;Fail&amp;quot; if any of the rows in my table have &amp;quot;Fail&amp;quot; in their &amp;quot;Fail/Pass&amp;quot; column. &lt;/p&gt;
&lt;p&gt;thank you in advance for your&amp;nbsp;time and help.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;</description></item></channel></rss>