Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to bind same xml data in different repeating elements?

Avatar

Avatar
Validate 1
Level 1
Wu_Xin
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Wu_Xin
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Wu_Xin
Level 1

21-03-2016

hi there,

I have a question regard bind same xml data in different repeating elements.

I have a xml like:


<Table>


       <Item>Item 1</Item>


       <Data>Data 1</Data>


</Table>


<Table>


       <Item>Item 2</Item>


       <Data>Data 2</Data>


</Table>




in the PDF I want to show a summary first and then all the items/data in tables.

Summary:

     Item1

     Item2

Details:

     Item1

     Data1

     Item2

     Data2

the number of items is dynamic, and I found that if I use the binding $.Table[*]. in both places, the second will be empty (no matter whether summary or detail comes in secondly.), it seems to me that the [*] in binding, will be marked as "used" when it comes in a repeatable subform, and will not show up again later.
I also found that when the binding does not end with [*], it will not be "used" and works alright. but it seems tricky and does not work in all our cases. so I'd like to see if someone can help to revel the logic behind this and how could I make the [*] element show up in 2 places.


thanks in advance.


btw, How could I upload a sample XDP here? I'd like to use a sample to better illustrate this case

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
Wu_Xin
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Wu_Xin
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Wu_Xin
Level 1

09-05-2016

hi All

I found the answer myself

manually add below attribute to the root subform in xml source. it can slove this case, however it interferes some function of instance control.

<subform name="Root" layout="tb" locale="en_US" restoreState="auto" mergeMode="matchTemplate">