<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How can I get the Value from a SharePoint List?</title><link>https://www.infopathdev.com:443/forums/thread/19161.aspx</link><pubDate>Tue, 17 Apr 2007 18:35:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19161</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19161.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=19161</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Go through this article you will get the one file and if you change in your search value contains then you can use the instead on using &amp;lt;Eq&amp;gt; use &amp;lt;Contains&amp;gt;. It will give the node list which contains the&amp;nbsp;value of given search value.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.infopathdev.com/blogs/agni/archive/2006/05/15/Query-for-Items-in-SharePoint-Form-Library-Using-GetListItems-Web-Method.aspx"&gt;http://www.infopathdev.com/blogs/agni/archive/2006/05/15/Query-for-Items-in-SharePoint-Form-Library-Using-GetListItems-Web-Method.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: How can I get the Value from a SharePoint List?</title><link>https://www.infopathdev.com:443/forums/thread/15971.aspx</link><pubDate>Thu, 09 Feb 2006 12:52:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15971</guid><dc:creator>AndersR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15971.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15971</wfw:commentRss><description>Hi&lt;br /&gt;&lt;br /&gt;i dont have specific code for that, but ill give you a hint (untested):&lt;br /&gt;&lt;br /&gt;youll need a&lt;br /&gt;&lt;br /&gt;XmlDocument document = new XmlDocument();&lt;br /&gt;document.LoadXml(yourDataAdapter.DOM.xml); //there could be more clever methods to do this so check DataAdapter DOM property&lt;br /&gt;//also you should check for errors in return xml. i think i recall its in "//sp:errorCode"&lt;br /&gt;&lt;br /&gt;//Before you can select nodelists from XML dom, you need to add namespaces from return xml in your document. below i just add them all since i dont recall wich is needed:&lt;br /&gt;&lt;br /&gt;//define SPS namespaces&lt;br /&gt;		const string SharePointNamespacePrefix = "sp";&lt;br /&gt;		const string SharePointNamespaceURI = "http://schemas.microsoft.com/sharepoint/soap/";&lt;br /&gt;		const string ListItemsNamespacePrefix = "z";&lt;br /&gt;		const string ListItemsNamespaceURI = "#RowsetSchema";&lt;br /&gt;		const string PictureLibrariesNamespacePrefix = "y";&lt;br /&gt;		const string PictureLibrariesNamespaceURI = "http://schemas.microsoft.com/sharepoint/soap/ois/";&lt;br /&gt;		const string WebPartsNamespacePrefix = "w";&lt;br /&gt;		const string WebPartsNamespaceURI = "http://schemas.microsoft.com/WebPart/v2";&lt;br /&gt;		const string DirectoryNamespacePrefix = "d";&lt;br /&gt;		const string DirectoryNamespaceURI = "http://schemas.microsoft.com/sharepoint/soap/directory/";&lt;br /&gt;		const string RowSetNamespaceURI = "urn:schemas-microsoft-com:rowset";&lt;br /&gt;		const string RowSetNamespacePrefix = "rs";&lt;br /&gt;&lt;br /&gt;			// associate with the xmlns namespaces&lt;br /&gt;			XmlNamespaceManager nsmgr =	new XmlNamespaceManager(document.NameTable);&lt;br /&gt;			nsmgr.AddNamespace(SharePointNamespacePrefix,SharePointNamespaceURI);&lt;br /&gt;			nsmgr.AddNamespace(ListItemsNamespacePrefix,ListItemsNamespaceURI);&lt;br /&gt;			nsmgr.AddNamespace(PictureLibrariesNamespacePrefix,PictureLibrariesNamespaceURI);&lt;br /&gt;			nsmgr.AddNamespace(WebPartsNamespacePrefix,WebPartsNamespaceURI);&lt;br /&gt;			nsmgr.AddNamespace(DirectoryNamespacePrefix,DirectoryNamespaceURI);&lt;br /&gt;&lt;br /&gt;//now select the nodelist you want to iterate&lt;br /&gt;XmlNodeList listItems = document.SelectNodes("//rs:data",nsmgr);//im not sure about the return xml syntax but think its rs:data&lt;br /&gt;&lt;br /&gt;for ( int c=0; c &amp;lt; listItems.Count; c++ )&lt;br /&gt;{&lt;br /&gt;   //here you add data to your dropdown or whatever in InfoPath&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;hope this intermistic code sample helps -anyways its all i have time for ;-)&lt;br /&gt;&lt;br /&gt;//AndersR&lt;br /&gt;&lt;br /&gt;//AndersR</description></item><item><title>Re: How can I get the Value from a SharePoint List?</title><link>https://www.infopathdev.com:443/forums/thread/15970.aspx</link><pubDate>Wed, 08 Feb 2006 02:36:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15970</guid><dc:creator>v-luchen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15970.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15970</wfw:commentRss><description>Hi AndersR:&lt;br /&gt;Thanks for your help!&lt;br /&gt;I can do this by using SPS web service&lt;br /&gt;Now,I want to do it by using sencondary data connection&lt;br /&gt;My secondary data connection was not setup to “automatically retrieve data when the form is opened”&lt;br /&gt;&lt;br /&gt;The secondary data connection is setup when I click a button. My code is as follows:&lt;br /&gt;&lt;br /&gt;[InfoPathEventHandler(MatchPath="Recieve", EventType=InfoPathEventType.OnClick)]&lt;br /&gt;&lt;br /&gt;           public void Recieve_OnClick(DocActionEvent e)&lt;br /&gt;&lt;br /&gt;           {&lt;br /&gt;&lt;br /&gt;             thisXDocument.DataObjects["ProjectsStatus"].Query();//”ProjectsStatus” is my secondary data connection name&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;NOW, I want to retrieve all the data of the SPS list, and put them in a datatable.&lt;br /&gt;&lt;br /&gt;How can do this by using C# code? &lt;br /&gt;&lt;br /&gt;Can you give me a sample about use &lt;br /&gt;"programmatically using XDocument.DataAdapters("YourListName").DOM.xml (DataObject of type SharepointListAdapter )&lt;br /&gt;"&lt;br /&gt;</description></item><item><title>Re: How can I get the Value from a SharePoint List?</title><link>https://www.infopathdev.com:443/forums/thread/15969.aspx</link><pubDate>Tue, 07 Feb 2006 20:28:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15969</guid><dc:creator>AndersR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15969</wfw:commentRss><description>Hi again,&lt;br /&gt;&lt;br /&gt;I recommend reading the SPPT or WSS SDK or check the article section of MSDN for relevant info.&lt;br /&gt;&lt;br /&gt;In basic what you need to do is&lt;br /&gt;1. in VS.NET add a web reference pointing to&lt;a target="_blank" href=http://yourportal/subarea/_vti_bin/lists.asmx&gt;http://yourportal/subarea/_vti_bin/lists.asmx&lt;/a&gt; &lt;br /&gt;2. use the method GetListItems("listname/listguid",null,null,null,null,null) &amp;lt;- here you can define special views, queries, fields, rows and options&lt;br /&gt;3. what youll get back is an XML node containing a soap envelope wich you can parse/query as needed using xpath.&lt;br /&gt;&lt;br /&gt;(untested from the top of my head)&lt;br /&gt;XmlNode returnXml = myListService.GetListItems("myList","myView",null,null,null,null);&lt;br /&gt;System.Diagnostics.Debug.WriteLine(returnXml.xml,"returnXml");&lt;br /&gt;&lt;br /&gt;hth&lt;br /&gt;//AndersR&lt;br /&gt;&lt;br /&gt;links to MSDN SPPT articles and SDK: &lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/?url=/library/en-us/odc_2003_ta/html/odc_landsppt03_ta.asp?frame=true&gt;http://msdn.microsoft.com/library/?url=/library/en-us/odc_2003_ta/html/odc_landsppt03_ta.asp?frame=true&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//AndersR</description></item><item><title>Re: How can I get the Value from a SharePoint List?</title><link>https://www.infopathdev.com:443/forums/thread/15968.aspx</link><pubDate>Tue, 07 Feb 2006 09:28:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15968</guid><dc:creator>v-luchen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15968.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15968</wfw:commentRss><description>Thanks for your help,&lt;br /&gt;I want to an example,how to retrieve all items of SPS list at one time(basic C# code,don't use SPS web service) &lt;br /&gt;</description></item><item><title>Re: How can I get the Value from a SharePoint List?</title><link>https://www.infopathdev.com:443/forums/thread/15967.aspx</link><pubDate>Tue, 07 Feb 2006 08:34:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15967</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15967.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15967</wfw:commentRss><description>Hi V-luchen and welcome to our forum!&lt;br /&gt;Matt Faus's new HowTo will help you. Should be release today or tomorrow. Go to&lt;a target="_blank" href=http://www.infopathdev.com&gt;http://www.infopathdev.com&lt;/a&gt; and look for it. It's titled "Add SharePoint List Items with InfoPath". Cheers!&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: How can I get the Value from a SharePoint List?</title><link>https://www.infopathdev.com:443/forums/thread/15966.aspx</link><pubDate>Tue, 07 Feb 2006 03:30:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15966</guid><dc:creator>v-luchen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15966.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15966</wfw:commentRss><description>Hi AndersR&lt;br /&gt;  I think the first way is good for me,but I want to know How can I fetch all the data from the a list,and then put them in a datatable.&lt;br /&gt;Can you give me example about this?</description></item><item><title>Re: How can I get the Value from a SharePoint List?</title><link>https://www.infopathdev.com:443/forums/thread/15965.aspx</link><pubDate>Mon, 06 Feb 2006 10:59:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15965</guid><dc:creator>AndersR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15965.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15965</wfw:commentRss><description>Hi&lt;br /&gt;&lt;br /&gt;depending on what exactly you want to achieve you can approach this in two ways:&lt;br /&gt;&lt;br /&gt;if you just want to retrieve meta data from lists (eg tasks or similar) to populate a dropdown in a form, you can add the list as a secondary data source ( tools &amp;gt; data connections &amp;gt; add &amp;gt; recieve data &amp;gt; sharepoint library or list).&lt;br /&gt;&lt;br /&gt;These data can then be used either in the gui or programmatically using XDocument.DataAdapters("YourListName").DOM.xml (DataObject of type SharepointListAdapter )&lt;br /&gt;&lt;br /&gt;If this isnt enough (for example if you need to access the documents in a list as binary arrays) you can use the standard sharepoint Lists web service methods. The one you need is most likely GetListItems.&lt;a target="_blank" href=http://yourPortal/yoursubarea/_vti_bin/lists.asmx&gt;http://yourPortal/yoursubarea/_vti_bin/lists.asmx&lt;/a&gt;   &amp;lt;- notice that the vti_bin must be called from the site or area where the list is located!&lt;br /&gt;&lt;br /&gt;more info:&lt;br /&lt;a target="_blank" href=http://msdn.microsoft.com/library/en-us/spptsdk/html/soapmlistsgetlistitems.asp&gt;http://msdn.microsoft.com/library/en-us/spptsdk/html/soapmlistsgetlistitems.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;hth&lt;br /&gt;//AndersR&lt;br /&gt;&lt;br /&gt;//AndersR</description></item><item><title>How can I get the Value from a SharePoint List?</title><link>https://www.infopathdev.com:443/forums/thread/15339.aspx</link><pubDate>Mon, 06 Feb 2006 06:24:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15339</guid><dc:creator>v-luchen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15339.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15339</wfw:commentRss><description>Hi all&lt;br /&gt;  I want to get the data from a SharePoint List.Is there any web service from SharePoint can do the job?&lt;br /&gt;For example, I want to get the data from a SharePoint List,and then put them into a datatable(coding by C#)&lt;br /&gt;&lt;br /&gt;How can I do this?&lt;br /&gt;</description></item></channel></rss>