I am creating an InfoPath 2013 form with C# to pull data from and upload data to SQL Server. As part of the process I had to create a "Select All" Checkbox for my reports list. However, if I use the "Select All" option and then commit the code I get a duplicate record entered. If I manually select all checkboxes I don't get any duplicates. I am brand new to InfoPath and C#. So please let me know if I'm missing anything.
I am doing this with XPathNodeIterator.
Is there a way to find and remove duplicates with xPath?
This is where I'm grabbing the reports from the Multi Selection Box:
XPathNodeIterator multirpt = root.Select("//my:Report_Name",
NamespaceManager); //Report Name needs to reset each time a new facility is added.
while (multirpt.MoveNext()) //multirpt is to loop through the selected reports to add them to the access table.
{