<?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: to assign value to node</title><link>https://www.infopathdev.com:443/forums/thread/35656.aspx</link><pubDate>Thu, 11 Dec 2008 09:46:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35656</guid><dc:creator>djibson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35656.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35656</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks Jimmy. &lt;/p&gt;&lt;p&gt;before i used&amp;nbsp; Changing: it is not runing&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Now i use Changed: it is runing OK&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks you very much&amp;nbsp; &amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: to assign value to node</title><link>https://www.infopathdev.com:443/forums/thread/35648.aspx</link><pubDate>Thu, 11 Dec 2008 05:20:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35648</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35648.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35648</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you check once the below code first before setting the value to that node,&lt;/p&gt;
&lt;p&gt;//Check your node XPath should be correct&lt;/p&gt;
&lt;p&gt;Dim mONNAIENode = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:mesChamps/my:NOM_MONNAIE&amp;quot;, Me.NamespaceManager)&lt;/p&gt;
&lt;p&gt;If ‘mONNAIENode&amp;#39; node is not null then you can try to set the value,&lt;/p&gt;
&lt;p&gt;mONNAIENode.text = sLibelle&lt;/p&gt;</description></item><item><title>Re: to assign value to node</title><link>https://www.infopathdev.com:443/forums/thread/35644.aspx</link><pubDate>Thu, 11 Dec 2008 01:36:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35644</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35644.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35644</wfw:commentRss><description>&lt;p&gt;What type of function is this code in?&amp;nbsp; You will not be able to change a node value in a &lt;em&gt;Changing&lt;/em&gt; or &lt;em&gt;Validating&lt;/em&gt;&amp;nbsp;event.&lt;/p&gt;</description></item><item><title>to assign value to node</title><link>https://www.infopathdev.com:443/forums/thread/35642.aspx</link><pubDate>Thu, 11 Dec 2008 00:50:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35642</guid><dc:creator>djibson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35642.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35642</wfw:commentRss><description>&lt;p&gt;i want to assign&amp;nbsp; value to node but&amp;nbsp; i &amp;#39; &amp;#39;ve&amp;nbsp; an exception: &amp;quot;The operation is not valid because the current state of the object.&amp;quot;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;VB and Infopath 2007&lt;/p&gt;&lt;p&gt;code: &lt;/p&gt;&lt;p&gt;Dim sLibelle as String&lt;/p&gt;&lt;p&gt;sLibelle = &amp;quot;EURO&amp;quot;&amp;nbsp;&lt;/p&gt;&lt;p&gt;MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:mesChamps/my:NOM_MONNAIE&amp;quot;, Me.NamespaceManager).SetValue(sLibelle)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please help!&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>