copying data from Parent Repeating Section to Child Repeating section in infopath

1k views Asked by At

I am having an issue with the repeating section. The scenario is i am having a text box inside a repeating section and a checkbox outside a repeating scetion. I want the value of the textbox to be copied when the repeating section is repeated. This has to be done when i click teh checkbox which is outside the repeating section. I used Xpath formula for this. it works fine if i just repeat the section but not when i click the checkbox which is outside the repeating section.

The formula is as follows

../preceding-sibling::my:RepeatingSection[
   count(../preceding-sibling::my:RepeatingSection)
    = count(current()/../preceding-sibling::my:RepeatingSection)
    - last()
]/my:TextBox

This formula works fine for a single repeating section. But i also have another problem if there are nested sections. for example if i have a repeating section and another repeating section inside it and the textbox inside the nested section. The problem is writing the correct path to navigate within the sections.

Can anyone please help me with this issue

Thanx in advance :)

0

There are 0 answers