<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Accessing the queryFields on a secondary connectio</title><link>https://www.infopathdev.com:443/forums/thread/13392.aspx</link><pubDate>Wed, 27 Jul 2005 07:48:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13392</guid><dc:creator>bobstery</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13392.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13392</wfw:commentRss><description>Many Thanks for the quick reply, your response was correct.&lt;br /&gt;</description></item><item><title>Re: Accessing the queryFields on a secondary connectio</title><link>https://www.infopathdev.com:443/forums/thread/13391.aspx</link><pubDate>Tue, 26 Jul 2005 18:40:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13391</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13391</wfw:commentRss><description>You need to set the namespaces for each DOM you use. InfoPath does this for you at the top of your script.js file. You can use that as an example of what you need to do to set the namespaces for your "precallScheduled" DOM. The namespaces must be set in order for you to effectively perform node selections on that DOM.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>Accessing the queryFields on a secondary connectio</title><link>https://www.infopathdev.com:443/forums/thread/12509.aspx</link><pubDate>Tue, 26 Jul 2005 11:09:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12509</guid><dc:creator>bobstery</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12509.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12509</wfw:commentRss><description>I have 3 web services as secondary connections that I wish to call, however I need to set the paramaters (accessed by somehow changing the queryField elements of the data connection) before querying the web service.  &lt;br /&gt;&lt;br /&gt;I can access the DOM of the secondary connection, however I cannot set the individual parameters.  When viewing the doms text (by using &lt;b&gt;XDocument.GetDOM("precallScheduled").text &lt;/b&gt;in the Jscript) I can see the sample data I set when first creating the connection e.g. 1testamfalse.&lt;br /&gt;&lt;br /&gt;If this was split down the first parameter is 1, then "test", "am" and the result from the web service is false.&lt;br /&gt;&lt;br /&gt;However when trying to access the element with the following :&lt;br /&gt;&lt;br /&gt;XDocument.GetDOM("precallScheduled").selectSingleNode("/dfs:myFields/dfs:queryFields/tns:precallScheduled/tns:comments")&lt;br /&gt;&lt;br /&gt;I get an error stating that the tns namespace doesn't exist, however I have opened the XML file and that is definately the structure.&lt;br /&gt;&lt;br /&gt;How do I change the sample parameters before calling the webservice?&lt;br /&gt;&lt;br /&gt;Many Thanks</description></item></channel></rss>