Hi,
As I understand, you want to add repeating section through rules or programmatically in InfoPath 2010.
You could add the rule to copy repeat section in the InfoPath.
You could set the copy rule to copy repeat section and modify the copy rule to decide which row to copy in the Xml file. For more detailed information, you could refer to the article below.
The article below is about InfoPath how to copy a repeating section using rules.
http://johnliu.net/blog/2012/2/5/infopath-how-to-copy-a-repeating-section-using-rules.html
More reference:
The article below is about 4 Ways to programmatically add a row to a repeating table in InfoPath. It also can work in InfoPath 2010.
http://www.bizsupportonline.net/infopath2007/4-way-programmatically-add-row-repeating-table.htm
Best regards,
Sara Fan
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
tnmff@microsoft.com.
