<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29846.aspx</link><pubDate>Thu, 26 Jun 2008 21:38:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29846</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29846.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29846</wfw:commentRss><description>&lt;p&gt;Well, the type mismatch is because your second line is selecting a node, and then you are trying to set a text field to a node... thus, they are not the same type. I am pretty much stumped at this point -- I had thought your problem would be due to the xpath (&amp;quot;EmployeeName_Full&amp;quot;) being incorrect, but really, since your first block of code works fine for all the fields except &amp;quot;EmployeeName_Full&amp;quot; and you aren&amp;#39;t using the attribute symbol (&amp;quot;@&amp;quot;) in any of the rest of them, I am afraid I am out of ideas.&lt;/p&gt;</description></item><item><title>Re: Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29842.aspx</link><pubDate>Thu, 26 Jun 2008 20:31:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29842</guid><dc:creator>mmarvi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29842.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29842</wfw:commentRss><description>&lt;p&gt;I used this&lt;/p&gt;
&lt;p&gt;nSharedItem.selectSingleNode(&amp;quot;@EmployeeName_Full&amp;quot;).text&lt;/p&gt;
&lt;p&gt;And still got the error.&lt;/p&gt;
&lt;p&gt;I tried this, on a wild hunch&lt;/p&gt;
&lt;p&gt;nSharedItem.selectSingleNode(&amp;quot;@EmployeeName_Full&amp;quot;)&lt;/p&gt;
&lt;p&gt;And got type mismatch?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any Ideas?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;M&lt;/p&gt;</description></item><item><title>Re: Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29840.aspx</link><pubDate>Thu, 26 Jun 2008 20:12:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29840</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29840</wfw:commentRss><description>&lt;p&gt;Okay, they are attributes. Try this &amp;quot;@EmployeeName_Full&amp;quot;&lt;/p&gt;</description></item><item><title>Re: Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29839.aspx</link><pubDate>Thu, 26 Jun 2008 19:45:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29839</guid><dc:creator>mmarvi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29839.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29839</wfw:commentRss><description>&lt;p&gt;Sorry, IP 2003&lt;/p&gt;
&lt;p&gt;M&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Would it help to extract the files and review the xsd file?&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;xsd:schema elementFormDefault=&amp;quot;qualified&amp;quot; targetNamespace=&amp;quot;&lt;a href="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"&gt;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&lt;/a&gt;&amp;quot; xmlns:xsd=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema"&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; xmlns:dfs=&amp;quot;&lt;a href="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"&gt;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&lt;/a&gt;&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;xsd:element name=&amp;quot;myFields&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:complexType&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:sequence&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:element name=&amp;quot;dataFields&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:complexType&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:sequence&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:element name=&amp;quot;Staff_Profiles&amp;quot; minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;unbounded&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:complexType&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:attribute name=&amp;quot;EmployeeName_Full&amp;quot; type=&amp;quot;xsd:string&amp;quot;&amp;gt;&amp;lt;/xsd:attribute&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:attribute name=&amp;quot;EmployeeName_SP&amp;quot; type=&amp;quot;xsd:string&amp;quot;&amp;gt;&amp;lt;/xsd:attribute&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:attribute name=&amp;quot;EmployeeAddressLine1&amp;quot; type=&amp;quot;xsd:string&amp;quot;&amp;gt;&amp;lt;/xsd:attribute&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:attribute name=&amp;quot;EmployeeAddressLine2&amp;quot; type=&amp;quot;xsd:string&amp;quot;&amp;gt;&amp;lt;/xsd:attribute&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:attribute name=&amp;quot;EmployeeAddressCity&amp;quot; type=&amp;quot;xsd:string&amp;quot;&amp;gt;&amp;lt;/xsd:attribute&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:attribute name=&amp;quot;EmployeeAddressState_Region&amp;quot; type=&amp;quot;xsd:string&amp;quot;&amp;gt;&amp;lt;/xsd:attribute&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:attribute name=&amp;quot;EmployeeTitle&amp;quot; type=&amp;quot;xsd:string&amp;quot;&amp;gt;&amp;lt;/xsd:attribute&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsd:attribute name=&amp;quot;EmployeeEmailAddress&amp;quot; type=&amp;quot;xsd:string&amp;quot;&amp;gt;&amp;lt;/xsd:attribute&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xsd:complexType&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xsd:element&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xsd:sequence&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xsd:complexType&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xsd:element&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xsd:sequence&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/xsd:complexType&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/xsd:element&amp;gt;&lt;br /&gt;&amp;lt;/xsd:schema&amp;gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29833.aspx</link><pubDate>Thu, 26 Jun 2008 18:57:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29833</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29833.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29833</wfw:commentRss><description>&lt;p&gt;Are you using IP 2007? Could you rightclick EmployeeName_Full and copy the xpath?&lt;/p&gt;</description></item><item><title>Re: Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29822.aspx</link><pubDate>Thu, 26 Jun 2008 17:49:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29822</guid><dc:creator>mmarvi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29822.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29822</wfw:commentRss><description>&lt;p&gt;&lt;img style="WIDTH:270px;HEIGHT:455px;" height="455" src="http://www.marvi.org/path.bmp" width="270" alt="" /&gt;&lt;/p&gt;</description></item><item><title>Re: Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29820.aspx</link><pubDate>Thu, 26 Jun 2008 17:19:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29820</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29820.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29820</wfw:commentRss><description>&lt;p&gt;Do you mind posting a screen shot that shows your secondary data source schema from the taskpane in InfoPath?&lt;/p&gt;</description></item><item><title>Re: Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29814.aspx</link><pubDate>Thu, 26 Jun 2008 16:44:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29814</guid><dc:creator>mmarvi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29814.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29814</wfw:commentRss><description>&lt;p&gt;This is wierd,&lt;/p&gt;
&lt;p&gt;I added&amp;nbsp;&amp;nbsp;XDocument.UI.Alert(groupfield.hasChildNodes()); &lt;/p&gt;
&lt;p&gt;Just before if (groupfield.hasChildNodes()) , and get a string of falses!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could this be because I am using a Secondary Data Source?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;var oSharePointDom = XDocument.GetDOM(&amp;quot;Staff Profiles&amp;quot;);&lt;br /&gt;oSharePointDom.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;#39;xmlns:dfs=&amp;quot;&lt;a href="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot;&amp;#39;"&gt;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot;&amp;#39;&lt;/a&gt;);&lt;br /&gt;var group = oSharePointDom.selectNodes(&amp;quot;/dfs:myFields/dfs:dataFields/dfs:Staff_Profiles&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while( (groupfield = group.nextNode()) != null ){&lt;br /&gt;&amp;nbsp;&amp;nbsp;XDocument.UI.Alert(groupfield.hasChildNodes());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (groupfield.hasChildNodes()) { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var i = 0 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; groupfield.childNodes.length; i++){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XDocument.UI.Alert(groupfield.childNodes[i].nodeName); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;M&lt;/p&gt;</description></item><item><title>Re: Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29811.aspx</link><pubDate>Thu, 26 Jun 2008 16:20:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29811</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29811.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29811</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;I did this to iterate and show values for fields under a group:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;var group = XDocument.DOM.selectNodes(&amp;quot;/my:myFields/my:group1/my:group2&amp;quot;); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while( (groupfield = group.nextNode()) != null ){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (groupfield.hasChildNodes()) { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var i = 0&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (var i = 0; i &amp;lt; groupfield.childNodes.length; i++){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XDocument.UI.Alert(groupfield.childNodes[i].nodeName); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This also pops up #text for the text content, which you can ignore, but every other alert will show you a field name.&lt;/p&gt;</description></item><item><title>Re: Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29791.aspx</link><pubDate>Thu, 26 Jun 2008 13:19:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29791</guid><dc:creator>mmarvi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29791.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29791</wfw:commentRss><description>&lt;p&gt;Is there any way to loop through all the column names of &lt;em&gt;nSharedItem?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;That may help me with the syntax of whats between the ().&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;M&lt;/p&gt;</description></item><item><title>Re: Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29777.aspx</link><pubDate>Wed, 25 Jun 2008 23:34:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29777</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29777.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29777</wfw:commentRss><description>&lt;p&gt;You have the object in the first bit: &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;clone.selectSingleNode(&amp;quot;my:EmployeeName_Full&amp;quot;).text&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;But I mean this line isn&amp;#39;t returning an object: &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;nSharedItem.selectSingleNode(&amp;quot;EmployeeName_Full&amp;quot;).text&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;exactly for the reason you state, that you can enter text instead of the line above and not get an error. That&amp;#39;s why I was wondering about it being the xpath in &lt;em&gt;nSharedItem.selectSingleNode(&amp;quot;EmployeeName_Full&amp;quot;).text.&lt;/em&gt;&amp;nbsp; Have you tried popping up an alert box to show the value of that node, or debugging? And I agree -- it is always hard when you are &lt;strong&gt;&lt;em&gt;really &lt;/em&gt;&lt;/strong&gt;close to getting something and one last thing isn&amp;#39;t behaving.&lt;/p&gt;</description></item><item><title>Re: Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29776.aspx</link><pubDate>Wed, 25 Jun 2008 23:14:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29776</guid><dc:creator>mmarvi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29776.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29776</wfw:commentRss><description>&lt;p&gt;It&amp;#39;s just a regular text field.&lt;/p&gt;
&lt;p&gt;I have the object, because, if I comment out the offending lines, and set the clone to add straight text (&amp;quot;&amp;quot;PP&amp;quot;) I end up with a string of records with &amp;quot;PP&amp;quot;.&lt;/p&gt;
&lt;p&gt;This is depressing.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;M&lt;/p&gt;</description></item><item><title>Re: Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29775.aspx</link><pubDate>Wed, 25 Jun 2008 22:35:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29775</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29775.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29775</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;Your object required error (and your test where you replace the problematic line) indicates that &lt;em&gt;nSharedItem.selectSingleNode(&amp;quot;EmployeeName_Full&amp;quot;).text&lt;/em&gt;&amp;nbsp;is returning null, hence there is no object. Usually when I have that issue it is because I have a mistake in my xpath pointing to the node I want -- incorrect spelling or capitalization or something. I&amp;#39;m sure you have checked that already. Is there anything special about that field in your list? Is it just a regular text field? &lt;/p&gt;</description></item><item><title>Copy Secondary Data source to Main</title><link>https://www.infopathdev.com:443/forums/thread/29771.aspx</link><pubDate>Wed, 25 Jun 2008 19:30:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29771</guid><dc:creator>mmarvi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29771.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29771</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve found code to do the captioned job, but I have some kind of problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is my code&lt;/p&gt;
&lt;p&gt;// Get a copy of the main DOM node.&lt;br /&gt;var clone = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:Table_StaffProfiles&amp;quot;).cloneNode(true);&lt;/p&gt;
&lt;p&gt;// Clear the main DOM nodes.&lt;br /&gt;XDocument.DOM.selectNodes(&amp;quot;/my:myFields/my:Table_StaffProfiles&amp;quot;).removeAll();&lt;/p&gt;
&lt;p&gt;clone.selectSingleNode(&amp;quot;my:EmployeeName_Full&amp;quot;).text = &amp;quot;x&amp;quot;;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeName_SP&amp;quot;).text = &amp;quot;&amp;quot;;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeAddressLine1&amp;quot;).text = &amp;quot;&amp;quot;;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeAddressLine2&amp;quot;).text = &amp;quot;&amp;quot;;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeAddressCity&amp;quot;).text = &amp;quot;&amp;quot;;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeAddressState_Region&amp;quot;).text = &amp;quot;&amp;quot;;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeTitle&amp;quot;).text = &amp;quot;&amp;quot;;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeEmailAddress&amp;quot;).text = &amp;quot;&amp;quot;;&lt;br /&gt;XDocument.DOM.selectSingleNode(&amp;quot;my:myFields&amp;quot;).appendChild(clone.cloneNode(true));&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;// Get the SharePointList DOM&lt;br /&gt;var oSharePointDom = XDocument.GetDOM(&amp;quot;Staff Profiles&amp;quot;);&lt;br /&gt;// Setup the Namespaces&lt;br /&gt;oSharePointDom.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;#39;xmlns:dfs=&amp;quot;&lt;a href="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot;&amp;#39;"&gt;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot;&amp;#39;&lt;/a&gt;);&lt;br /&gt;// Loop through all of the items in the SharePoint List&lt;br /&gt;var nlSharedItems = oSharePointDom.selectNodes(&amp;quot;/dfs:myFields/dfs:dataFields/dfs:Staff_Profiles&amp;quot;);&lt;/p&gt;
&lt;p&gt;while( (nSharedItem = nlSharedItems.nextNode() ) != null )&lt;br /&gt;{&lt;br /&gt;// Create a new row from the sample&lt;/p&gt;
&lt;p&gt;var clone = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:Table_StaffProfiles&amp;quot;).cloneNode(true);&lt;br /&gt;&lt;em&gt;clone.selectSingleNode(&amp;quot;my:EmployeeName_Full&amp;quot;).text = nSharedItem.selectSingleNode(&amp;quot;EmployeeName_Full&amp;quot;).text;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeName_SP&amp;quot;).text = nSharedItem.selectSingleNode(&amp;quot;EmployeeName_SP&amp;quot;).text;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeAddressLine1&amp;quot;).text = nSharedItem.selectSingleNode(&amp;quot;EmployeeAddressLine1&amp;quot;).text;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeAddressLine2&amp;quot;).text = nSharedItem.selectSingleNode(&amp;quot;EmployeeAddressLine2&amp;quot;).text;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeAddressCity&amp;quot;).text = nSharedItem.selectSingleNode(&amp;quot;EmployeeAddressCity&amp;quot;).text;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeAddressState_Region&amp;quot;).text = nSharedItem.selectSingleNode(&amp;quot;mployeeAddressState_Region&amp;quot;).text;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeTitle&amp;quot;).text = nSharedItem.selectSingleNode(&amp;quot;EmployeeTitle&amp;quot;).text;&lt;br /&gt;clone.selectSingleNode(&amp;quot;my:EmployeeEmailAddress&amp;quot;).text = nSharedItem.selectSingleNode(&amp;quot;EmployeeEmailAddress&amp;quot;).text;&lt;br /&gt;&lt;/em&gt;XDocument.DOM.selectSingleNode(&amp;quot;my:myFields&amp;quot;).appendChild(clone.cloneNode(true));&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;I get an Error on the Italic Lines. It seems to be &lt;em&gt;nSharedItem.selectSingleNode(&amp;quot;EmployeeName_Full&amp;quot;).text &lt;/em&gt;causing the problem.&lt;/p&gt;
&lt;p&gt;The error is &lt;/p&gt;
&lt;p&gt;The following error occurred:&lt;/p&gt;
&lt;p&gt;Object required&lt;br /&gt;File:script.js&lt;br /&gt;Line:186&amp;nbsp;is the first italic line. If I replace the &lt;em&gt;nSharedItem.selectSingleNode(&amp;quot;EmployeeName_Full&amp;quot;).text &lt;/em&gt;with plain text, I get no problem, and it iterates through the whole data set.&lt;/p&gt;
&lt;p&gt;What am I doing wrong?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mo&lt;/p&gt;</description></item></channel></rss>