<?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: Error with DataObjects</title><link>https://www.infopathdev.com:443/forums/thread/9513.aspx</link><pubDate>Tue, 11 Apr 2006 14:01:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9513</guid><dc:creator>anotherchrisberry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9513.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9513</wfw:commentRss><description>Are you coding in JScript? If so, "dim" should be "var". But other than that, I'm probably not the one to answer this.. Sorry.</description></item><item><title>Re: Error with DataObjects</title><link>https://www.infopathdev.com:443/forums/thread/9512.aspx</link><pubDate>Tue, 11 Apr 2006 06:20:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9512</guid><dc:creator>tatopitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9512.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9512</wfw:commentRss><description>Hi,&lt;br /&gt;my problem is that the following line:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;theDataObject = XDocument.DataObjects("DataSource").DOM&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;gives me the error...I don't know why....</description></item><item><title>Re: Error with DataObjects</title><link>https://www.infopathdev.com:443/forums/thread/9511.aspx</link><pubDate>Mon, 10 Apr 2006 21:20:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9511</guid><dc:creator>anotherchrisberry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9511.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9511</wfw:commentRss><description>Is this helpful?&lt;br /&gt;&lt;br /&gt;&lt;a href='http://weblogs.asp.net/jan/archive/2004/03/16/90533.aspx' target='_blank' title='http://weblogs.asp.net/jan/archive/2004/03/16/90533.aspx'&lt;a target="_blank" href=http://weblogs.asp.net/jan/archive/2004/03/16/90533.aspx&gt;http://weblogs.asp.net/jan/archive/2004/03/16/90533.aspx&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I have used this method in conjunction with WScript.Network to get the user's ID...</description></item><item><title>Error with DataObjects</title><link>https://www.infopathdev.com:443/forums/thread/5518.aspx</link><pubDate>Mon, 10 Apr 2006 10:26:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5518</guid><dc:creator>tatopitta</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5518.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5518</wfw:commentRss><description>Hi,&lt;br /&gt;Since I needed to get user's information from my Sharepoint, I use a SP's web service. I write the following code:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;Function GetNameFromCID(CID)&lt;br /&gt;Dim theDataObject &lt;br /&gt;theDataObject = XDocument.DataObjects("DataSourceWithWebS").DOM         theDataObject.setProperty "SelectionNamespaces", "..."	&lt;br /&gt;theDataObject.selectSingleNode("//s0:AccountName").text = CID&lt;br /&gt;XDocument.DataObjects.Item("GetUserProfileByName").Query()&lt;br /&gt;return theDataObject.selectSingleNode("/dfs:myFields/dfs:dataFields/s0:GetUserProfileByNameResponse/s0:GetUserProfileByNameResult/s0:PropertyData/s0:Value[../s0:Name = ""PreferredName""]").text&lt;br /&gt;End Function&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;When I open a form, here's my error "Object doesn't support this property or method" at this line: &lt;br /&gt;theDataObject = XDocument.DataObjects("DataSourceWithWebS").DOM  &lt;br /&gt;&lt;br /&gt;I don't know why....</description></item></channel></rss>