<?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: Rule to count the number of field that correspond to a specific value</title><link>https://www.infopathdev.com:443/forums/thread/108957.aspx</link><pubDate>Thu, 22 Dec 2016 20:54:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108957</guid><dc:creator>Josee Sevigny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108957.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108957</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Great! I couldn&amp;#39;t figure out how to jump over the named node ;-)&lt;/p&gt;</description></item><item><title>Re: Rule to count the number of field that correspond to a specific value</title><link>https://www.infopathdev.com:443/forums/thread/108956.aspx</link><pubDate>Thu, 22 Dec 2016 20:51:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108956</guid><dc:creator>Josee Sevigny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108956.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108956</wfw:commentRss><description>&lt;p&gt;Found it!!&amp;nbsp; count(//my:reviewRequired[. = 1])&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks so much! I&amp;#39;ve&amp;nbsp;lost so much time trying to figure this one out.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Rule to count the number of field that correspond to a specific value</title><link>https://www.infopathdev.com:443/forums/thread/108955.aspx</link><pubDate>Thu, 22 Dec 2016 20:45:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108955</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108955.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108955</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;From where your submit button is now, this should&amp;nbsp;be the&amp;nbsp;formula that you can use to disable submit unless all required reviewers have a person selected: &lt;/p&gt;&lt;p&gt;count(../../my:reviewers/my:*/my:review[my:reviewRequired = 1 and (../my:ppicker/pc:Person/pc:AccountId = &amp;quot;&amp;quot; or not(../my:ppicker/pc:Person/pc:AccountId))]) &amp;gt; 0 &lt;/p&gt;&lt;p&gt;&lt;br /&gt;Reviewers does not have to be repeating - I just didn&amp;#39;t look closely enough at your sample XML. &lt;/p&gt;</description></item><item><title>Re: Rule to count the number of field that correspond to a specific value</title><link>https://www.infopathdev.com:443/forums/thread/108954.aspx</link><pubDate>Thu, 22 Dec 2016 20:35:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108954</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108954.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108954</wfw:commentRss><description>OOOOOOHHHHHH ! I understand now that I&amp;#39;ve looked at your form. I&amp;#39;ll post back shortly w/ the formula so you don&amp;#39;t have to have reviewers be repeating - I misread your original XML. :)</description></item><item><title>Re: Rule to count the number of field that correspond to a specific value</title><link>https://www.infopathdev.com:443/forums/thread/108953.aspx</link><pubDate>Thu, 22 Dec 2016 20:30:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108953</guid><dc:creator>Josee Sevigny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108953.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108953</wfw:commentRss><description>&lt;p&gt;Thanks so much for helping.&lt;/p&gt;&lt;p&gt;First,&amp;nbsp;I had to set the reviewers group as Repetitive&amp;nbsp;even though none of them are. It then allowed me to select &amp;quot;Number of&amp;quot;.&amp;nbsp; HOWEVER, I just noticed that all my People Pickers are now unbound and cannot be bound properly, Yikes!&lt;/p&gt;&lt;p&gt;count(../../my:reviewers) = &amp;quot;&amp;quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I tried the following:&lt;/p&gt;&lt;p&gt;BAD count(../../my:reviewers[reviewRequired = 1])&lt;br /&gt;BAD count(../../my:reviewers[my:reviewRequired = 1])&lt;br /&gt;OK BUT RETURNS 1, I SHOULD GET 3&amp;nbsp;count(../../my:reviewers[//my:reviewRequired = 1])&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Rule to count the number of field that correspond to a specific value</title><link>https://www.infopathdev.com:443/forums/thread/108952.aspx</link><pubDate>Thu, 22 Dec 2016 20:08:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108952</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108952.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108952</wfw:commentRss><description>On the submit button, add a condition for your expression - for the first dropdown, select reviewers and use the drop down to select &amp;quot;number of&amp;quot; - that will give you the XPath for the basic count, if you change the first dropdown to &amp;quot;the expression&amp;quot; - paste that into a reply &amp;amp; I can help you w/ the filters on the expression. :) Or attach your form under a reply under the Options tab.</description></item><item><title>Re: Rule to count the number of field that correspond to a specific value</title><link>https://www.infopathdev.com:443/forums/thread/108951.aspx</link><pubDate>Thu, 22 Dec 2016 19:42:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108951</guid><dc:creator>Josee Sevigny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108951.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108951</wfw:commentRss><description>&lt;p&gt;A simpler&amp;nbsp;example of what I&amp;#39;m trying to accomplish is to Hide the Submit button, if not all the reviewers have been defined.&lt;/p&gt;&lt;p&gt;In English, I&amp;#39;d say: For all the Required reviewers, do we have any blank AccoundIDs under reviewers? &lt;br /&gt;OR&lt;br /&gt;Do we have the same number of non-blank reviewers as there are required reviewers?&lt;/p&gt;&lt;p&gt;Seems simple enough but I can&amp;#39;t seem to find the number of required reviewers I have.&lt;/p&gt;&lt;p&gt;Any suggestion?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Rule to count the number of field that correspond to a specific value</title><link>https://www.infopathdev.com:443/forums/thread/108950.aspx</link><pubDate>Thu, 22 Dec 2016 19:07:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108950</guid><dc:creator>Josee Sevigny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108950.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108950</wfw:commentRss><description>&lt;p&gt;Hmm,&amp;nbsp;I&amp;#39;m currently using a Calculated Value control to ensure I can get the correct syntax first, then will move it to when I need it.&lt;/p&gt;&lt;p&gt;The intent is to&amp;nbsp;hide/show another field (capture date field external to the above structure) based on some calculation within the reviewers mode-set.&lt;/p&gt;&lt;p&gt;I tried adding an Action rule&amp;nbsp;to the reviewers node to show the count&amp;nbsp;but it does not get triggered. The Reviewers&amp;nbsp;node itself does not get modified nor displayed. So how do I add a formatting rule on my capturing date picker that will actually calculate values from the reviewers structure?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Rule to count the number of field that correspond to a specific value</title><link>https://www.infopathdev.com:443/forums/thread/108949.aspx</link><pubDate>Thu, 22 Dec 2016 18:55:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108949</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108949.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108949</wfw:commentRss><description>Where is the rule? Select reviewers using the field picker and then manually add the XPath filter. Whether &amp;quot;my:reviewers&amp;quot; is a valid path depends on where the rule / condition / expression is. :)</description></item><item><title>Re: Rule to count the number of field that correspond to a specific value</title><link>https://www.infopathdev.com:443/forums/thread/108948.aspx</link><pubDate>Thu, 22 Dec 2016 18:43:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108948</guid><dc:creator>Josee Sevigny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108948.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108948</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;When I do either, it won&amp;#39;t save the rule as it tells me: &lt;br /&gt;&amp;quot;my:reviewers/my:reviewRequired&amp;quot; does not point to a valid location path of a field or group.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;XPath is: count(my:reviewers[my:reviewRequired = &amp;quot;1&amp;quot;])&lt;/p&gt;&lt;p&gt;I don&amp;#39;t know if this is important&amp;nbsp;but&amp;nbsp;reviewRequired is set as Boolean.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Rule to count the number of field that correspond to a specific value</title><link>https://www.infopathdev.com:443/forums/thread/108947.aspx</link><pubDate>Thu, 22 Dec 2016 16:49:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108947</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108947.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108947</wfw:commentRss><description>And if review required is always a number: count(my:reviewers[my:reviewRequired = 1])</description></item><item><title>Re: Rule to count the number of field that correspond to a specific value</title><link>https://www.infopathdev.com:443/forums/thread/108946.aspx</link><pubDate>Thu, 22 Dec 2016 16:43:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108946</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108946.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108946</wfw:commentRss><description>count(my:reviewers[my:reviewRequired = &amp;quot;1&amp;quot;])</description></item><item><title>Rule to count the number of field that correspond to a specific value</title><link>https://www.infopathdev.com:443/forums/thread/108945.aspx</link><pubDate>Thu, 22 Dec 2016 16:30:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108945</guid><dc:creator>Josee Sevigny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108945.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=108945</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;&lt;p&gt;I have the below structure and want to count the number of reviewRequired fields that have a value of 1.&lt;/p&gt;&lt;p&gt;count(my:reviewers[//my:reviewRequired = &amp;quot;1&amp;quot;])&lt;/p&gt;&lt;p&gt;In total, there are nodes with a value of 1 but it&amp;nbsp;keeps telling me that there&amp;#39;s only 1.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;my:reviewers&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;my:engagementManager&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;my:ppicker&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pc:Person&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pc:DisplayName&amp;gt;&amp;lt;/pc:DisplayName&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pc:AccountId&amp;gt;&amp;lt;/pc:AccountId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pc:AccountType&amp;gt;&amp;lt;/pc:AccountType&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/pc:Person&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/my:ppicker&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;my:review&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:reviewDate xsi:nil=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/my:reviewDate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:reviewRole&amp;gt;Engagement Manager&amp;lt;/my:reviewRole&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:reviewRequired&amp;gt;1&amp;lt;/my:reviewRequired&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/my:review&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/my:engagementManager&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;my:engagementLeader&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;my:ppicker&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pc:Person&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pc:DisplayName&amp;gt;&amp;lt;/pc:DisplayName&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pc:AccountId&amp;gt;&amp;lt;/pc:AccountId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pc:AccountType&amp;gt;&amp;lt;/pc:AccountType&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/pc:Person&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/my:ppicker&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;my:review&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:reviewDate xsi:nil=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/my:reviewDate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:reviewRole&amp;gt;Engagement Leader&amp;lt;/my:reviewRole&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:reviewRequired&amp;gt;1&amp;lt;/my:reviewRequired&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/my:review&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/my:engagementLeader&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;my:functionalRRL&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;my:ppicker&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pc:Person&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pc:DisplayName&amp;gt;&amp;lt;/pc:DisplayName&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pc:AccountId&amp;gt;&amp;lt;/pc:AccountId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pc:AccountType&amp;gt;&amp;lt;/pc:AccountType&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/pc:Person&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/my:ppicker&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;my:review&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:reviewDate xsi:nil=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/my:reviewDate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:reviewRole&amp;gt;Function RRL&amp;lt;/my:reviewRole&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;my:reviewRequired&amp;gt;0&amp;lt;/my:reviewRequired&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/my:review&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/my:functionalRRL&amp;gt;&amp;nbsp;&lt;br /&gt;...&lt;br /&gt;&amp;lt;/my:reviewers&amp;gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>