SAP Virtual/Onsite Trainings

Document Categories:

What's New?

Contribute?

Sample Specs

What's Hot?

Web Dynpro for ABAP Tutorials 


Join the Mailing List
Enter name and email address below:
Name:
Email:
Subscribe  Unsubscribe 

Displaying any object on the header/footer of a specific page in Adobe forms

By Namrata Singh, Hitachi Consulting

Business Requirement:

Many times, there might be a business requirement to display some specific objects on the footer or header of a specific page when we have multiple pages of output. This article explains how to meet this requirement in Adobe forms.

Pre-requisites:

Basic Knowledge of adobe forms & its elements with a bit of scripting knowledge is required.  

Solution:

Displaying the header/footer on any specific page is done by creating the header/footer on the master page and writing a small java script to display only on that specific page. The below example shows how to implement the same.

Below are two examples

  • Footer at the end of the last page ( Signature or a date)

  • Header at the top of the first page ( Title or a logo)  

Note: Displaying on a specific page can be done by changing the logic of the script.

Example 1:

Footer at the end of the last page (Signature or a date) :

Step 1: Create a sub form outside the Content Area in the Master Page. Include the fields in the sub form that has to be displayed at the footer of the page. The content of this sub form will be positioned. Set the size & location of the sub form exactly where you want the footer to get displayed.

Step 2: Go to Palettes->Script editor.

Step 3: Click on the created sub form and write the below script in the script editor. The below script is to display the footer only at the end of the last page.  If you don’t write the script the footer will be printed on all pages.

Write this in the:

Event: Initialize

Language: FormCalc       

Run at: Client  

var curp  = $layout.page ( ref ( $ ) )

var totalp = $layout.pageCount()

if ( curp ne totalp ) then

$.presence = "hidden"

endif    

Save and activate these changes.

The output is as below with the footer at the end of the last page.

Page 1 :

Page 2 :

Click here to continue...

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image