Infopath repeating section allow data to be copied in new section

D

DJJA

I have fields in a repeating section that I would like to give the users the
option to copy into the next repeating section if the information is the same.
 
A

Anuma(GGK Tech)

Hi,

Can you add one check box under the Repeating sectio. and write code in the
check box on after change event. When you select the check box previous
rowwill copied in the present row.
 
D

DJJA

Hi...Thank you this is helpful but has now posed another question.

Since there will be multiple repeating sections added to the form I decided
to go with a button to perform the job of copying the previous data. However
what I have run into is that it will only copy the data from the original
section. For instance if I have added 3 section and clicked the button it
fills in the fields of all 3 the same as the first but if I need to change 1
of the fields in the next section for the following sections it changes it
bakc to the data from the original section.

How do I get the button to only copy the data from the last section added
rather than the original or first section?

Thanks
DJJA
 
S

Shiva (GGK Tech)

Hello,

How you are copying the data first section data to new section? If your
XPath you have to use last() function to get the last node from repeating
section.

XPath like: “\my:myFields\my:grop2\my:group3[last()]â€

Here is ‘group3; is repeating section node.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top