Display multiple tables based on values from xml

Avatar

Avatar
Validate 1
Level 1
mankuu33664440
Level 1

Likes

0 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
mankuu33664440
Level 1

Likes

0 likes

Total Posts

13 posts

Correct reply

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

15-12-2020

Hi, I'm new to livecycle designer. 

We have a requirement of displaying multiple tables from the xml values. 

 

<member_table num=1>

     <name>

    <skills>

        <SKILL1>

        <SKILL2>

        <SKILL3>

   </skills>

</member_table>

<member_table num=2>

     <name>

     <skills>

        <SKILL1>

        <SKILL2>

   </skills>

</member_table>

 

For each member number,

1. I should display member table which has one row with name

2. I should display skill table with all skills listed (this differs from member to member) 

 

 

Approach :

Built member table and skill table in a subform, and used action builder to repeat the subform for every member. I am able to get member table correctly as it has only one row. But skill table is getting with only one row, and first value is getting filled.

 

Please help on how to retrieve all the skills into all the skills tables based on member number. 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

165 likes

Total Posts

371 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
View profile

Avatar
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

165 likes

Total Posts

371 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
View profile
Kosta_Prokopiu1
Employee

16-12-2020

OK, here we go: https://documentcloud.adobe.com/link/track?uri=urn:aaid:scds:US:0b9769f5-5a7c-489f-99fa-9de489d4a89b

The structure of the data is vital for success here. See if you can adapt your data accordingly. Check also the Binding tab under Object.

I hope that helps - it is only a quick sample - you may have to adapt to your data and real form....

Kosta_Prokopiu1_0-1608139984306.png

 

 

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 1
mankuu33664440
Level 1

Likes

0 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
mankuu33664440
Level 1

Likes

0 likes

Total Posts

13 posts

Correct reply

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

16-12-2020

mankuu33664440_0-1608132774657.png

 

Avatar

Avatar
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

165 likes

Total Posts

371 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
View profile

Avatar
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

165 likes

Total Posts

371 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
View profile
Kosta_Prokopiu1
Employee

16-12-2020

There is a reason for that 🙂

You have created a hierarchical data structure and want to consume the data in more than one dynamic subform/table construct. That does not work because the data is gone through once (your member table) and then there is no "Reset" so your skills table are out of data. For that to work you could restructure your XML data like so:

 

<root>
    <member_table>
        <member>
            <number>1</number>
            <name>Name 1</name>
        </member>
        <member>
            <number>2</number>
            <name>Name 2</name>
        </member>
    </member_table>

    <skills_tables>
        <skill_table>
            <number>1</number>
            <name>if required in the skill table</name>
            <skills>
                <skill1>Skill 1</skill1>
                <skill2>Skill 2</skill2>
                <skill3>Skill 3</skill3>
            </skills>
        </skill_table>
        <skill_table>
            <number>2</number>
            <name>if required in the skill table</name>
            <skills>
                <skill1>Skill 1</skill1>
                <skill2>Skill 2</skill2>
            </skills>
        </skill_table>
    </skills_tables>
</root>

 

Avatar

Avatar
Validate 1
Level 1
mankuu33664440
Level 1

Likes

0 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
mankuu33664440
Level 1

Likes

0 likes

Total Posts

13 posts

Correct reply

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

15-12-2020

If my xml has 10 members data, then I should be displaying all 10 members member tables and 10 skill tables.

 

Please give me some idea on how to further implement this

 

@