cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in displaying data in last page

former_member418469
Participant
0 Kudos

Hi,

I have 2 master pages. The first master page contains 20% header and 80% body content. The second master has 20% header, 60% body content and 20% footer which has to come in last page only.

Issue is: When the data of the body page within 60% then the last page appears is the same page. If the data flows over 60% then the last page with footer is displayed as new empty page with footer alone.

I need the item data has to be moved to new page based on the last page design. The last page must be always displayed along with the data of body page.

Current case:

Page 1 - header - Body

Page 2 - header - body

Page 3 - header & Footer.

I need:

Page 1 - header - Body

Page 2 - header - body - footer

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member418469
Participant
0 Kudos

solved

Former Member
0 Kudos

Hi,

Instead of creating 2 master pages, you can create the footer at the same master page and make it hidden

and you can code on it that when it is the last page it should be visible.

former_member418469
Participant
0 Kudos

Hi Jain,

Can you tell me how to make it footer invisible or visible in the single master page ( must appear only in last page)?

Former Member
0 Kudos

Hi harrybm,

You can use script to switch between hidden and visible.

Something like this could fit your needs:


if ( xfa.layout.page(this) == xfa.layout.pageCount() ) {
  //your on the last page
  //set the presence of your control to visible
}

regards

Former Member
0 Kudos

Hi,

Which event i have to use for paste the above code?

Thank you in advance.

MIguel

Former Member
0 Kudos

Put it on layout ready event.

IF I were you I put it both on layout ready and form ready to test it.

Cheers,

Sai

Former Member
0 Kudos

Hi Sai,

Thank you for the reply,

But from object of the hierachy that i use the event, for the object that i what to hide?

Thank you in advance.

Former Member
0 Kudos

Hi Sai,

Thank you for the help i solved the problem.

Cheers.

MIguel

Former Member
0 Kudos

Hi,

Good to hear that your issue is solved.

Can you mark your post answered and close it...

Cheers,

Thanks.

Former Member
0 Kudos

Hi Harry,

If I could understand your requirment correctly.

You have a form with n pages.

for all the n-1 pages you need header and content.

for the nth page you need header + body + footer which mean you need footer only at the last page.

This can be done by having 2 different master pages specifying the occurance for the 2nd master page to be visible only at the last page.

follow the link from one of the Adobe fourms which explains 2 approaches 1) tru script 2) by design

http://kb2.adobe.com/cps/834/cpsid_83485.html

does it help you ...?

Regards,

Sai