<?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: SelectSingleNode - I need all nodes</title><link>https://www.infopathdev.com:443/forums/thread/37007.aspx</link><pubDate>Tue, 13 Jan 2009 10:59:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37007</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37007.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37007</wfw:commentRss><description>&lt;p&gt;Thanks JImmy!&amp;nbsp; That works fantastic.&amp;nbsp; I have been trying like a madman to figure out how to select the entire node set and then just grab the nodes that I need rather than doing them one at&amp;nbsp;a time.&amp;nbsp; Thanks again - this has been a tremendous help!&lt;/p&gt;</description></item><item><title>Re: SelectSingleNode - I need all nodes</title><link>https://www.infopathdev.com:443/forums/thread/36978.aspx</link><pubDate>Tue, 13 Jan 2009 04:10:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36978</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36978.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36978</wfw:commentRss><description>&lt;p&gt;If that code is running in the event handler for a button, then e.Source is most likely directed at WorkOrderConcern.&lt;/p&gt;
&lt;p&gt;The following would probably work:&lt;/p&gt;
&lt;p&gt;&lt;font color="#008080"&gt;XPathNodeIterator&lt;/font&gt;&lt;font size="2"&gt; BodyField2 = e.Source.Select(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;d:WorkOrderConcernInfo/@DateUpdated&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; BodyField1 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;font size="2"&gt; e.Source.Select(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;d:WorkOrderConcernInfo/@UpdatedInfo&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager))&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;br /&gt;{ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; BodySeed1 = BodyField1.Value;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myAppointment.Body = BodyField2.Current.Value + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;-&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + BodySeed1 + System.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;Environment&lt;/font&gt;&lt;font size="2"&gt;.NewLine + System.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;Environment&lt;/font&gt;&lt;font size="2"&gt;.NewLine + myAppointment.Body;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font size="2"&gt;BodyField2.MoveNext();&lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;And if that does work, you can make the code a little tidier by doing something like this&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; ConcernInfo &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;font size="2"&gt; e.Source.Select(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;d:WorkOrderConcernInfo&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager))&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;br /&gt;{ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; BodySeed1 = ConcernInfo.SelectSingleNode(&lt;font color="#800000"&gt;&amp;quot;@UpdatedInfo&amp;quot;&lt;/font&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; BodySeed2 = ConcernInfo.SelectSingleNode(&lt;font color="#800000"&gt;&amp;quot;@DateUpdated&amp;quot;&lt;/font&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;br /&gt;&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myAppointment.Body = BodySeed2 + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;-&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + BodySeed1 + System.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;Environment&lt;/font&gt;&lt;font size="2"&gt;.NewLine + System.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;Environment&lt;/font&gt;&lt;font size="2"&gt;.NewLine + myAppointment.Body;&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;}&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: SelectSingleNode - I need all nodes</title><link>https://www.infopathdev.com:443/forums/thread/36977.aspx</link><pubDate>Tue, 13 Jan 2009 02:23:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36977</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36977.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36977</wfw:commentRss><description>&lt;p&gt;Sorry, man.&amp;nbsp; This is what I have:&lt;/p&gt;
&lt;p&gt;Repeating section - WorkOrder&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Repeating section - WorkOrderConcern&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; Repeating Section - WorkOrderConcernInfo&lt;/p&gt;
&lt;p&gt;I have a button that creates an appointment in my Outlook calendar.&amp;nbsp; The code in the button grabs the infromation from a couple of fields in the WorkOrder section - this information is not repeated, but it is needed every time that the button is clicked - I think I have this covered.&lt;/p&gt;
&lt;p&gt;The code also grabs information from a couple fields in WorkOrderConcern.&amp;nbsp; This is where the button resides.&amp;nbsp; I only need to grab this information from the repeating section where the button is.&lt;/p&gt;
&lt;p&gt;I also grab all the information from the WorkOrderConcernInfo section - just two fields.&amp;nbsp; This can repeat several times within WorkOrderConcern.&amp;nbsp; I need to get every instance of this information that is in a given WorkOrderConcern.&lt;/p&gt;
&lt;p&gt;I take all of this and use the various fields to make up the appointment elements.&amp;nbsp; Where I am struggling is the WorkOrderConcernInfo.&amp;nbsp; The code that I have is getting every instance of this rather than just what is in that instance of WorkOrderConcern.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Do you need to see any more of my code besides what I have already posted?&lt;/p&gt;</description></item><item><title>Re: SelectSingleNode - I need all nodes</title><link>https://www.infopathdev.com:443/forums/thread/36976.aspx</link><pubDate>Tue, 13 Jan 2009 01:44:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36976</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36976.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36976</wfw:commentRss><description>&lt;p&gt;It would be a lot easier to help you if we understood the structure of your data source and exactly what you&amp;#39;re trying to do with each value.&amp;nbsp; Right now all we can do is guess.&lt;/p&gt;</description></item><item><title>Re: SelectSingleNode - I need all nodes</title><link>https://www.infopathdev.com:443/forums/thread/36973.aspx</link><pubDate>Tue, 13 Jan 2009 01:04:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36973</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36973.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36973</wfw:commentRss><description>&lt;p&gt;I think I am making a mess of this.&amp;nbsp; First, I tried to add another field (from the same repeating section)&amp;nbsp;to the ForEach statement - and it is not as easy as I thought it would be. This is how I did that:&lt;/p&gt;&lt;font color="#008000" size="2"&gt;
&lt;p&gt;//Body&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNodeIterator&lt;/font&gt;&lt;font size="2"&gt; BodyField2 = MainDataSource.CreateNavigator().Select(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/d:WorkOrderConcern/d:WorkOrderConcernInfo/@DateUpdated&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;//string BodySeed2 = BodyField2.Value;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; BodyField1 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;font size="2"&gt; MainDataSource.CreateNavigator().Select(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/d:WorkOrderConcern/d:WorkOrderConcernInfo/@UpdatedInfo&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager))&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{ &lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; BodySeed1 = BodyField1.Value;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// whatever code uses BodySeed1&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;myAppointment.Body = BodyField2.Current.Value + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;-&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + BodySeed1 + System.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;Environment&lt;/font&gt;&lt;font size="2"&gt;.NewLine + System.&lt;/font&gt;&lt;font color="#008080" size="2"&gt;Environment&lt;/font&gt;&lt;font size="2"&gt;.NewLine + myAppointment.Body;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;BodyField2.MoveNext();&lt;/p&gt;
&lt;p&gt;This works well enough, but in some instances, I just need to get the information that is in the current repeating section and not all of them.&amp;nbsp; The code is assigned to a button that is in the repeating section that I want to retrieve the information from.&amp;nbsp; Is there any way to add a &amp;#39;where&amp;#39; or &amp;#39;if&amp;#39; or something to the ForEach selection?&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: SelectSingleNode - I need all nodes</title><link>https://www.infopathdev.com:443/forums/thread/36957.aspx</link><pubDate>Mon, 12 Jan 2009 19:20:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36957</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36957.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36957</wfw:commentRss><description>&lt;p&gt;Very nice Hilary!&amp;nbsp; Thanks for the instruction.&amp;nbsp; The first one works great - I will try the second one in a bit.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: SelectSingleNode - I need all nodes</title><link>https://www.infopathdev.com:443/forums/thread/36956.aspx</link><pubDate>Mon, 12 Jan 2009 18:50:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36956</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36956.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36956</wfw:commentRss><description>&lt;p&gt;You are only getting the last one because each time through the loop, you are reinitializing the variable BodySeed1 to be equal to the value, &lt;strong&gt;and&lt;/strong&gt;&amp;nbsp;you are setting the appointment body to that variable.&lt;/p&gt;
&lt;p&gt;So, let&amp;#39;s say first value is &amp;#39;Elephant&amp;#39;, second is &amp;#39;Giraffe&amp;#39; and third is &amp;#39;Panda&amp;#39;. First trip through the loop, you see the string variable to &amp;#39;Elephant&amp;#39; and the appointment body to &amp;#39;Elephant&amp;#39;. Second trip, you set the variable to &amp;#39;Giraffe&amp;#39; and the body to &amp;#39;Giraffe&amp;#39;. Third trip through, you set it all to &amp;#39;Panda&amp;#39;. You are overwriting everything, each trip through.&lt;/p&gt;
&lt;p&gt;If you want them all, you&amp;#39;ll have to concatenate them -- perhaps something like this:&lt;/p&gt;&lt;font size="2"&gt;
&lt;blockquote&gt;
&lt;p&gt;myAppointment.Body = myAppointment.Body + BodySeed1;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;or:&lt;/p&gt;
&lt;blockquote&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; BodySeed1; &lt;/font&gt;&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;foreach&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (XPathNavigator BodyField1 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; MainDataSource.CreateNavigator().Select(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/d:WorkOrderConcern/d:WorkOrderConcernInfo/@UpdatedInfo&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager))&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;BodySeed1 = BodySeed1 + BodyField1.Value;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// whatever code uses BodySeed1&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;myAppointment.Body = BodySeed1;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;/font&gt;</description></item><item><title>Re: SelectSingleNode - I need all nodes</title><link>https://www.infopathdev.com:443/forums/thread/36955.aspx</link><pubDate>Mon, 12 Jan 2009 18:38:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36955</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36955.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36955</wfw:commentRss><description>&lt;p&gt;Hello Hilary!&amp;nbsp; You reall are on top of this forum!&lt;/p&gt;
&lt;p&gt;Got it.&amp;nbsp; I have to pay closer attention to exact syntax - I am still getting the swing of it!&amp;nbsp; OK - I got it right and the form works, but now I only get the LAST one.&lt;/p&gt;
&lt;p&gt;Here is what I did:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; BodyField1 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;font size="2"&gt; MainDataSource.CreateNavigator().Select(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/d:WorkOrderConcern/d:WorkOrderConcernInfo/@UpdatedInfo&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager))&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; BodySeed1 = BodyField1.Value;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// whatever code uses BodySeed1&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;myAppointment.Body = BodySeed1;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: SelectSingleNode - I need all nodes</title><link>https://www.infopathdev.com:443/forums/thread/36954.aspx</link><pubDate>Mon, 12 Jan 2009 18:29:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36954</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36954.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36954</wfw:commentRss><description>&lt;p&gt;Note the syntax difference between your code and Jimmy&amp;#39;s: you have a semi colon at the end of the foreach loop statement -- Jimmy has a curly brace, with a closing brace after the&amp;nbsp;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font size="2"&gt; BodySeed1 = BodyField1.Value;&lt;/font&gt;&amp;nbsp; line.&lt;/p&gt;</description></item><item><title>Re: SelectSingleNode - I need all nodes</title><link>https://www.infopathdev.com:443/forums/thread/36953.aspx</link><pubDate>Mon, 12 Jan 2009 18:24:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36953</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36953.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36953</wfw:commentRss><description>&lt;p&gt;Hello Jimmy and thanks for the response.&amp;nbsp; I commented out my original code and inserted yours like this:&lt;/p&gt;&lt;font color="#008000" size="2"&gt;
&lt;p&gt;//Body&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;//XPathNavigator BodyField1 = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/d:WorkOrderConcern/d:WorkOrderConcernInfo/@UpdatedInfo&amp;quot;, NamespaceManager);&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; BodyField1 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;font size="2"&gt; MainDataSource.CreateNavigator().Select(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/d:WorkOrderConcern/d:WorkOrderConcernInfo/@UpdatedInfo&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager));&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; BodySeed1 = BodyField1.Value;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;and this is the error that I get:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;The name &amp;#39;BodyField1&amp;#39; does not exist in the current context.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;I have tired it several different ways to no avil.&amp;nbsp; I am not sure where to define BodyField1.&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: SelectSingleNode - I need all nodes</title><link>https://www.infopathdev.com:443/forums/thread/36942.aspx</link><pubDate>Mon, 12 Jan 2009 16:35:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36942</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36942.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36942</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m guessing you want something like&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;foreach(&lt;/strong&gt;&lt;font color="#008080"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; BodyField1&amp;nbsp;&lt;strong&gt;in&lt;/strong&gt; MainDataSource.CreateNavigator().&lt;strong&gt;Select&lt;/strong&gt;(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/d:WorkOrderConcern/d:WorkOrderConcernInfo/@UpdatedInfo&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager)&lt;strong&gt;)&lt;/strong&gt;&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; BodySeed1 = BodyField1.Value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // whatever code uses BodySeed1&lt;br /&gt;}&lt;/font&gt;&lt;/p&gt;</description></item><item><title>SelectSingleNode - I need all nodes</title><link>https://www.infopathdev.com:443/forums/thread/36938.aspx</link><pubDate>Mon, 12 Jan 2009 16:00:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36938</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36938.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36938</wfw:commentRss><description>&lt;p&gt;I have a repeating section insied of a repeating section.&amp;nbsp; I am creating appointments in Outlook based on information in the form via a button.&amp;nbsp; The button is located in the top level section.&amp;nbsp; If I have one section and one section-within-a-section, everything is great.&amp;nbsp; If I add a section anywhere, I only get the FIRST section.&amp;nbsp; How do I get ALL sections?&amp;nbsp; Currently I am using selectSinglNode to get the informatin that I need.&amp;nbsp; I have tried fooling around with selectNodes and selectDecendants and selectChildren and I keep getting similar errors:&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;1&amp;nbsp;&amp;#39;System.Xml.XPath.XPathNavigator&amp;#39; does not contain a definition for &amp;#39;SelectNodes&amp;#39;&amp;nbsp;C:\Documents and Settings\dfisher\My Documents\InfoPath Projects\Customer Care Cincinnati\FormCode.cs&amp;nbsp;134&amp;nbsp;74&amp;nbsp;Customer Care - no code&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Here is my code for selecting the single node:&lt;/p&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; BodyField1 = MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/d:WorkOrderConcern/d:WorkOrderConcernInfo/@UpdatedInfo&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; BodySeed1 = BodyField1.Value;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;Then I put the string in the spot in the appointment where I need it.&amp;nbsp; How do I do this for ALL iterations of that field?&lt;/font&gt;&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>