<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Browse SharePoint DataConnection</title><link>https://www.infopathdev.com:443/forums/thread/28422.aspx</link><pubDate>Wed, 30 Apr 2008 14:41:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28422</guid><dc:creator>Dromont</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28422.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=28422</wfw:commentRss><description>&lt;p&gt;Every time the form is opened the data of the SP DataConnection is retrived!&lt;br /&gt;But no problem, because I found the error! I have to add the namespace by this method: setProperty! Now it works!&lt;/p&gt;</description></item><item><title>Re: Browse SharePoint DataConnection</title><link>https://www.infopathdev.com:443/forums/thread/28419.aspx</link><pubDate>Wed, 30 Apr 2008 14:33:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28419</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28419.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=28419</wfw:commentRss><description>&lt;p&gt;You need to Query the SP data connection so that their is some data to browse.&lt;/p&gt;
&lt;p&gt;The same way you have to Query the SQL one.&lt;/p&gt;
&lt;p&gt;That is why the error says there is not an object.&lt;/p&gt;</description></item><item><title>Browse SharePoint DataConnection</title><link>https://www.infopathdev.com:443/forums/thread/28417.aspx</link><pubDate>Wed, 30 Apr 2008 14:00:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28417</guid><dc:creator>Dromont</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28417.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=28417</wfw:commentRss><description>&lt;p&gt;Hi To everyone! I have a question for&amp;nbsp;you! This is my first post but I know this site from 2/3 months and I know it is very cool!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In my infopath document I have 2 secondary data connection:&lt;br /&gt;1) &amp;quot;Procedura&amp;quot; a&amp;nbsp; data connection by SQL Server&lt;br /&gt;2) &amp;quot;testa_doc&amp;quot; a dtata connection by SharePoint Site&lt;/p&gt;
&lt;p&gt;I write this jscript code to query and browse the first data connection and it works:&lt;br /&gt;&lt;br /&gt;objDataObject = XDocument.DataObjects(&amp;quot;Procedura&amp;quot;);&lt;br /&gt;objDataObject.QueryAdapter.Command = &amp;quot;execute dbo.scegli_Versione &amp;quot; + &amp;quot;&amp;#39;&amp;quot; + CP5 + &amp;quot;&amp;#39;, &amp;quot; + &amp;quot;&amp;#39;&amp;quot; + CP6 + &amp;quot;&amp;#39;&amp;quot;;&lt;br /&gt;objDataObject.Query();&lt;br /&gt;ObjDataObject = null;&lt;br /&gt;&lt;br /&gt;var strXML;&lt;br /&gt;strXML = XDocument.DataObjects(&amp;quot;Procedura&amp;quot;).DOM.xml;&lt;br /&gt;var xmldoc = new ActiveXObject(&amp;quot;Msxml2.DOMDocument&amp;quot;);&lt;br /&gt;xmldoc.loadXML(strXML); &lt;br /&gt;try&amp;nbsp; { var CP7 = xmldoc.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:Procedura/@fdProceduraVersione&amp;quot;).text; }&lt;br /&gt;catch(e)&amp;nbsp;{ XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:VersioneNull&amp;quot;).text = 1; } &lt;br /&gt;&lt;br /&gt;So, i write this jscript code to browse the&amp;nbsp;other data connection (I dont need to query&amp;nbsp;it) &amp;nbsp;and it doesent work:&lt;br /&gt;var strXML;&lt;br /&gt;strXML = XDocument.DataObjects(&amp;quot;testa_doc&amp;quot;).DOM.xml;&lt;br /&gt;var xmldoc = new ActiveXObject(&amp;quot;Msxml2.DOMDocument&amp;quot;);&lt;br /&gt;xmldoc.loadXML(strXML);&lt;br /&gt;var CP7 = xmldoc.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/dfs:testa_doc/@ID&amp;quot;).text;&lt;br /&gt;XDocument.UI.Alert(CP7);&lt;br /&gt;&lt;br /&gt;The error is on the line&amp;nbsp; &lt;br /&gt;var CP7 = xmldoc.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/dfs:testa_doc/@ID&amp;quot;).text;&lt;br /&gt;Object required.&lt;br /&gt;&lt;br /&gt;Could you help me? &lt;br /&gt;Thank you&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>