<?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: Does not exist in the current context</title><link>https://www.infopathdev.com:443/forums/thread/43116.aspx</link><pubDate>Thu, 18 Jun 2009 10:31:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43116</guid><dc:creator>dracosha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43116.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43116</wfw:commentRss><description>&lt;p&gt;wah... first one working... many thanks for you!&lt;/p&gt;&lt;p&gt;I think i&amp;#39;m really use 2007 Infopath object model...&lt;/p&gt;&lt;p&gt;Thank you! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Does not exist in the current context</title><link>https://www.infopathdev.com:443/forums/thread/43114.aspx</link><pubDate>Thu, 18 Jun 2009 09:54:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43114</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43114.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43114</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It looks like your form is set up to use the the 2007 InfoPath object model, which requires different objects to access the data source than what you have there.&lt;/p&gt;&lt;p&gt;Please try&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/Sign/DocGUID&amp;quot;).SetValue(Guid.NewGuid().ToString());&lt;br /&gt;&lt;/p&gt;&lt;p&gt;But that XPath looks a little fishy to me.&amp;nbsp; Please try:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:Sign/my:DocGUID&amp;quot;, NamespaceManager).SetValue(Guid.NewGuid().ToString());&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Or&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:Sign/my:DocGUID&amp;quot;, NamespaceManager).SetValue(Guid.NewGuid().ToString());&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If the first one doesn&amp;#39;t work. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Does not exist in the current context</title><link>https://www.infopathdev.com:443/forums/thread/43113.aspx</link><pubDate>Thu, 18 Jun 2009 09:43:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43113</guid><dc:creator>dracosha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43113.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=43113</wfw:commentRss><description>&lt;p style="font-style:italic;"&gt;c# &amp;amp; form for Formservice &lt;br /&gt;&lt;/p&gt;&lt;p style="font-style:italic;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="font-style:italic;"&gt;using Microsoft.Office.InfoPath;&lt;br /&gt;using System;&lt;br /&gt;using System.Windows.Forms;&lt;br /&gt;using System.Xml;&lt;br /&gt;using System.Xml.XPath;&lt;br /&gt;using System.Xml.Linq;&lt;br /&gt;using mshtml;&lt;br /&gt;&lt;br /&gt;namespace temp2&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public partial class FormCode&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void InternalStartup()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; EventManager.FormEvents.Loading += new LoadingEventHandler(FormEvents_Loading);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void FormEvents_Loading(object sender, LoadingEventArgs e)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; thisXDocument.DOM.selectSingleNode(&amp;quot;/Sign/DocGUID&amp;quot;) = Guid.NewGuid().ToString(); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/p&gt;&lt;p style="font-style:italic;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="font-style:italic;"&gt;result - error:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;The name &amp;#39;thisXDocument&amp;#39; does not exist in the current context&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-style:italic;"&gt;Please help with problem...&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>