Expand my Community achievements bar.

SOLVED

Designer: repeating subforms over same xsd nodelist.

Avatar

Level 1

I have a

Members Nodelist with PersonalInfo, EmploymentInfo, IncomeSources etc..

like

<Application>

     <Member>

          <PersonalInfo>

               <Name>New Designer 707</Name>

               ......

          </PersonalInfo>

          <EmploymentInfo>

               <Position>Developer</Position>

               <StartDate>....</StartDate>

               .......

          </EmploymentInfo>

          ...........................

          ...........................

     </Member>

     <Member>

          <PersonalInfo>

               <Name>New Designer 707</Name>

               ......

          </PersonalInfo>

          <EmploymentInfo>

               <Position>Developer</Position>

               <StartDate>....</StartDate>

               .......

          </EmploymentInfo>

          ...........................

          ...........................

       </Member>

</Application>

In designer first page I have to show the personal info of all members (I am using subform in subform to repeat for all members)

Then I have few static no-repeat data pages.

Now in the next page I need to show the employment info of all members (I am using subform in subform to repeat for all members)

Here it is not showing any data. If I remove the first member element iteration, then it will show. Seems like I cant iterate multiple times over the same nodelist.

Could anybody please help me to solve this issue?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

This is a limitation with the binding that two repeating subforms can't bind to the same data.  There is a work around explained by John Brinkman in his blog. http://blogs.adobe.com/formfeed/2010/05/duplicating_subform_structures.html

Regards

Bruce

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

This is a limitation with the binding that two repeating subforms can't bind to the same data.  There is a work around explained by John Brinkman in his blog. http://blogs.adobe.com/formfeed/2010/05/duplicating_subform_structures.html

Regards

Bruce

Avatar

Level 2

Hi Bruce,

This is exactly what I want my Form looks something like below, the French subform is an exact duplicate of the english subform. The ItemBody subform is the repeating subform it works Ok in the first page but in the second page cannot see the items.

Form Overview2.jpg

My XML is something like below

<Invoice>

          <InvoiceHeader>

          </InvoiceHeader>

          <InvoiceDetail>

                         <ListOfInvoiceItemDetail>

                                        <InvoiceItemDetail>

                                                       <InvoiceBaseItemDetail>

                                                                      <LineItemNum>

                                                                                      <BuyerLineItemNum>1</BuyerLineItemNum>

                           <SellerLineItemNum>1</SellerLineItemNum>

                                                                      </LineItemNum>

                                                       </InvoiceBaseItemDetail>

                                        </InvoiceItemDetail>

            <InvoiceItemDetail>

                 <InvoiceBaseItemDetail>

                      <LineItemNum>

                           <BuyerLineItemNum>2</BuyerLineItemNum>

                           <SellerLineItemNum>2</SellerLineItemNum>

                      </LineItemNum>

                 </InvoiceBaseItemDetail>

             </InvoiceItemDetail>

  <InvoiceSummary>

          </InvoiceSummary>

</Invoice>

The Binding I have in the first occurence of Subform ItemBody is InvoiceDetail.ListOfInvoiceItemDetail.InvoiceItemDetail[*]which works perfectly fine.

I have used the script in calculate event for ItemBody in the French Subform by making a change to the line as below

match(this, English.dataNode.resolveNodes("$.*"));

But I cannot see any change in my output, leaving the binding for ItemBody to None is not giving me any results.

Appreciate your inputs.

Regards,

Harry