XML Publisher -- Can you limit returned rows in a loop ?

Yes

Using the XSL command you can

<?for-each:ROW[position()<6]?>

Where 6 is the no of rows you want to display in each page,

suppose your XML contain 30 rows,
you wanted to display 6 rows in each page.

you can do the for loop for 6 rows, then you can also add the command to page break
when the position reaches 6 :)

<?if:position() mod 3 =0?> <xsl:attribute name="break-before">page</xsl:attribute> <?end if?>

Comments

Unknown said…
This 2 lines code has resolved my problem, which I was facing from past 1 month... Simply, AWESOME!!!
Julia Stookey said…
Is it possible for you to share your template? I am trying to accomplish this, but having trouble figuring out where to place it in the existing for-each loop.

Thanks!
Unknown said…
Sameer Can you please share rtf file if possibel?
Unknown said…
Can u share the rtf?
Maddy said…
Only use below code in
end loop tag

page
Maddy said…
This comment has been removed by the author.
Marriswamy said…
Hi Vetriselvan,

Can you please share template for this issue.

Thanks
Marrisamy
Unknown said…
Can you please share template to rayala.kranthi5@gmail.com

Popular posts from this blog

BIP Formatting

Repeat Table Header in all pages in BIP

Limit rows per page