<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Count - fail!</title><link>https://www.infopathdev.com:443/forums/thread/60679.aspx</link><pubDate>Mon, 25 Oct 2010 16:56:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60679</guid><dc:creator>cbernal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60679.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60679</wfw:commentRss><description>&lt;p&gt;It works!! you are&amp;nbsp;so Amazing! thanks for helping me out with this...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Carlos&lt;/p&gt;</description></item><item><title>Re: Count - fail!</title><link>https://www.infopathdev.com:443/forums/thread/60610.aspx</link><pubDate>Thu, 21 Oct 2010 23:40:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60610</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60610.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60610</wfw:commentRss><description>&lt;p&gt;Hi -- I added an expression box on your Summary view that counts SI_ fields where Compliance_Status = &amp;quot;No&amp;quot;. The XPath looks like:&lt;/p&gt;&lt;p&gt;&amp;nbsp;count(dfs:dataFields/d:CSAR/@SI_[../@Compliance_Status = &amp;quot;No&amp;quot;])&lt;/p&gt;&lt;p&gt;So you know, XPath is case sensitive, and &amp;quot;No&amp;quot; is not the same as &amp;quot;NO&amp;quot; or &amp;quot;no&amp;quot; of &amp;quot;nO&amp;quot;. So you&amp;#39;ll want to make sure that the text is correct. I&amp;#39;ve attached the sample back to this post...&lt;/p&gt;</description></item><item><title>Re: Count - fail!</title><link>https://www.infopathdev.com:443/forums/thread/60608.aspx</link><pubDate>Thu, 21 Oct 2010 23:02:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60608</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60608.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60608</wfw:commentRss><description>Hi -- just saw your PM, thanks for letting me know about having posted your form. I&amp;#39;ll take a look in the next day or so!</description></item><item><title>Re: Count - fail!</title><link>https://www.infopathdev.com:443/forums/thread/60505.aspx</link><pubDate>Tue, 19 Oct 2010 23:56:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60505</guid><dc:creator>cbernal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60505.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60505</wfw:commentRss><description>&lt;p&gt;And here is the form... I also took all the conf data of it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>Re: Count - fail!</title><link>https://www.infopathdev.com:443/forums/thread/60504.aspx</link><pubDate>Tue, 19 Oct 2010 23:43:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60504</guid><dc:creator>cbernal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60504.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60504</wfw:commentRss><description>&lt;p&gt;Hi Hillary,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I had to remove all extras, but this is the basic structure. &lt;/p&gt;
&lt;p&gt;on the general details fields PSC and ISC is where I want to store my counts of Policy_Codes and Physical_Security_Codes. I also need counts for Tab_Codes and another for SI_ just like the way I want to make counts for PSC and ISC.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The only diference is that for SI must be filtered whenever Compliance_Status is equal to &amp;quot;No&amp;quot;&lt;/p&gt;</description></item><item><title>Re: Count - fail!</title><link>https://www.infopathdev.com:443/forums/thread/60503.aspx</link><pubDate>Tue, 19 Oct 2010 23:14:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60503</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60503.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60503</wfw:commentRss><description>Any chance you could attach a sample form in a reply (under the Options tab). I&amp;#39;m looking at your DB structure -- that must be from you main data source? And then there is another data source? At any rate, a sample form would really help make the question less confusing....</description></item><item><title>Re: Count - fail!</title><link>https://www.infopathdev.com:443/forums/thread/60502.aspx</link><pubDate>Tue, 19 Oct 2010 22:50:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60502</guid><dc:creator>cbernal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60502.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60502</wfw:commentRss><description>&lt;p&gt;in fact I forgtot to mention that the returned value is always 1 for the A, B and C values...and the CountALL returns 0&lt;/p&gt;</description></item><item><title>Count - fail!</title><link>https://www.infopathdev.com:443/forums/thread/60501.aspx</link><pubDate>Tue, 19 Oct 2010 22:49:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:60501</guid><dc:creator>cbernal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/60501.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=60501</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m using infopath 2007 to create some security reports. After I generate my reports&amp;nbsp;I would like to have totals of each section from section from this report. I&amp;#39;ve been reading how to do this with xpath, but I honestly don&amp;#39;t get how to make this with the COUNT(../my:field1:field2) option. Any help is very appreciated.&amp;nbsp;I apologize for the huge letter, but I wanted to explain as much as possible my situation.&lt;/p&gt;
&lt;p&gt;Basically I run a query with a report number and it populates in two Views. My&amp;nbsp;Policy view (Repearting View) and a Summary View&amp;nbsp;(non repeating text boxes)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Policy View&lt;/strong&gt; has items from 1 to 110 in a repeating table with this structure (this list populates just fine)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Tracking Number -&amp;nbsp; &amp;nbsp;SI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;Requirement&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;COMPLIANT?&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; Autonumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fix and Resend&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; Autonumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fix and Resend&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; Autonumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;33&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fix and Resend&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Yes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; Autonumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;105&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fix and Resend&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Summary View &lt;/strong&gt;has the following non-repeating textboxes&lt;/p&gt;
&lt;p&gt;Total of non-compliant items&amp;nbsp;= In this case should be 3&lt;/p&gt;
&lt;p&gt;Total of Type A = 2&lt;/p&gt;
&lt;p&gt;Total of Type B = 0 * &lt;em&gt;Because the item is compliant&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Total of Type&amp;nbsp;C = 1&lt;/p&gt;
&lt;p&gt;Here&amp;nbsp;is my db structure. I created 3 separate fields where to count this data.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;myfields&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; datafields&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt;&amp;nbsp; d:CSAR&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type (* A B or C)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CountA&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CountB&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CountC&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CountALL&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And finally this is my criteria that...does not really work:&lt;/p&gt;
&lt;p&gt;CountALL default value= &lt;strong&gt;count(@SI_[. and @Status = &amp;quot;No&amp;quot;])&lt;/strong&gt;&amp;nbsp;&amp;nbsp; - &amp;quot;Count all SI if the Status is equal to No&amp;quot;&lt;/p&gt;
&lt;p&gt;CountA=count(../CSAR/CountA) + 1&lt;/p&gt;
&lt;p&gt;CountB=count(../CSAR/CountB) + 1&lt;/p&gt;
&lt;p&gt;CountC=count(../CSAR/CountC) + 1&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Carlos&lt;/p&gt;</description></item></channel></rss>