<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>InfoPath 2010 Attachment repeating table within a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/101027.aspx</link><pubDate>Thu, 05 Feb 2015 16:46:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101027</guid><dc:creator>Coolda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101027.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=101027</wfw:commentRss><description>I&amp;#39;m looking for some advice on custom coding an InfoPath 2010 form. 

I was looking for a way to remove multiple attachments that are in a repeating table from the form and place it into a document library while creating a link to the document on the form itself. 

I was able to accomplish this part however on the form, there is an attachment repeating table within a repeating table.

In my code, I have the tables&amp;#39; XML path written in so I&amp;#39;m having an issue with the attachment repeating table within a repeating table because I am unable to dictate which table it should be written. When there are 2 rows and each row has an attachment repeating table with the same name it just writes to the first row&amp;#39;s instead of it&amp;#39;s correct row where the attachment was attached.

Has anyone ran into this issue or know how the naming changes when it is in a new row?



&lt;br /&gt;&lt;br /&gt;
InfoPath Field structure:
&lt;br /&gt;&lt;br /&gt;
/my:myFields/my:group1/my:group2/my:attachmentTable/my:attachment
&lt;br /&gt;&lt;br /&gt;
/my:myFields/my:group1/my:group2/my:linksTable/my:linksURL
&lt;br /&gt;&lt;br /&gt;
group2 is a repeating table
&lt;br /&gt;&lt;br /&gt;
attachmentTable is a repeating table
&lt;br /&gt;&lt;br /&gt;
linksTable is a repeating table

&lt;br /&gt;&lt;br /&gt;
My code moves the attachment in the repeating table into a document library then writes the url into the linksTable. But it isn&amp;#39;t working for this one section because of group2. When a new row is created, I believe my code can&amp;#39;t find the new row&amp;#39;s table.



Any help would be greatly appreciated!</description></item></channel></rss>