<?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>'Grand Total' in Footer of a Repeating Table appear on every page but I want it in last page only</title><link>https://www.infopathdev.com:443/forums/thread/70713.aspx</link><pubDate>Thu, 29 Sep 2011 14:25:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70713</guid><dc:creator>K.Sarkar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70713.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=70713</wfw:commentRss><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not a&amp;nbsp;software developer by profession. However I have managed to build up a &amp;#39;Sales Invoice&amp;#39; Form recently with the help of your blogs/forums.I have used &lt;strong&gt;&lt;u&gt;Javascript&lt;/u&gt;&lt;/strong&gt; in my Form and it uses &lt;u&gt;&lt;strong&gt;MainData Source&lt;/strong&gt; only&lt;/u&gt;. The Structure of&amp;nbsp; the Form as follows :-&lt;/p&gt;
&lt;p&gt;1) at first there is a Repearing Section which contains a page break with conditional formattig : count(../my:group1/my:RepeatingTable) &amp;lt;= 20, Hide this control.&lt;/p&gt;
&lt;p&gt;2) Next I placed my Repeating Table&amp;nbsp;- &amp;#39;Item Name&amp;#39;, &amp;#39;Rate&amp;#39;, &amp;#39;Qty&amp;#39; &amp;amp; &amp;#39;Amount&amp;#39;.&amp;nbsp;I have set minOccurrence of Repeating Table Rows to 20 in view1.xml. Then I have changed all default &amp;lt;tbody&amp;gt; tags in view1.xml to &amp;lt;thead&amp;gt; &amp;lt;tbody&amp;gt; &amp;lt;tfoot&amp;gt; tags so that Header &amp;amp; Footer appears in every page. My all controls are lying within Repeating Table.&lt;/p&gt;
&lt;p&gt;The Problem begins with Footer.I have several rows &lt;strong&gt;in Footer&lt;/strong&gt; -&amp;nbsp;&lt;u&gt;1st row&lt;/u&gt; conatins Text Control- Sum of &amp;quot;Amount&amp;#39; field ,&lt;/p&gt;
&lt;p&gt;&lt;u&gt;2nd row&lt;/u&gt; just contains a &amp;quot;Button&amp;quot;, when clicked by user, a new page with another block of 20 blank rows will be inserted which I have cloned from sampledata. &lt;/p&gt;
&lt;p&gt;&lt;u&gt;3rd&amp;nbsp; Row&lt;/u&gt; contains&amp;nbsp;Text Controls- &amp;#39;Tax Head&amp;#39; &amp;amp; &amp;#39;Tax Amount&amp;#39;. &lt;/p&gt;
&lt;p&gt;&lt;u&gt;4th Row&lt;/u&gt; contains Text Control- &amp;#39;Grand Total&amp;#39;&amp;nbsp;i.e. Amount+Tax Amount&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;u&gt;Last row&lt;/u&gt; contains Text Control-&amp;nbsp;some fixed text to appear,i.e. company name, authorized signatory etc.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;u&gt;The problem is&lt;/u&gt;&lt;/strong&gt; that if the invoice spreads accross multiple pages, &amp;#39;1st, 3rd &amp;amp; 4th rows&amp;#39; in Footer appears on every page. But it should appear only at last page. I applied some conditional formatting. In that case either those items appear in all pages or hidden on all pages.&lt;/p&gt;
&lt;p&gt;I want &amp;#39;1st,3rd &amp;amp; 4th rows&amp;#39; in Footer will appear at&amp;nbsp;last page only but &amp;#39;Last Row&amp;#39; of Footer will appear on every page as usual. How to do that?&lt;/p&gt;
&lt;p&gt;Please give me the solution in detail.&lt;/p&gt;</description></item></channel></rss>