cancel
Showing results for 
Search instead for 
Did you mean: 

Page break after 20 rows in adobe form

former_member193821
Active Participant
0 Kudos

Hi All,

Iam working on a development in which I am passing entries to adobe form as a table.There can be 100 entries in table but the adobe form need to display only 20 rows in a page and should display next 20 rows in 2nd page and so on .

Please let me know how to handle this scenario in SAP Adobe.

Accepted Solutions (0)

Answers (3)

Answers (3)

rakesh_m2
Contributor
0 Kudos

Hi Bharadwaj,

this is a not an exact solution, but works if your row height size is fixed..  condense the content area, such that it fits exactly 20 rows. 

--

Rakesh

jayan_abap
Associate
Associate
0 Kudos

Hi Baradwaj,

add an index column to the table but hide it. Then add similar javascript code in "conditional breaks" as below:

if (this.resolveNode("table.ZINDEX") % 20) == 0)

Jay

former_member193821
Active Participant
0 Kudos

Hi ,

Can you elaborate the solutions.Please donot paste code and mention to use that.

The form which we are developing has only 1 Page and same page will extend into subsequent pages.

Thanks ,

Bharadwaj

Former Member
0 Kudos

Hi,

I think Jay gave you the right info for you to progress for your particular issue.

1. Add a new column called ZINDEX, this should contains running number to indicate the index of your record.

2.Do the conditional break in your table.

Just in case you do not know where to put the conditional, check this

http://www.saptechnical.com/Tutorials/AdobeForms/Break/Index.htm

COPY and PASTE this conditional in the box

if (this.resolveNode("table.ZINDEX") % 20) == 0)

If you need any further help, kindly provide screen shoot and provide error message if any; if you have the issue.

Also, google always helps.

regards,

Xiang Li

0 Kudos

Hi,

Can you try the below logic:

1. We need to first get the row count of the table data in each page. For this, we may be required to use some java script in the 'Body Row' of the table.

Ex.,

     var rowcount;

     rowcount = tablename.data.all.length;

   if ( rowcount == "20" )

{

     page2.presence = "hidden";

}

2. Once the rowcount is 20, we have to manually trigger a page break. We can think about using conditional break available in pagination tab of the 'Body Row' in table.

Please refer to below links for more help:

http://scn.sap.com/thread/3291404

http://www.saptechnical.com/Tutorials/AdobeForms/Break/Index.htm

Thanks,

Sathya.