<?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>Re: Main datasource and different queries</title><link>https://www.infopathdev.com:443/forums/thread/6332.aspx</link><pubDate>Fri, 12 Nov 2004 09:48:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6332</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6332.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6332</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Greg Collins&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Sorry. I try to get to these questions, but my time is drawn between many thing, including fulltime work.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;Then you shouldn't have any time to be having babies :)&lt;br /&gt;&lt;br /&gt;Thanks for your thought.  It's stuff like "cloneNode" &amp; "replaceNode" that I didn't know about (I don't normally do yucky script!).&lt;br /&gt;&lt;br /&gt;Strangely, when I looked at the DOMs I saw some differences I didn't understand in structure between Main &amp; Secondary adapter results, given they're returning the same stuff from the WS.  I'll have to look into this further if I want to implement, but at least I understand what approach you're suggesting.</description></item><item><title>Re: Main datasource and different queries</title><link>https://www.infopathdev.com:443/forums/thread/6331.aspx</link><pubDate>Thu, 11 Nov 2004 18:54:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6331</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6331.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6331</wfw:commentRss><description>Sorry. I try to get to these questions, but my time is drawn between many thing, including fulltime work.&lt;br /&gt;&lt;br /&gt;Since your datafields are essentially identical, except for maybe a root node or two, what you can do is the following. Let's assume your common root node is named s0:MyData.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;var oMyData1 = XDocument.DOM.selectSingleNode("//s0:MyData");&lt;br /&gt;var oMyData2 = XDocument.GetDOM("WS2").selectSingleNode("//s0:MyData").cloneNode(true);&lt;br /&gt;oMyData1.parentNode.replaceChild(oMyData2, oMyData1);&lt;/pre&gt;&lt;br /&gt;This makes a copy of the second WS data fields and dumps them into the main DOM, replacing the previous data.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>Re: Main datasource and different queries</title><link>https://www.infopathdev.com:443/forums/thread/6330.aspx</link><pubDate>Thu, 11 Nov 2004 16:19:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6330</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6330.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6330</wfw:commentRss><description>Unfortunately, I don't think so.&lt;br /&gt;&lt;br /&gt;Most of my issues stem from the fact that I need to use two differently named webservices; hence different adapters; hence different structure in queryFields/dataFields, since these include the name of the webservice in their structure (that's the only difference between them, at least in the returned dataFields).  Then any attempt to use/populate the other adapter from one adapter (e.g. I'd like queryAdapter2's output to go into queryAdapter1's dataFields) leads to disaster.&lt;br /&gt;&lt;br /&gt;Hasn't anyone else had this issue?&lt;br /&gt;&lt;br /&gt;(Greg, where are you? :) )</description></item><item><title>Re: Main datasource and different queries</title><link>https://www.infopathdev.com:443/forums/thread/6329.aspx</link><pubDate>Thu, 11 Nov 2004 14:11:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6329</guid><dc:creator>sakieboy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6329.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6329</wfw:commentRss><description>This sounds eerily similar to my issue&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=71&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=71&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I basically had to rethink my process.  Instead of having the first Dropdownlist(DDL1) call the second Dropdownlist(DDL2) which in turn returned the datafields,  I combined the contents of DDL1 and DDL2 into one DDL and called the datafields.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope this helps.... yours seems a tad more complex.</description></item><item><title>Main datasource and different queries</title><link>https://www.infopathdev.com:443/forums/thread/4500.aspx</link><pubDate>Wed, 10 Nov 2004 18:54:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4500</guid><dc:creator>jonbrave</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4500.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4500</wfw:commentRss><description>How (if at all) can I accomplish the following:&lt;br /&gt;&lt;br /&gt;My Main datasource is attached to a webservice/dataset; I get "queryFields" &amp; "dataFields".  I have a "standard" query which fills dataFields.  I have a "submit" which later sends changed "dataFields" back.&lt;br /&gt;&lt;br /&gt;Now, I want to have an "alternate" query, with different queryFields, attached to a different webservice (i.e. the webservice name is different and so are its (input) parameters).  BUT the response it gets back (output) is the same stuff as my existing query and I need its output to go into the same dataFields (to which all the controls are bound), ready for update and submit.&lt;br /&gt;&lt;br /&gt;A simple example: suppose there are two webservices for returning the same data (say, a row).  One, "Get", takes a parameter of what record to get; another, "Find", takes quite different, multiple parameters to do with how to find one record, which it then returns.&lt;br /&gt;&lt;br /&gt;I don't mind how I achieve this (scripting fine), but I can't find a way.  I could play with WebServiceAdapters' OutputLocation/Input, the main QueryAdapter, secondary Adapters...  I have tried adjusting the QueryAdapter to change what it calls/passes the WS (so as to preserve the OutputLocation), and adjusting a secondary DataAdapter to change its OutputLocation (so as to preserve what it calls/passes to the WS), but always get errors.  I think there are problems with namespaces/names: both queryFields &amp; dataFields contain names based on the name of the webservice and that causes problems when trying to mix them, I believe...&lt;br /&gt;&lt;br /&gt;The only possibility I see at the moment is to somehow wrap up the underlying webservices in a single "container" webservice so that I have just the one WS which accepts all the parameters for all the underlying webservices it might call, looks at them, and decides what to actually call (they all return the same result stuff).  But that seems pretty ugly...&lt;br /&gt;&lt;br /&gt;What can be done?</description></item></channel></rss>