Oracle Analytics Publisher

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Conditional Page Break doesn't work for last record or when xml has only 1 record

Received Response
11
Views
1
Comments
User_XDSVG
User_XDSVG Rank 1 - Community Starter
edited Jan 7, 2025 1:30PM in Oracle Analytics Publisher

We are currently facing an issue with the output page splitting based on our defined conditions while using an RTF Template.

If we have 3 items, the page split functions correctly for the first 2 items, but fails for the 3rd one. Similarly, when there's only 1 item, we require the output to be split into 2 pages instead of just 1, which isn’t working as expected.

Tagged:

Answers

  • Riyaz Ali-Oracle
    Riyaz Ali-Oracle Rank 6 - Analytics & AI Lead

    You can try the below options:

    1. Use <?split-by-page-break:?> Tag

    Ensure that you're using the <?split-by-page-break:?> tag correctly in your RTF template.

    https://community.oracle.com/mosc/discussion/3502364/not-working-in-rtf-for-page-break

    2. Adjust Table Properties

    If your data is inside a table, try modifying the table row properties:

    Uncheck "Allow row to break across pages"

    Enable "Keep with next" and "Keep lines together"

    3. Use Conditional Page Breaks

    If the issue is with the third item not splitting correctly, you may need to add a conditional page break based on the number of items.

    https://community.oracle.com/customerconnect/discussion/850304/steps-to-add-page-break-and-print-bip-report-output-splitting-page-wise-through-rtf-template