Hi All,
I am having some problems when creating 3 repeatable forms inside another reapeatable form. My XML structure is similar to this:
- <tasks>
<id>3139--13</id>
<startDate>2012-10-01T04:00:00Z</startDate>
<name>Tax Preparation Fees</name>
- <weekTable>
<weekNumber>49</weekNumber>
- <data>
<service>Accountant</service>
<servicePerformer>Alex</servicePerformer>
<hours>PT5H</hours>
<rate>45.000000</rate>
</data>
- <data>
<service>Fund Officer</service>
<servicePerformer>Malinda</servicePerformer>
<hours>PT3H</hours>
<rate>0.000000</rate>
</data>
</weekTable>
- <weekTable>
<weekNumber>40</weekNumber>
- <data>
<service>Fund Officer</service>
<servicePerformer>R. Major</servicePerformer>
<hours>PT4H</hours>
<rate>0.000000</rate>
</data>
- <data>
<service>Account Support</service>
<servicePerformer>Leslie</servicePerformer>
<hours>PT10H</hours>
<rate>0.000000</rate>
</data>
</weekTable>
** 2 more reapeatable structures similar to <weekTable>
</tasks>
I can make weekTable repeate based on the number of data items but I couldn't make the tasks repeate.
Is it possible to be done ?
Thanks a lot!
Felipe.
Solved! Go to Solution.
Views
Replies
Total Likes
Make sure the subWeek's parent subform is set to Flowed. Then bind that to $.tasks[*].
Kyle
Views
Replies
Total Likes
The only repeating nodes I'm seeing are weekTable and data. So create a repeatable subform, let's call it subWeek and another inside of it called subData. subWeek's binding expression would be $.tasks.weekTable[*] and subData's would be $.data[*].
I didn't see any 'tasks' related nodes. Let me know if that's what you mean.
Kyle
Hi Kyle,
I didn't explain it righ, sorry. The task also repeats. So, there is tasks, which repeats, inside it there is weektable, which repeats, and inside it there is data which also repeats.
Anyway, I tried to create a repeatable form inside another repeatable form with the bindings you mentioned but LCD doesn't let me.
I can check "Repeat Subform for each data item" in the subData form binding settings but not int the subWeek.
Felipe
Make sure the subWeek's parent subform is set to Flowed. Then bind that to $.tasks[*].
Kyle
Views
Replies
Total Likes
It worked ! Thanks a lot Kyle!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies