<?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>Français (French)</title><link>https://www.infopathdev.com:443/forums/37.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: pour récupérer la valeur d'un champ</title><link>https://www.infopathdev.com:443/forums/thread/35641.aspx</link><pubDate>Thu, 11 Dec 2008 00:21:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35641</guid><dc:creator>djibson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35641.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=37&amp;PostID=35641</wfw:commentRss><description>&lt;p&gt;Thanks FrederiK for your answer but i&amp;#39;ve already resolved problem&amp;nbsp; (same code)&amp;nbsp; look here : &amp;nbsp;&amp;nbsp; http://www.infopathdev.com/forums/t/9859.aspx &amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: pour récupérer la valeur d'un champ</title><link>https://www.infopathdev.com:443/forums/thread/35481.aspx</link><pubDate>Mon, 08 Dec 2008 14:32:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35481</guid><dc:creator>Frederik Van Lierde</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35481.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=37&amp;PostID=35481</wfw:commentRss><description>&lt;p&gt;Your code is misisng some information:&lt;/p&gt;
&lt;p&gt;First of all the Build would give you an warning that the XmlDoc isn&amp;#39;t initiate yet and will be always nothing.&lt;/p&gt;
&lt;p&gt;Another part you are éissing is the fact that the MainDataSource isn&amp;#39;t link, so you can&amp;#39;t Select the Single nOde in the Main DataSoruce&lt;/p&gt;
&lt;p&gt;Try the following code&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; main &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; XPathNavigator = MainDataSource.CreateNavigator()&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; codeRRisque &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; XPathNavigator&lt;br /&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; sVar &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt; 
&lt;p&gt;codeRRisque = main.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:field1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager)&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;sVar = codeRRisque.Value&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>pour récupérer la valeur d'un champ</title><link>https://www.infopathdev.com:443/forums/thread/34923.aspx</link><pubDate>Wed, 26 Nov 2008 03:59:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34923</guid><dc:creator>djibson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34923.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=37&amp;PostID=34923</wfw:commentRss><description>&lt;p&gt;J&amp;#39;ai un problème pour récupérer la valeur d&amp;#39;un champ. J&amp;#39;ai une
exeception: &amp;quot;L&amp;#39;exception XPath n&amp;#39;est pas géré par le code
d&amp;#39;utilisateur.&amp;quot; &lt;br /&gt; (Le gestionnaire de noms ou XsltContext est
nécessaire. Cette demande a un préfixe, une variable ou une fonction
définie par l&amp;#39;utilisateur.). -Je utiliser Visual Basic et InfoPath 2007.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height:normal;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;Dim&lt;span&gt;&amp;nbsp; &lt;/span&gt;xmlDoc &lt;span&gt;&amp;nbsp;&lt;/span&gt;as XmlDocument&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:normal;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;Dim Node as XmlNode &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:normal;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;Dim sVar as String&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:normal;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;Node =xmlDoc.DocumentElement.SelectSingleNode(&lt;span style="color:green;"&gt;&amp;quot;/my:mesChamps/my:CODE_RISQUE&amp;quot;&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal" style="line-height:normal;"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;"&gt;sVar=Node.value&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="line-height:normal;"&gt;S&amp;#39;il vous plait aider moi&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>