<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Required Script for Adobe Form in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321828#M3737101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Suppose 10 entries can be print between header and footer sub-form. And&amp;nbsp; There is 12 entries for printing. At present when I run the program, It print header then print the all 12 entries at same page because content area has space upto bottom margin (I can't reduce content area for reserving space for footer ), and also print footer sub-form at same page, due to this footer sub-form overlap on two entries of table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you tell me that how shall I print the 12 entries at first page and break the page after 12 entries (because footer will not fit at same page) and will call next page (second page) &amp;amp; print footer sub-form at bottom margin?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Jun 2014 18:38:16 GMT</pubDate>
    <dc:creator>Piyushmatrixs</dc:creator>
    <dc:date>2014-06-01T18:38:16Z</dc:date>
    <item>
      <title>Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaq-p/10321817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I required your urgent help for my development. I made a adobe form for customer ledger. Form is divided in 3 parts as shown in below image:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/451729" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Header sub form will print on each page if form is more than one page. Then Body will grow to multiple page according data. Next is footer, it will print on last page (either last page is 1st or 4th page) positioned bottom. The problem is that in some situation. Like it prints Header, then prints body sub-form for open item. It grow according data. suppose that open item end on second page then footer should be placed on second page at bottom aligned. Footer sub-form is 2 inches( or 10-12 rows) in height. It should be checked that after end of body subform how much space is available. if there enough space for footer to be print then footer will print on same page other wise it will create one more page, at top of that page will print header sub-form and then at bottom aligned footer sub-form (there would be blank space between header and footer). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; How to do that. Your help would be appreciate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; Please reply asap.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks and Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Piyush Kumar&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 12:41:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaq-p/10321817</guid>
      <dc:creator>Piyushmatrixs</dc:creator>
      <dc:date>2014-05-13T12:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321818#M3737091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Piyish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need not to write any script. Subfomr properties will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check the page break property and make it not allowed. It will automatically take care of your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandeep Katoch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 07:10:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321818#M3737091</guid>
      <dc:creator>sandeep_katoch</dc:creator>
      <dc:date>2014-05-14T07:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321819#M3737092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piyush,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see one solution here. Please mention if it is not meeting your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can reserved the space for the footer for each page. Footer will be hidden for the all pages except last page. In the last page it will be visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: In each page the footer space will be empty. This is ok if the footer takes less height. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Krishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 07:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321819#M3737092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-05-15T07:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321820#M3737093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, you are right. We can reserve space for footer, but the problem would be same you mention. I am sorry to say that it will not fulfill my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I think that space could be reserv by a adjusting content area. If you solution is other than this then your solution may help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Piyush Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 13:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321820#M3737093</guid>
      <dc:creator>Piyushmatrixs</dc:creator>
      <dc:date>2014-05-15T13:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321821#M3737094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piyush,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try out this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Put the footer by adjusting the content area.&lt;/P&gt;&lt;P&gt;- Display footer only when it is last page or first page using this script&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/464046" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I will check if current page is last page then only it will display the footer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 11:38:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321821#M3737094</guid>
      <dc:creator>nsikka</dc:creator>
      <dc:date>2014-05-30T11:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321822#M3737095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have done this(script) already. I want to know that is there any way by which I can do like this:&lt;/P&gt;&lt;P&gt;1).&amp;nbsp; I can count/calculate space in inches or in line(row) available&amp;nbsp; at bottom after printing sub-forms placed on design view.&lt;/P&gt;&lt;P&gt;2). If step 1 done, after that can I make a condition like below:&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;&amp;nbsp; if rest_of_row(space)&amp;nbsp; &amp;lt; 5 then&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create one more page and print footer subform with Header sub-form.&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;&amp;nbsp; else.&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print footer on same page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See page structure and output for a better understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/464391" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Output :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/464392" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 21:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321822#M3737095</guid>
      <dc:creator>Piyushmatrixs</dc:creator>
      <dc:date>2014-05-30T21:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321823#M3737096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Think you can put the footer in the master page instead of keeping in design view. So reduce the content area and put the footer content in the bottom in a subform and write this script on that subform. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need not calculate number of rows to print the subform&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 May 2014 15:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321823#M3737096</guid>
      <dc:creator>nsikka</dc:creator>
      <dc:date>2014-05-31T15:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321824#M3737097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have already done same (footer in master page).&amp;nbsp; But if I shall reduce the content area for footer, and if content (of table 2) overflows and data creates second or third page, then it will keep empty space on each previous pages (on first page, second page.....) equal to footer sub-form. I can not leave these empty space by reducing content area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Any other suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 May 2014 18:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321824#M3737097</guid>
      <dc:creator>Piyushmatrixs</dc:creator>
      <dc:date>2014-05-31T18:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321825#M3737098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, Do one thing. .. First check approx how many entries are coming on one page say for example 10.&lt;/P&gt;&lt;P&gt;Now in the print program check the total number of entries in the table which is getting printed on the form... for example it is 95&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can calculate the number of pages it will print i.e. 95/10 = 9.5. It means you have to print footer on 10th page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can pass a variable as importing parameter and then check it in the script code to print the footer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jun 2014 06:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321825#M3737098</guid>
      <dc:creator>nsikka</dc:creator>
      <dc:date>2014-06-01T06:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321826#M3737099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piyush,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a sub form for footer just below the Body of Items Sub Form.In Footer Sub Form ,we have check box ( Allow Page Breaks ) as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/464616" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Bharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jun 2014 06:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321826#M3737099</guid>
      <dc:creator>former_member221372</dc:creator>
      <dc:date>2014-06-01T06:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321827#M3737100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; First thing that Footer sub-form already enabled check box of "Allow Page break...".&amp;nbsp; Body Page has flowed property. So if keep footer sub-form at the place suggested by you, and table have only 5-10 records, then it will print footer sub form just below closing balance subform, not at bottom. It would be 1-1.5 inches above bottom margin, while I have to print it bottom aligned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jun 2014 18:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321827#M3737100</guid>
      <dc:creator>Piyushmatrixs</dc:creator>
      <dc:date>2014-06-01T18:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321828#M3737101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Suppose 10 entries can be print between header and footer sub-form. And&amp;nbsp; There is 12 entries for printing. At present when I run the program, It print header then print the all 12 entries at same page because content area has space upto bottom margin (I can't reduce content area for reserving space for footer ), and also print footer sub-form at same page, due to this footer sub-form overlap on two entries of table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you tell me that how shall I print the 12 entries at first page and break the page after 12 entries (because footer will not fit at same page) and will call next page (second page) &amp;amp; print footer sub-form at bottom margin?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jun 2014 18:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321828#M3737101</guid>
      <dc:creator>Piyushmatrixs</dc:creator>
      <dc:date>2014-06-01T18:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321829#M3737102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piyush,&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/464986" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHat you can you is, select that table and go to pagination tab as shown above.&lt;/P&gt;&lt;P&gt;Select the page where you want to go in case of overflow.&lt;/P&gt;&lt;P&gt;And in the traailer select the footer subform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it will print the footer subform after table printing is finished.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 06:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321829#M3737102</guid>
      <dc:creator>nsikka</dc:creator>
      <dc:date>2014-06-02T06:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321830#M3737103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please have a look for all three condition. &lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;(Note : For footer, we can not reserve space.&amp;nbsp; If header and footer are on same page,then It means table have only 10 rows. if table have less or more than 10 rows then:&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1).&amp;nbsp; If table has only 2 or 3 entry then Page would be like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/466618" width="450" /&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;2). If table has upto 10 entries then page would be like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/466650" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;3).&amp;nbsp; If Table has 11-20 entries then pages would be like this (footer aligned at bottom margin,). like if table has 12 entries then (tell how to set or code for calling second page like below (no footer subform break within content))&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/466649" width="450" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that now it is more understandable. Now tell what should I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 18:43:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321830#M3737103</guid>
      <dc:creator>Piyushmatrixs</dc:creator>
      <dc:date>2014-06-03T18:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321831#M3737104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.. You can do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to master page and put the footer subform over content area. Do not reduce the content area to fit the footer. Just overlap like this :&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/467475" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And write the script to display footer subform on last page. So this way you will not consume the space on every page and display the footer on last page only and in the bottom margin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 14:03:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321831#M3737104</guid>
      <dc:creator>nsikka</dc:creator>
      <dc:date>2014-06-04T14:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321832#M3737105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks for reply. I have already done this what you are saying. I want to bring your attention on above condition. What you told to do, is good and will work correctly with first and second condition. But when we run it with third condition then :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If table have 12 entries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It will print all twelve entries on first page.&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; and it will also print footer on that first page and footer also will overlap over 2 rows of table.&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;&amp;nbsp;&amp;nbsp; In this condition I want to do that program call and generate second page and place the footer on second page. It means if tables have 12 entries then program will create 2 page, first page contain Header then 12 rows of table(no footer on this page) and second page will contain Header at top and footer at bottom margin(no table and there would empty space between header and footer). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; How to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 08:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321832#M3737105</guid>
      <dc:creator>Piyushmatrixs</dc:creator>
      <dc:date>2014-06-06T08:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321833#M3737106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Piyush,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Each row in the table will occupy a single line or will it occupy multiple lines also??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 09:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321833#M3737106</guid>
      <dc:creator>pavan_prabhu</dc:creator>
      <dc:date>2014-06-06T09:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321834#M3737107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Each row in the table will occupy only a single line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 10:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321834#M3737107</guid>
      <dc:creator>Piyushmatrixs</dc:creator>
      <dc:date>2014-06-06T10:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321835#M3737108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Piyush,&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I will take a simple example. Let us consider that if you stretch the content area till the end, then maximum of 12 rows will occupy in a single page.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;For now, let us consider that only a maximum of 12 rows will fit in a single page. I know the footer mentioned by you in the question is 10-12 rows in height. But let us move in a simple way. &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/877/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;First you have to check that how many rows are equivalent to 1 footer. For now, let us consider that only a maximum of 12 rows will fit in a single page. And the Footer is exactly 2 rows in height.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you need 2 master pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1st - master page---&amp;gt;&lt;/STRONG&gt; Overlap the Footer on the Content area.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2nd - master page---&amp;gt;&lt;/STRONG&gt; Create a new page with footer at the bottom.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Let us look at some of the scenarios below. This is very important because our next design is very much based on this. &lt;SPAN __jive_emoticon_name="mischief" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/877/images/emoticons/mischief.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;1) 2 rows are equivalent to 1 footer. So 12 – 2 = 10 rows. So if there are less than or equal to 10 rows, then only 1 page will be printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;2) If there are 12 rows, then 2 pages will be printed. 12 rows in 1st page and only the header and footer in 2nd page.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;3) If there are 24 rows, then 3 pages will be printed. 12 rows in 1st page, next 12 in 2nd page, and only the header and footer in 3rd page.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;4) If there are 36 rows, then 4 pages will be printed. 12 rows in 1st page, next 12 in 2nd page, next 12 in 3rd page and only the header and footer in 4th page.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;From point 2,3 and 4 we can conclude that the new master page will be triggered &lt;/STRONG&gt;&lt;STRONG&gt;when the number of rows in the table is greater than 10 OR &lt;/STRONG&gt;&lt;STRONG&gt;when the number of rows in the table is exactly divisible by 12. &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;5) If there are 11 rows, then 2 pages will be printed. 11 rows in 1st page and only the header and footer in 2nd page.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;6) If there are 23 records, then 3 pages will be printed.12 rows in 1st page, 11 in 2nd page, and only the header and footer in 3rd page.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;7) If there are 35 records, then 4 pages will be printed.12 rows in 1st page, 12 in 2nd page, 11 in 3rd page and only the header and footer in 4th page.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;From point 6 and 7, we can conclude that the new master page will also be triggered when the number of rows divided by 12 gives the remainder of 11. i.e &lt;/STRONG&gt;&lt;STRONG&gt;number of rows % 12&amp;nbsp; should be 11.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;6) If there are 15 rows, then 2 pages will be printed. 12 rows in 1st page, and the header, the rest of the 3 rows and footer in 2nd page.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;7) If there are 36 rows, then 4 pages will be printed. 12 rows in 1st page, 12 in 2nd page, 12 in 3rd page and only the header and footer in 4th page.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;So if you look at the pattern here, a new page with only the header and footer should be triggered only when the number of rows in the table is &lt;STRONG&gt;greater than 10&lt;/STRONG&gt; and either the number of rows in the table is &lt;STRONG&gt;exactly divisible by 12 or &lt;/STRONG&gt;&lt;STRONG&gt;number of rows % 12&amp;nbsp; should be 11&lt;/STRONG&gt;. i.e By using &lt;STRONG&gt;Modulus Operation&lt;/STRONG&gt;, &lt;STRONG&gt;number of rows % 12&lt;/STRONG&gt; should give you &lt;STRONG&gt;zero or &lt;/STRONG&gt;&lt;STRONG&gt;number of rows % 12&amp;nbsp; should give 11. &lt;/STRONG&gt;In rest of the cases, only the 1st master page will be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Case 1 - &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;If the rows and the footer comes in same page.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Now you have to take care that the footer should always be bottom aligned in the last page of 1&lt;SUP&gt;st&lt;/SUP&gt; master page.. So for this you have to design the footer in the 1st master page. So overlap the Footer on the Content area. Later we will see how to show the footer only once in the last page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Case 2 - &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;If the rows end exactly or almost at the end of content area with no space available for a footer in 1st master page.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;That's why you have to create new master page (Master Page 2) and then design the footer (bottom aligned) in this page. Now create a dummy sub form in the design view of the Page2. If you don't create a dummy sub form, then the 2nd page will never trigger. This is the key to triggering the 2nd master page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;How to determine if it is a Case 1 or Case 2 ??&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;2 rows are equivalent to 1 footer.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;So 12 – 2 = 10 rows.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;So Case 2 will only occur if &lt;STRONG&gt;number of rows is greater than 10&lt;/STRONG&gt; and if the&lt;STRONG&gt; total number of rows is exactly divisible by 12&lt;/STRONG&gt; or &lt;STRONG&gt;number of rows % 12&amp;nbsp; should give 11.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Now in the driver program, determine the number of rows in the table. Then set the flag if the &lt;STRONG&gt;CASE 2&lt;/STRONG&gt; is occurring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to determine whether it is &lt;STRONG&gt;CASE1 or CASE2,&lt;/STRONG&gt; write the below code in driver program.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA: flag TYPE flag,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num TYPE i.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DESCRIBE li_tab LINES num.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF ( num GT 10 AND ( num MOD 12 = 0 OR num MOD 12 = 11 )).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag = ‘X’.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If FLAG contains blank, it is Case 1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If FLAG contains “X”, it is Case 2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Preventing Conflicts between Case 1 and Case 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;If &lt;STRONG&gt;Flag&lt;/STRONG&gt; contains Blank, then it’s a &lt;STRONG&gt;first case.&lt;/STRONG&gt; So footer from 1st Master page will appear only at the end of 1st master page. So you have to always hide the entire 2nd master page.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;If &lt;STRONG&gt;Flag&lt;/STRONG&gt; contains &lt;STRONG&gt;“X”&lt;/STRONG&gt;, then it’s a &lt;STRONG&gt;second case.&lt;/STRONG&gt; So footer from 2&lt;SUP&gt;nd&lt;/SUP&gt; Master page will appear. So in this case you have to always hide the Footer of 1&lt;SUP&gt;st&lt;/SUP&gt; master page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;For Case 1 - Write the below JavaScript code in the Ready Layout event of Footer sub form of 1&lt;SUP&gt;st&lt;/SUP&gt; Master Page&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// If CASE 2, then hide the footer of 1&lt;SUP&gt;st&lt;/SUP&gt; master page&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If ( data.FLAG.rawvalue != null )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This.presence = “hidden”;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Else&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// If CASE 1, then show the footer only at the end of 1&lt;SUP&gt;st&lt;/SUP&gt; master page&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If ( this.rawValue &lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt; xfa.layout.page(&lt;SPAN style="color: blue;"&gt;this&lt;/SPAN&gt;) != xfa.layout.pageCount() )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&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; {&lt;/STRONG&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; &lt;/P&gt;&lt;P&gt;&lt;STRONG&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This.presence = “hidden”;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&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; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;What the above JavaScript basically does is that, it will check if it is case 2. If yes, it will hide the footer of 1&lt;SUP&gt;st&lt;/SUP&gt; master page. Else it will check if it is case 1. If yes, it will show the footer only in last page of 1&lt;SUP&gt;st&lt;/SUP&gt; master page.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;For Case 2 - No need to write the JavaScript on Footer sub form of 2&lt;SUP&gt;nd&lt;/SUP&gt; Master Page. Because anyways if FLAG is blank, we will hide the entire 2&lt;SUP&gt;nd&lt;/SUP&gt; Master Page&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drag the FLAG variable in the layout under data node. Write the &lt;STRONG&gt;JavaScript&lt;/STRONG&gt; on Dummy sub form in &lt;STRONG&gt;Initialize&lt;/STRONG&gt; event as below.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;// If FLAG is empty, then hide entire 2nd master page&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If ( data.FLAG.rawvalue == null )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This.presence = “hidden”;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; The main idea over here is to get the exact height of the footer equivalent to number of rows. As you said that the footer is 10-12 rows in height, I would like to mention that please calculate the exact value of Footer. Either it should be 10 rows height or it should be 12 rows but not both. I have taken a simple example here. I hope it will be almost same in your case too. Just the numbers might be different. I know it is difficult initially but its a one time activity. If you do the calculations correctly first time, it will make your life easier.&lt;STRONG&gt; &lt;/STRONG&gt;Hope my solution will help you. &lt;SPAN __jive_emoticon_name="cool" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/877/images/emoticons/cool.gif"&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 15:26:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321835#M3737108</guid>
      <dc:creator>pavan_prabhu</dc:creator>
      <dc:date>2014-06-06T15:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Required Script for Adobe Form</title>
      <link>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321836#M3737109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please see below snapshot and reply asap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/474352" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Piyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 19:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/required-script-for-adobe-form/qaa-p/10321836#M3737109</guid>
      <dc:creator>Piyushmatrixs</dc:creator>
      <dc:date>2014-06-12T19:49:15Z</dc:date>
    </item>
  </channel>
</rss>

