Oracle Analytics Publisher

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

Can I nest document-repeat-elementname in a pdf template

Received Response
21
Views
1
Comments

I came across a webpage from 2022 where they stated we cannot have more than one of these on a page and we cannot nest them.

Is that correct, as my use case is a complex PDF that I am using PDF Template for, where I would need to have a dozen or so repeatable blocks of elements and I believe I have a couple that would be nested.

Am I wasting my time?

If I am not, how can I reference them in my template?

I have G_1, which is the main query and it will have the title, date the report was filed.
In G_3 I have demographic information, such as name, sex, race, but I may have several records in G_3 that are under G_1, so in my PDF I need to be able to show these.

My only solution right now is a unique name for each column in G_3 and then I can refer to them in the name field of the PDF text field, but I don't know how to pass in the data from G_3 to document-repeat-elementname.

Tagged:

Answers

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

    Possible Workarounds you can try:

    1. Use Separate Repeating Groups

    Instead of nesting, try structuring your data so that each repeatable block is independent.
    You may need to flatten the data structure before passing it into the template.

    2. Use RTF Templates Instead

    If nesting is essential, consider switching to RTF templates, which allow more flexibility in handling nested repeating groups.

    3. Preprocess Data Before Passing to the PDF Template

    If you can manipulate the data before it reaches the template, you might be able to structure it in a way that avoids nesting while still achieving the desired output.