Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Unable to repeat subform from coldfusion data

Avatar

Level 1

Hi, I need help with a PDF form where the subform does not repeat and show all of the rows which the coldfusion server passes to the form.

The checkbox in 'Binding' for 'Repeat Subform for Each Data Item' is checked with the min count value set as 1 and the max as 20 (my test data returns 17 rows), however, only the first row is shown in the PDF (???)

If I change the min count value to 17 then all of the data/rows are shown in the PDF (so I know the data is their and can be passed), however, I can't hardcode this value as it will be different for each record being processed.

Is there something simple that I'm missing to control the number of rows which the PDF will show?

Thanks in advance!

4 Replies

Avatar

Level 10

Hi,

I am not sure, as I have not worked with CF. However I suspect that it is not passing the data into the form in a structure that tells the form that it is repeating. If you open the form in Acrobat with the 17 rows populated and then Export the XML. You can then examine the XML structure and how it deals with repeating nodes.

<Table1>

     <Row1>

          ... data

     </Row1>

     <Row1>

          ... more data

     </Row1>

     <Row1>

          ... even more data

     </Row1>

</Table1>

Does that make sense?

Niall

Avatar

Level 1

Thanks Niall,

I will check that out to see if it helps me - thanks for the tip!

Avatar

Level 1

Hi Niall,

Looking at the xml it doesn't appear to really assist in diagnosing the problem, all I can see is a lot of repeating <Sect> for the data rows (not sure how these are getting controlled, nothing obvious in the code, e.g.:

<Sect>

<Div>DATA</Div>

<Div><?xml version="1.0"?><body xmlns="http://www.w3.org/1999/xhtml"><p>DATA</p></body></Div>

<Div>DATA</Div>

<Div></Div>

<Div></Div>

<Div></Div>

<Div></Div>

</Sect>

<Sect>

<Div>DATA</Div>

<Div><?xml version="1.0"?><body xmlns="http://www.w3.org/1999/xhtml"><p>DATA</p></body></Div>

<Div>DATA</Div>

<Div></Div>

<Div></Div>

<Div></Div>

<Div></Div>

</Sect>

Are you able to advise anything else I can check?

Many Thanks,

Lee

Avatar

Level 10

Hi Lee,

Here is an example: https://acrobat.com/#d=koJzxvWz0I147xeRlzCzXw.

It is a Table with two sections, each with a repeating row. If you explore this example, it may help you with your project.

Dreamweaver.png

Good luck,

Niall