<?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: Multiple Form Controls Receiving from SP List: Custom Sorts for Each?</title><link>https://www.infopathdev.com:443/forums/thread/49248.aspx</link><pubDate>Thu, 19 Nov 2009 16:30:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49248</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49248.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=49248</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;The solution in the blog post you reference uses owssvr.dll for the data connection. Your data connection needs to be to an XML Document. You enter the url that includes the GUID to your list and to your view in the field that asks for the location of your XML file. In the next screen in the data connection wizard, you select &amp;#39;Access the data from the specified location&amp;#39;. You should be able to leave the &amp;#39;Automatically retrieve data when the form loads&amp;#39; checkbox selected.&lt;/p&gt;
&lt;p&gt;You can test your URL with the GUIDs in a web browser. Paste it into the address bar, and you should get back XML showing the information from your view.&lt;/p&gt;
&lt;p&gt;Here are a couple more links that may be helpful to you:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.synergyonline.com/blog/blog-moss/Lists/Posts/Post.aspx?ID=24"&gt;http://www.synergyonline.com/blog/blog-moss/Lists/Posts/Post.aspx?ID=24&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sharepoint-tips.com/2007/01/infopath-form-services-implementing.html"&gt;http://www.sharepoint-tips.com/2007/01/infopath-form-services-implementing.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.infopathdev.com/files/folders/qrules/entry49214.aspx"&gt;http://www.infopathdev.com/files/folders/qrules/entry49214.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The last link actually&amp;nbsp;is for documentation for a new qRules command, but does show the basics of setting up a data connection using owssvr.dll.&lt;/p&gt;
&lt;p&gt;I hope this helps, please post back if you need more information.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Multiple Form Controls Receiving from SP List: Custom Sorts for Each?</title><link>https://www.infopathdev.com:443/forums/thread/49211.aspx</link><pubDate>Wed, 18 Nov 2009 20:02:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49211</guid><dc:creator>funniegrrl</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49211.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=49211</wfw:commentRss><description>&lt;p&gt;Hi -- Not sure if this question belongs in Data Connections or Controls, but this is my best guess.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using InfoPath 2007, WSS 3, and SharePoint Designer 2007.&amp;nbsp; I&amp;#39;m comfortable with HTML to the point of being able to write it by hand.&amp;nbsp; I am comfortable with copying/pasting code and tweaking it with good step-by-step&amp;nbsp;instructions, but I&amp;#39;m NOT a programmer and I don&amp;#39;t have Visual Studio.&lt;/p&gt;
&lt;p&gt;I have a form, published to a Form Library, which has data connections to lists on the same subsite. I&amp;#39;ll use one example, but I have several that are the same problem.&amp;nbsp; The list in question&amp;nbsp;has multiple columns. One&amp;nbsp;form drop-down points to one&amp;nbsp;column; another control points to another. As expected, the sort order of the drop-down is determined by the sort order of the&amp;nbsp;default view of the list. That&amp;#39;s fine for one of the controls, but I need to have the second control sort&amp;nbsp;differently.&amp;nbsp;&amp;nbsp;To be more specific, Field1 in the list contains job titles; Field2 contains a job code number. In my first form control, the drop-down choices should sort alpha by that title; in the second, they should sort ascending by that code number. (And yes, I know that I could autopopulate the second based on the content of the first, but that&amp;#39;s not what&amp;#39;s needed here, they are independent of each other.)&lt;/p&gt;
&lt;p&gt;In Googling around I&amp;#39;ve seen reference to having multiple data connections set up that point to different views of the list, where the sort is as desired. So, I set up the views and went to set up the data connections. I pasted the full URL for the list view in the appropriate box in the Data Connection Wizard. Indeed, the prompt under the box indicates that you can point to a specific view on a specific list and not just to the site in general. Going through the wizard, I&amp;#39;m still presented with a list of all the lists/libraries on the subsite, and when choosing the desired list, there is no way to indicate that I want to use a specific view. In the control, sure enough, the sort order is merely that of the default view of the list, not the specific view I was trying to use. Looking at the Data Connection, I see that the URL I provided has been truncated to &lt;a href="http://site/subsite/"&gt;http://site/subsite/&lt;/a&gt; rather than the full &lt;a href="http://site/subsite/list/view.aspx"&gt;http://site/subsite/list/view.aspx&lt;/a&gt; that I&amp;#39;d provided.&lt;/p&gt;
&lt;p&gt;So ... I&amp;#39;ve also seen the solution posted here &lt;a href="http://blogs.msdn.com/infopath/archive/2007/01/15/populating-form-data-from-sharepoint-list-views.aspx"&gt;http://blogs.msdn.com/infopath/archive/2007/01/15/populating-form-data-from-sharepoint-list-views.aspx&lt;/a&gt;&amp;nbsp;that&amp;#39;s been referred to on these forums and elsewhere, which also utilizes the idea of setting up separate data connections to different views.&amp;nbsp;&amp;nbsp;The instructions are&amp;nbsp;too much of a gloss-over, though -- assuming the reader will know the details of the missing steps between. For example, I think I understand how to construct the path that employs the GUID, but when I start the Data Connection Wizard, what next?&amp;nbsp; I&amp;#39;ve tried choosing both &lt;em&gt;XML Document&lt;/em&gt; and &lt;em&gt;SharePoint Library or List&lt;/em&gt; in the second step of the wizard, and in both cases I get a message that it&amp;#39;s not valid. Thus I am stuck.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If anyone can help with either of these attempts I&amp;#39;ve made, or have an alternate method, I&amp;#39;d be grateful for assistance.&lt;/p&gt;</description></item></channel></rss>