<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Data in a merged form - problem</title><link>https://www.infopathdev.com:443/forums/thread/4987.aspx</link><pubDate>Tue, 11 Oct 2005 17:05:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4987</guid><dc:creator>Superfly1611</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4987.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4987</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;I'm relatively new to Infopath but so far i've picked it up fairly quickly.&lt;br /&gt;However i'm now toying around with the merge data function and i'm having trouble designing a form that will specifically record merged data in the form that I desire.&lt;br /&gt;My form stores data that stores information on new clients.&lt;br /&gt;The XML produced by this form would look like this.....&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;myFields&amp;gt;&lt;br /&gt;   &amp;lt;newCustomerForm&amp;gt;&lt;br /&gt;      &amp;lt;employeeNo&amp;gt;0001&amp;lt;/employeeNo&amp;gt;&lt;br /&gt;      &amp;lt;customerDetails&amp;gt;&lt;br /&gt;         &amp;lt;custName&amp;gt;John&amp;lt;/custName&amp;gt;&lt;br /&gt;         &amp;lt;custAge&amp;gt;25&amp;lt;/custAge&amp;gt;&lt;br /&gt;      &amp;lt;/customerDetails&amp;gt;&lt;br /&gt;      &amp;lt;customerDetails&amp;gt;&lt;br /&gt;         &amp;lt;custName&amp;gt;Fred&amp;lt;/custName&amp;gt;&lt;br /&gt;         &amp;lt;custAge&amp;gt;28&amp;lt;/custAge&amp;gt;&lt;br /&gt;      &amp;lt;/customerDetails&amp;gt;&lt;br /&gt;   &amp;lt;/newCustomerForm&amp;gt;&lt;br /&gt;&amp;lt;/myFields&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;To explain the Infopath form it stores the employee number of the person filling in this form and then a repeating section for each new customer to enter into the system.&lt;br /&gt;&lt;br /&gt;The problem i'm having is that when I merge multiple produced forms that are stored in a sharepoint form library, the data isn't group quite as i'd expect.&lt;br /&gt;&lt;br /&gt;Say I have two forms that are both filled out by employee 0001 I get the following xml produced as part of the merge:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;myFields&amp;gt;&lt;br /&gt;   &amp;lt;newCustomerForm&amp;gt;&lt;br /&gt;      &amp;lt;employeeNo&amp;gt;0001&amp;lt;/employeeNo&amp;gt;&lt;br /&gt;      &amp;lt;customerDetails&amp;gt;&lt;br /&gt;         &amp;lt;custName&amp;gt;John&amp;lt;/custName&amp;gt;&lt;br /&gt;         &amp;lt;custAge&amp;gt;25&amp;lt;/custAge&amp;gt;&lt;br /&gt;      &amp;lt;/customerDetails&amp;gt;&lt;br /&gt;      &amp;lt;customerDetails&amp;gt;&lt;br /&gt;         &amp;lt;custName&amp;gt;Fred&amp;lt;/custName&amp;gt;&lt;br /&gt;         &amp;lt;custAge&amp;gt;28&amp;lt;/custAge&amp;gt;&lt;br /&gt;      &amp;lt;/customerDetails&amp;gt;&lt;br /&gt;   &amp;lt;/newCustomerForm&amp;gt;&lt;br /&gt;   &amp;lt;newCustomerForm&amp;gt;&lt;br /&gt;      &amp;lt;employeeNo&amp;gt;0001&amp;lt;/employeeNo&amp;gt;&lt;br /&gt;      &amp;lt;customerDetails&amp;gt;&lt;br /&gt;         &amp;lt;custName&amp;gt;Billy&amp;lt;/custName&amp;gt;&lt;br /&gt;         &amp;lt;custAge&amp;gt;20&amp;lt;/custAge&amp;gt;&lt;br /&gt;      &amp;lt;/customerDetails&amp;gt;&lt;br /&gt;      &amp;lt;customerDetails&amp;gt;&lt;br /&gt;         &amp;lt;custName&amp;gt;Dan&amp;lt;/custName&amp;gt;&lt;br /&gt;         &amp;lt;custAge&amp;gt;19&amp;lt;/custAge&amp;gt;&lt;br /&gt;      &amp;lt;/customerDetails&amp;gt;&lt;br /&gt;   &amp;lt;/newCustomerForm&amp;gt;&lt;br /&gt;&amp;lt;/myFields&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;This isn't how I expected the merge to look. I expected it to recognise that employee 0001 had filled out both forms and had so grouped his data together to produce XML that looked like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;lt;myFields&amp;gt;&lt;br /&gt;   &amp;lt;newCustomerForm&amp;gt;&lt;br /&gt;      &amp;lt;employeeNo&amp;gt;0001&amp;lt;/employeeNo&amp;gt;&lt;br /&gt;      &amp;lt;customerDetails&amp;gt;&lt;br /&gt;         &amp;lt;custName&amp;gt;John&amp;lt;/custName&amp;gt;&lt;br /&gt;         &amp;lt;custAge&amp;gt;25&amp;lt;/custAge&amp;gt;&lt;br /&gt;      &amp;lt;/customerDetails&amp;gt;&lt;br /&gt;      &amp;lt;customerDetails&amp;gt;&lt;br /&gt;         &amp;lt;custName&amp;gt;Fred&amp;lt;/custName&amp;gt;&lt;br /&gt;         &amp;lt;custAge&amp;gt;28&amp;lt;/custAge&amp;gt;&lt;br /&gt;      &amp;lt;/customerDetails&amp;gt;&lt;br /&gt;      &amp;lt;customerDetails&amp;gt;&lt;br /&gt;         &amp;lt;custName&amp;gt;Billy&amp;lt;/custName&amp;gt;&lt;br /&gt;         &amp;lt;custAge&amp;gt;20&amp;lt;/custAge&amp;gt;&lt;br /&gt;      &amp;lt;/customerDetails&amp;gt;&lt;br /&gt;      &amp;lt;customerDetails&amp;gt;&lt;br /&gt;         &amp;lt;custName&amp;gt;Dan&amp;lt;/custName&amp;gt;&lt;br /&gt;         &amp;lt;custAge&amp;gt;19&amp;lt;/custAge&amp;gt;&lt;br /&gt;      &amp;lt;/customerDetails&amp;gt;&lt;br /&gt;   &amp;lt;/newCustomerForm&amp;gt;&lt;br /&gt;&amp;lt;/myFields&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The general layout of the infopath form is like so:&lt;br /&gt;Everything is stored within a "Table with Title"&lt;br /&gt;Theres explanatory text underneath that and then there is a "section" that contains the form.&lt;br /&gt;The form consists of a text box for employee number and a "repeating section" for each customer's details.&lt;br /&gt;&lt;br /&gt;Is what I'm expecting actualy possible?&lt;br /&gt;If so can anyone see what i'm doing wrong with my infopath form?&lt;br /&gt;&lt;br /&gt;Many Thanks</description></item></channel></rss>