<?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: How to code a changed text box?</title><link>https://www.infopathdev.com:443/forums/thread/39975.aspx</link><pubDate>Wed, 25 Mar 2009 15:24:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39975</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39975.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39975</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t, unfortunately, but I learned almost all of what I know just by tinkering around a lot.&amp;nbsp; For coding with XML in InfoPath, reading the&amp;nbsp;up on&amp;nbsp;the XPathNavigator class will get you a long way.&amp;nbsp; It&amp;#39;s nearly the only XML-related class you&amp;#39;ll need to use with InfoPath, and by far the most important methods are &lt;strong&gt;SelectSingleNode()&lt;/strong&gt; and &lt;strong&gt;Select()&lt;/strong&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.xml.xpath.xpathnavigator.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.xml.xpath.xpathnavigator.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/bb509311.aspx"&gt;http://msdn.microsoft.com/en-us/library/bb509311.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/308343"&gt;http://support.microsoft.com/kb/308343&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;It&amp;#39;s a bit dry, but I&amp;#39;d also suggest reading the W3C document on XPath.&amp;nbsp; It&amp;nbsp;illuminates a lot of XPath&amp;#39;s capabilities:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://www.w3.org/TR/xpath"&gt;http://www.w3.org/TR/xpath&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: How to code a changed text box?</title><link>https://www.infopathdev.com:443/forums/thread/39972.aspx</link><pubDate>Wed, 25 Mar 2009 15:14:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39972</guid><dc:creator>putnamsam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39972.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39972</wfw:commentRss><description>&lt;p&gt;Looks like it worked just fine, thank you very much - do you know of a good site or book to explain working with XML and C#?&amp;nbsp; My C# is a littel rusty but I have very little experience coding with XML&lt;/p&gt;</description></item><item><title>Re: How to code a changed text box?</title><link>https://www.infopathdev.com:443/forums/thread/39948.aspx</link><pubDate>Wed, 25 Mar 2009 03:40:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39948</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39948.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39948</wfw:commentRss><description>&lt;p&gt;Yes, putting something like this in the textbox&amp;#39;s changed event would do the trick:&lt;/p&gt;
&lt;blockquote&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; dateNode = MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&lt;u&gt;&lt;em&gt;&lt;strong&gt;XPath to date node&lt;/strong&gt;&lt;/em&gt;&lt;/u&gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// Delete the xsi:nil attribute if it is present&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; nilAttribute = dateNode.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;@xsi:nil&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (nilAttribute != &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;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nilAttribute.DeleteSelf();&lt;br /&gt;}&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;br /&gt;dateNode.SetValue(&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;XmlConvert&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.ToString(&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DateTime&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Now,&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;yyyy-MM-dd&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;));&lt;/p&gt;&lt;/font&gt;&lt;/blockquote&gt;</description></item><item><title>How to code a changed text box?</title><link>https://www.infopathdev.com:443/forums/thread/39946.aspx</link><pubDate>Wed, 25 Mar 2009 02:42:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39946</guid><dc:creator>putnamsam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39946.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39946</wfw:commentRss><description>&lt;p&gt;I have a form that is going to be updated on a regular basis and I would like to be able to reflect the date a certain text box was last updated for use in a dashboard.&amp;nbsp; I have some C# experience but I&amp;#39;m not sure the best way to go about it.&amp;nbsp; I&amp;#39;m not sure if the &amp;#39;Changed&amp;#39; event will be able to handle it or what.&amp;nbsp; Any guidance would be greatly appreciated (Infopath 2007)&lt;/p&gt;</description></item></channel></rss>