<?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: Access Secondary Datasource</title><link>https://www.infopathdev.com:443/forums/thread/50912.aspx</link><pubDate>Fri, 22 Jan 2010 12:36:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50912</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50912.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50912</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Please make sure that the SelectionNamespaces declaration towards the top of the .js file includes the &lt;b&gt;dfs&lt;/b&gt; namespace (prefix and URI), and add it if it&amp;#39;s not there.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Access Secondary Datasource</title><link>https://www.infopathdev.com:443/forums/thread/50910.aspx</link><pubDate>Fri, 22 Jan 2010 07:58:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50910</guid><dc:creator>Kasperdelasopa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50910.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50910</wfw:commentRss><description>&lt;p&gt;First, sorry for my bad english.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I want to access datafields in a secondary datasources out of a jscript Code. The name of the Datasource is &amp;quot;v0_getTravels&amp;quot; and i tried the following code:&lt;/p&gt;
&lt;p&gt;node = XDocument.DataObjects(&amp;quot;v0_getTravels).DOM.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:v0_getTravels&amp;quot;); &lt;/p&gt;
&lt;p&gt;id = node.selectSingleNode(&amp;quot;@travel_id&amp;quot;).nodeTypedValue;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;but&amp;nbsp;an error occours, that there is no Namespace defined called &amp;quot;dfs&amp;quot;&lt;/p&gt;
&lt;p&gt;where is my misstake?&lt;/p&gt;</description></item></channel></rss>