I'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' XML path written in so I'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's instead of it'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?
InfoPath Field structure:
/my:myFields/my:group1/my:group2/my:attachmentTable/my:attachment
/my:myFields/my:group1/my:group2/my:linksTable/my:linksURL
group2 is a repeating table
attachmentTable is a repeating table
linksTable is a repeating table
My code moves the attachment in the repeating table into a document library then writes the url into the linksTable. But it isn't working for this one section because of group2. When a new row is created, I believe my code can't find the new row's table.
Any help would be greatly appreciated!