Expand my Community achievements bar.

Concatenating data in a repeating section of a dynamic form.

Avatar

Former Community Member
I am creating a dynamic XPD template, based on an XML file with a number of repeating sections. The issue that I am currently struggling with is the need to concatenate some fields and display them within a repeating section of the document. I can get repeating section to work and I can concatenate data and display it, but I am unable to do both at the same time.



When I follow the JavaScript example of concatenating fields in the Dunning Notice XPD template, the data shows up in the repeating section, but it never changes - only the data from the first instance of the repeating section is displayed.



In the example data below, I want daysArrears and level to display in the same field separated by a slash, such as 224/3



<?xml version="1.0" encoding="UTF-8" ?>

<transaction xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">

<document>

<docNum>205500005</docNum>

<docDate>2005-06-06</docDate>

<dueDate>2005-06-06</dueDate>

<daysArrears>224</daysArrears>

<level>3</level>

<amount>12000.00</amount>

</document>

<document>

<docNum>215000004</docNum>

<docDate>2005-07-21</docDate>

<dueDate>2005-09-10</dueDate>

<daysArrears>128</daysArrears>

<level>3</level>

<amount>1500.65</amount>

</document>

<document>

<docNum>228700002</docNum>

<docDate>2005-10-19</docDate>

<dueDate>2005-11-03</dueDate>

<daysArrears>74</daysArrears>

<level>3</level>

<amount>12000.00</amount>

</document>

</transaction>



How would I go about concatenating the data and displaying it correctly? An y help would be appreciated. Thanks.
0 Replies