Highlighted

page break for each new record

Avatar

30-10-2008

I have a table with multiple records. I want to display each new record on a new page. I am using the "after" option under subform tab and specify that "after each record, go to next page".



The problem is after the last record is displayed, it still goes to the new page which creates an empty page. Is there anyway to avoid this?



Thanks,



Connie

Replies

Highlighted

Avatar

Avatar

pguerett

Total Posts

(val/1000)?string[".0"]}K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

(val/1000)?string[".0"]}K

Likes

611

Correct Answer

692
pguerett

30-10-2008

What if you change the presence of the last page subform to hidden or simply remove it programmatically of course. I assume that you are simply merging data onto a template and this is the result. You could put that code on the DocReady event and it would run after the form is Ready.



Make sense?
Highlighted

Avatar

30-10-2008

Paul thanks for the response.



Changing the subform to be hidden would not help. Remember, I am using the same subform to display all the records in the table so the first record is on the first page, 2nd record on the 2nd page, etc. Hiding the subform would hide all the data.



I assume there is a way to remove the last page only using formcalc or javascript but I don't know how to write that code. Could you shine some light on that?



Thanks,



Connie
Highlighted

Avatar

Avatar

pguerett

Total Posts

(val/1000)?string[".0"]}K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

(val/1000)?string[".0"]}K

Likes

611

Correct Answer

692
pguerett

30-10-2008

Send your form and data to livecycle8@gmail.com and I will give it a go.
Highlighted

Avatar

18-11-2008

HI ,

I have the same problem as stated above , how to over come that prolem
Highlighted

Avatar

18-11-2008

HI ,

I have same problem as mentioned above , how can i resolve the issue with a blank page.
Highlighted

Avatar

Avatar

pguerett

Total Posts

(val/1000)?string[".0"]}K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

(val/1000)?string[".0"]}K

Likes

611

Correct Answer

692
pguerett

19-11-2008

There is no definative answer ...it will depend on how your form was built. If you send it to livecycle8@gmail.com I will have a look. Include a brief description of the issue. I will not be able to look at it until next week.

Avatar

Avatar

lewis4242

Avatar

lewis4242

lewis4242

12-06-2010

I have the same issue, I am repeating data and want a new page after each new table so I have set the 'after' value to be 'go to next page' in the pagination tab for the table.

Where does the new page live in the model?  How can I remove it?

Thanks

Lewis

Highlighted

Avatar

Avatar

lewis4242

Avatar

lewis4242

lewis4242

14-06-2010

I got a solution for this, for me anyway.  Instead of doing 'Go to next page' as the after event on the pagination tab, I setup a conditional break to add a new page with the following javascript condition:

this.index < this.parent._person.count -1

where is the name of the subform to be repeated