Expand my Community achievements bar.

SOLVED

AEM Adaptive form repeatable section inside repeatable section by using schema not working properly

Avatar

Level 2

Hi Everyone,

I have created XDP contains a repeatable section inside the repeatable section. It works well in the LiveCycle Designer.

I have created an adaptive form by using XDP and XSD schema. when submitting the form all inner repeatable section shown in the first repeatable section.

Example:

I need a pdf file like below:

Parent 1

  Child 1

  Child 2

Parent 2

  Child 3

  Child 4

but when submitting it shown like

Parent 1

  Child 1

  Child 2

  Child 3

  Child 4

Parent 2

xsd schema:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Repeatable-Schema">
<xs:complexType>
<xs:sequence>
<xs:element name="Repeatable">
<xs:complexType>
<xs:sequence>
<xs:element name="Repeatable-page1">
<xs:complexType>
<xs:sequence>
<xs:element name="parent" type="parent" minOccurs="1" maxOccurs="100">
<xs:complexType>
<xs:sequence>
<xs:element name="ob-p5-tb1" type="xs:string"></xs:element>
<xs:element name="child" type="child" minOccurs="1" maxOccurs="100">
<xs:complexType>
<xs:sequence>
<xs:element name="ob-p5-tb2" type="xs:string"></xs:element>
<xs:element name="ob-p5-tb3" type="xs:string"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>

</xs:sequence>
</xs:complexType>
</xs:element>

</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>

</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

 

Please share if anyone has solution ASAP. 

Many Thanks!

Yugandhar

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi All,

I found a solution. We need to add relative data binding for the repeatable section.

Thanks

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

Hi All,

I found a solution. We need to add relative data binding for the repeatable section.

Thanks