<?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: Sum up several fields(but not hidden fields)</title><link>https://www.infopathdev.com:443/forums/thread/79530.aspx</link><pubDate>Fri, 15 Jun 2012 06:03:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79530</guid><dc:creator>HaiPeng</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79530.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=79530</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Oooh!&lt;/p&gt;&lt;p&gt;Of course... nice solution, thank you! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Sum up several fields(but not hidden fields)</title><link>https://www.infopathdev.com:443/forums/thread/79527.aspx</link><pubDate>Fri, 15 Jun 2012 04:49:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79527</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79527.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=79527</wfw:commentRss><description>&lt;p&gt;In your case, this should do the trick:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;sum(&lt;u&gt;field2&lt;/u&gt;) + sum(&lt;u&gt;field5&lt;/u&gt;) * &lt;u&gt;SwitchPage&lt;/u&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Sum up several fields(but not hidden fields)</title><link>https://www.infopathdev.com:443/forums/thread/79525.aspx</link><pubDate>Fri, 15 Jun 2012 03:38:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79525</guid><dc:creator>HaiPeng</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79525.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=79525</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Looking back, my post is quite unintelligible...&lt;/p&gt;&lt;p&gt;&amp;nbsp; I&amp;#39;ve added a simplified example.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have two sections with tables in it, a button and a invisible field called &amp;quot;SwitchPage&amp;quot;. As long as &amp;quot;SwitchPage&amp;quot; has a value of 0, the second section is hidden. If you press the button, &amp;quot;SwitchPage&amp;quot; gets set to 1 and the second section appears.&lt;/p&gt;&lt;p&gt;Now the repeating tables have two columns. The user will enter numbers in the second column. I want to add a &amp;quot;total sum&amp;quot;-field that displays the total of all the numbers added in the second column&amp;#39;s fields. However, I don&amp;#39;t want it to count the numbers in the second section as long as this section is hidden(or &amp;quot;SwitchPage&amp;quot; is set to 0 - same deal, really). This is a problem because both repeating table&amp;#39;s number fields have a default value(in this case 5). So when I set my &amp;quot;total-sum&amp;quot; field to sum up all the fields in both second columns it will display 5 more than I initially want because it&amp;#39;s already counting the value of the - as of yet - hidden field/table/section.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Sum up several fields(but not hidden fields)</title><link>https://www.infopathdev.com:443/forums/thread/79523.aspx</link><pubDate>Fri, 15 Jun 2012 02:35:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79523</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79523.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=79523</wfw:commentRss><description>&lt;p&gt;I wish I could better understand your phrase:&amp;nbsp; &lt;br /&gt;&amp;quot; I want to have a field which gives the total of all the &lt;b&gt;visible&lt;/b&gt; lists&amp;quot;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;A list is a set of fields (and rows, basically a table, and you want to have a total of all fields in a few lists?&lt;/p&gt;</description></item><item><title>Sum up several fields(but not hidden fields)</title><link>https://www.infopathdev.com:443/forums/thread/79520.aspx</link><pubDate>Fri, 15 Jun 2012 02:07:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:79520</guid><dc:creator>HaiPeng</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/79520.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=79520</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello everyone,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have a several lists in individual sections posing as print-pages. If one lists reaches the set max number of rows, the next section(contianing the next lists) becomes visible. In the first section I want to have a field which gives the total of all the &lt;b&gt;visible&lt;/b&gt; lists. If I set the field&amp;#39;s value to add up all the lists numbers it adds the hidden ones, too.&lt;/p&gt;&lt;p&gt;So my idea would have been to account for the hidden fields by subtracting those from the total and change the field&amp;#39;s value es soon as the hidden sections get turned visible. However, setting a field&amp;#39;s doesn&amp;#39;t work. I think I would need to change the fields formular so that it&amp;#39;d keep updating itself. Does anyone know how to change a fields formular?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Or is there a nicer, less convoluted solution? &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>