<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Save data in a database using custom code in InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/53689.aspx</link><pubDate>Wed, 14 Apr 2010 15:04:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53689</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53689.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53689</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you cery much!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Save data in a database using custom code in InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/53679.aspx</link><pubDate>Wed, 14 Apr 2010 12:31:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53679</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53679.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53679</wfw:commentRss><description>&lt;p&gt;what are you trying to achieve by &lt;/p&gt;
&lt;p&gt;XPathNavigator(xnFormName = null)&lt;/p&gt;
&lt;p&gt;i think you should try &lt;/p&gt;
&lt;p&gt;xnFormName= Xndoc.SelectSingleNode(&amp;quot;XPATH&amp;quot;,this.NamespaceManager);&lt;/p&gt;
&lt;p&gt;if (xnFormName == null)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;//your code&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>Re: Save data in a database using custom code in InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/53678.aspx</link><pubDate>Wed, 14 Apr 2010 12:12:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53678</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53678.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53678</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;There is one more thing. When I am using&lt;/p&gt;&lt;p&gt;&amp;nbsp;XPathNavigator(xnFormName = null)&lt;/p&gt;&lt;p&gt;i get this error&lt;/p&gt;&lt;p&gt;Error&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;XPathNavigator&amp;#39; is a type and cannot be used as an expression.&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;I have commented the line and the program works, but why the error?&lt;/p&gt;&lt;p&gt;Thank you! &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Save data in a database using custom code in InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/53677.aspx</link><pubDate>Wed, 14 Apr 2010 11:57:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53677</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53677.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53677</wfw:commentRss><description>&lt;p&gt;&amp;nbsp; Thank you so much Qazi Anis. I did the job!&lt;/p&gt;&lt;p&gt;:-bd &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Save data in a database using custom code in InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/53676.aspx</link><pubDate>Wed, 14 Apr 2010 11:31:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53676</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53676.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53676</wfw:commentRss><description>&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; xnFormName = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; xnDoc = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;xnDoc = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.MainDataSource.CreateNavigator();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;xnFormName = xnDoc.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Field_Xpath_Path&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;variable_string= xnFormName.Value;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;//To get field xpath -&amp;gt; in design task -&amp;gt; Data source -&amp;gt; right click on the field and click Copy XPath&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Save data in a database using custom code in InfoPath 2007</title><link>https://www.infopathdev.com:443/forums/thread/53674.aspx</link><pubDate>Wed, 14 Apr 2010 11:14:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53674</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53674.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53674</wfw:commentRss><description>&lt;p&gt;Hi. I am trying to save data in a sql database using InforPath 2007 with my own code in Visual studio tools fro applications. I do not know how to connect the field i have on the template (form) with the code. For example in Visua Studio C# you write:&lt;/p&gt;&lt;p&gt;variable_string = txtBoxTex.text.&lt;/p&gt;&lt;p&gt;How do i Write the same in&amp;nbsp; Visual studio tools fro applications, how do i connect the textbox from the template(form) with the value i define in the code? Thank you!&lt;/p&gt;&lt;p&gt;P.S. I am new with InfoPath.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>