<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Identifying specific repeated fields</title><link>https://www.infopathdev.com:443/forums/thread/92870.aspx</link><pubDate>Mon, 09 Sep 2013 03:54:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92870</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92870.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=92870</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Please try this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;count(myField01[. = &amp;#39;&amp;#39;] | myField02[../myField01 = &amp;#39;Yes&amp;#39; and . = &amp;#39;&amp;#39;])&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;or even this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;count((myField01 | myField02[../myField01 = &amp;#39;Yes&amp;#39;])[. = &amp;#39;&amp;#39;])&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Identifying specific repeated fields</title><link>https://www.infopathdev.com:443/forums/thread/92692.aspx</link><pubDate>Tue, 03 Sep 2013 14:07:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92692</guid><dc:creator>tomrehor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92692.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=92692</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I don&amp;#39;t think that&amp;#39;s the correct logic.&amp;nbsp; What I need is this:&lt;/p&gt;&lt;p&gt;if myField01 is blank, then count equal 1&lt;/p&gt;&lt;p&gt;&amp;nbsp;--OR--&lt;/p&gt;&lt;p&gt;if myField01 is &amp;quot;Yes&amp;quot; and myField02 is blank, then count equals 1&lt;/p&gt;&lt;p&gt;How do&amp;nbsp;I code for OR rather than UNION?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Identifying specific repeated fields</title><link>https://www.infopathdev.com:443/forums/thread/92618.aspx</link><pubDate>Sun, 01 Sep 2013 20:55:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92618</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92618.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=92618</wfw:commentRss><description>&lt;p&gt;Did you try: count(myField01[.=&amp;#39;&amp;#39;] | myField02[.=&amp;#39;Yes&amp;#39;]) ?&lt;/p&gt;</description></item><item><title>Re: Identifying specific repeated fields</title><link>https://www.infopathdev.com:443/forums/thread/92601.aspx</link><pubDate>Fri, 30 Aug 2013 14:27:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92601</guid><dc:creator>tomrehor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92601.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=92601</wfw:commentRss><description>&lt;p&gt;This works.&amp;nbsp; Thank you. However, I don&amp;#39;t know how to count a special case.&lt;/p&gt;&lt;p&gt;myField01 is a radio button that must be checked.&amp;nbsp; In this case, count(myField01[.=&amp;#39;&amp;#39;]) works.&lt;/p&gt;&lt;p&gt;However, if myField01 is &amp;quot;Yes&amp;quot;, then myField02 cannot be blank.&lt;/p&gt;&lt;p&gt;In structured code I would write:&amp;nbsp; IF ((myField01==&amp;#39;&amp;#39;)&amp;nbsp; OR (myField01==&amp;#39;Yes&amp;#39; AND myField02=&amp;#39;&amp;#39;)) then cntr = cntr + 1&lt;/p&gt;&lt;p&gt;Can you please tell my how to do this using count?&lt;/p&gt;&lt;p&gt;Thank you for your help. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Identifying specific repeated fields</title><link>https://www.infopathdev.com:443/forums/thread/92582.aspx</link><pubDate>Thu, 29 Aug 2013 16:45:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92582</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92582.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=92582</wfw:commentRss><description>&lt;p&gt;Instead of the approach you are using, you can do this:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count((myField01 | myField02 | myField03)[. = &amp;#39;&amp;#39;])&lt;/p&gt;&lt;p&gt;This should also work for repeating fields.&lt;/p&gt;</description></item><item><title>Identifying specific repeated fields</title><link>https://www.infopathdev.com:443/forums/thread/92569.aspx</link><pubDate>Wed, 28 Aug 2013 20:56:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92569</guid><dc:creator>tomrehor</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92569.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=92569</wfw:commentRss><description>&lt;p&gt;I am counting the number of unanswered questions on a form in InfoPath 2010.&amp;nbsp; I have a text box (Integer) with a value of (myField01 = &amp;quot;&amp;quot;) * 1).&amp;nbsp; I can repeat the equation for each field, sum them, and get the number of unanswered question. For example, (myField01 = &amp;quot;&amp;quot;) * 1)&amp;nbsp; + (myField02 = &amp;quot;&amp;quot;) * 1) + (myField03 = &amp;quot;&amp;quot;) * 1).&amp;nbsp; Simple.&lt;/p&gt;&lt;p&gt;&amp;nbsp;However, this does not work with repeated fields.&amp;nbsp; If myField01 is in a repeating table, the equation does not know to look at all the repeats.&lt;/p&gt;&lt;p&gt;&amp;nbsp;How do I identify the repeated fields in my equation?&lt;/p&gt;&lt;p&gt;Thank you. &lt;/p&gt;</description></item></channel></rss>