<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Error: 'System.Xml.Linq.XDocument' does not contain a definition for 'View'</title><link>https://www.infopathdev.com:443/forums/thread/75384.aspx</link><pubDate>Thu, 16 Feb 2012 16:51:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75384</guid><dc:creator>venkatzeus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75384.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=75384</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I checked the link and used the code provided.&lt;/p&gt;
&lt;p&gt;However, in the below line:&lt;/p&gt;
&lt;p&gt;CurrentView.SelectNodes(repeatingTableRow1);&lt;br /&gt;I am not able to get the property selectNodes for CurrentView.&lt;/p&gt;
&lt;p&gt;CurrentView is having the below:&lt;/p&gt;
&lt;p&gt;CurrentView.Equals | GetHashCode | GetType | ToString | ViewInfo&lt;/p&gt;</description></item><item><title>Re: Error: 'System.Xml.Linq.XDocument' does not contain a definition for 'View'</title><link>https://www.infopathdev.com:443/forums/thread/75372.aspx</link><pubDate>Thu, 16 Feb 2012 13:21:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75372</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75372.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=75372</wfw:commentRss><description>&lt;p&gt;It&amp;#39;s not a direct conversion. Please consult the example on the link I provided.&lt;/p&gt;</description></item><item><title>Re: Error: 'System.Xml.Linq.XDocument' does not contain a definition for 'View'</title><link>https://www.infopathdev.com:443/forums/thread/75370.aspx</link><pubDate>Thu, 16 Feb 2012 13:05:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75370</guid><dc:creator>venkatzeus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75370.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=75370</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;Thank you very much for the reply.&lt;/p&gt;&lt;p&gt;But could you please provide the code change for:&lt;/p&gt;&lt;p&gt;XDocument.View.SelectNodes(nodeSelText); &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Error: 'System.Xml.Linq.XDocument' does not contain a definition for 'View'</title><link>https://www.infopathdev.com:443/forums/thread/75369.aspx</link><pubDate>Thu, 16 Feb 2012 12:50:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75369</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75369.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=75369</wfw:commentRss><description>&lt;p&gt;Looks like you need to use an XPathNavigator to select the node you want to highlight first, and then pass that to SelectNodes().&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/aa946814.aspx"&gt;http://msdn.microsoft.com/en-us/library/aa946814.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Error: 'System.Xml.Linq.XDocument' does not contain a definition for 'View'</title><link>https://www.infopathdev.com:443/forums/thread/75368.aspx</link><pubDate>Thu, 16 Feb 2012 12:30:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75368</guid><dc:creator>venkatzeus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75368.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=75368</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;yes there is currentview. But how to change the code for the below line:&lt;/p&gt;&lt;p&gt;XDocument.View.SelectNodes(nodeSelText); &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Error: 'System.Xml.Linq.XDocument' does not contain a definition for 'View'</title><link>https://www.infopathdev.com:443/forums/thread/75367.aspx</link><pubDate>Thu, 16 Feb 2012 12:24:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75367</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75367.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=75367</wfw:commentRss><description>&lt;p&gt;I believe that in 2007 code, it would be CurrentView, not XDocument.View.&lt;/p&gt;</description></item><item><title>Error: 'System.Xml.Linq.XDocument' does not contain a definition for 'View'</title><link>https://www.infopathdev.com:443/forums/thread/75366.aspx</link><pubDate>Thu, 16 Feb 2012 12:13:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:75366</guid><dc:creator>venkatzeus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/75366.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=75366</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;
&lt;p&gt;I am using browser based InfoPath 2010 form.&lt;/p&gt;
&lt;p&gt;I am trying to set the focus programmatically is VSTS.&lt;/p&gt;
&lt;p&gt;I tried the below code:&lt;/p&gt;
&lt;p&gt;[CODE]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;XPathNavigator id = MainDataSource.CreateNavigator();&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator nodeSelText = 
id.SelectSingleNode(&amp;quot;/my:1aVerified/my:WC/my:WCOther/my:WCOther2/my:WCOtherInGrp/my:field1&amp;quot;,NamespaceManager);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XDocument.View.SelectNodes(nodeSelText);&lt;/p&gt;
&lt;p&gt;[/CODE]&lt;/p&gt;
&lt;p&gt;I am getting error as &amp;quot;&amp;#39;System.Xml.Linq.XDocument&amp;#39; does not contain a definition for &amp;#39;View&amp;#39; &amp;quot;.&lt;/p&gt;
&lt;p&gt;How to fix this? &lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</description></item></channel></rss>