<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67754.aspx</link><pubDate>Fri, 24 Jun 2011 21:06:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67754</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67754.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67754</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m going to assume this means you&amp;#39;ve got this sorted... ;-}&lt;/p&gt;
&lt;p&gt;It takes some time getting used to IP - here&amp;#39;s your new best friend - &lt;a href="http://msdn.microsoft.com/en-us/library/aa973676.aspx"&gt;an MSDN page&lt;/a&gt;... &lt;/p&gt;
&lt;p&gt;One thing you will probably find different (read &amp;quot;annoying&amp;quot; is that you aren&amp;#39;t going to be able access the controls on the form programmatically - just the data in the XML. Something to keep in mind as you ramp up.&lt;/p&gt;
&lt;p&gt;Have a great day!&lt;/p&gt;</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67753.aspx</link><pubDate>Fri, 24 Jun 2011 21:00:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67753</guid><dc:creator>aszia787</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67753.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67753</wfw:commentRss><description>&lt;p&gt;Hilary - You are a Messaih!&lt;/p&gt;
&lt;p&gt;You are as gorgeous as your picture is. I have never found anyone so patient and yet at the&amp;nbsp;same time cool to answer stupid questions&amp;nbsp;from the likes&amp;nbsp;of dolts like myself. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have started learning Infopath - rather was forced to learn as was thrown in&amp;nbsp;IP project. I missed ASP.Net and SP object model and thought this may not be achievable in Infopath. Kudos to your patience&amp;nbsp;and thanks a ton.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67752.aspx</link><pubDate>Fri, 24 Jun 2011 20:02:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67752</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67752.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67752</wfw:commentRss><description>&lt;p&gt;You aren&amp;#39;t a pain, I&amp;#39;m just cranky today. :-}&lt;/p&gt;
&lt;p&gt;You need to get Year 2 again using a relative path...&lt;/p&gt;
&lt;p&gt;So:&lt;/p&gt;
&lt;p&gt;e.Source.SelectSingleNode(&amp;quot;../my:Year2&amp;quot;, NamespaceManager)&lt;/p&gt;
&lt;p&gt;The &amp;quot;..&amp;quot; takes you from Year1 back up to SemesterDetailInformation, and from there you can select Year2.&lt;/p&gt;</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67750.aspx</link><pubDate>Fri, 24 Jun 2011 19:27:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67750</guid><dc:creator>aszia787</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67750.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67750</wfw:commentRss><description>&lt;p&gt;Yes Hilary - I am sorry I should have mentioned the place of the button and e.Source is where Year 1 lies.I need to copy the content of Year 1 section (e.Source) to another section Year 2 (the value of dropdown list item), is it&amp;nbsp;possible copying the content to another section&amp;nbsp;in the same repeating section?&amp;nbsp;&amp;nbsp;BTW Year 2 section is a replica of Year 1.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks again - I know I have been a pain in the butt but I have progressed to the point where I see some light :)&lt;/p&gt;</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67749.aspx</link><pubDate>Fri, 24 Jun 2011 19:10:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67749</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67749.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67749</wfw:commentRss><description>&lt;p&gt;This is why I keep asking where your button is located.&lt;/p&gt;
&lt;p&gt;At any rate, it sounds as if you are saying that the button is in Year 1? Is that the case? If so, just e.Source would get you the Year 1 node. Again, you should run debug, see what the value of e.Source is.&lt;/p&gt;</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67745.aspx</link><pubDate>Fri, 24 Jun 2011 18:14:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67745</guid><dc:creator>aszia787</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67745.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67745</wfw:commentRss><description>This gets me the current value of the drop down list, not the content of the group Year1 under which YearSelection lies in.</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67744.aspx</link><pubDate>Fri, 24 Jun 2011 18:05:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67744</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67744.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67744</wfw:commentRss><description>&lt;p&gt;e.Source.SelectSingleNode(&amp;quot;YearSelection&amp;quot;, NamespaceManager)&lt;/p&gt;</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67742.aspx</link><pubDate>Fri, 24 Jun 2011 17:53:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67742</guid><dc:creator>aszia787</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67742.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67742</wfw:commentRss><description>&lt;p&gt;I was able to get the value of the field from the repeating section - I had to write e.Source.SelectSingleNode(&amp;quot;YearSelection&amp;quot;). &lt;/p&gt;
&lt;p&gt;I can copy the current value in the selected dropdown field &amp;quot;YearSelection&amp;quot; - my requirement is to copy the xml of the section from where the button was pressed (Year 1). I dont think I can do the same with year, each time when I try selecting the SingleNode of the year by e.SelectSingleNode(&amp;quot;Year1&amp;quot;), it gives me an exception &amp;quot;&lt;strong&gt;Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function.&lt;/strong&gt;&amp;quot; &lt;/p&gt;
&lt;p&gt;Is there a workaround to get the node of the current group? Thanks.&lt;/p&gt;</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67741.aspx</link><pubDate>Fri, 24 Jun 2011 17:28:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67741</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67741.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67741</wfw:commentRss><description>&lt;p&gt;Where is your button? Is it in Specialization?&lt;/p&gt;
&lt;p&gt;Run in debug, and take a look at e.Source to see what node it is.&lt;/p&gt;</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67740.aspx</link><pubDate>Fri, 24 Jun 2011 17:01:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67740</guid><dc:creator>aszia787</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67740.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67740</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you very much for your patience - You got the architecture of the sections and repeating sections correct however when I run the code you mentioned it&amp;nbsp;returns me a&amp;nbsp;NULL value. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I will further clarify the data structure for you:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Specializations (Group)&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Specialization (Repeating Section)&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;SemesterDetailInformation (Group)&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Year 1 (Group)&lt;/div&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;YearSelection (Dropdown field in Group Year 1)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;li&gt;
&lt;div&gt;Year 2 (Group)&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&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;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; CopyYear2_Clicked(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ClickedEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;// Write your code here.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&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; nav = MainDataSource.CreateNavigator();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//Dropdown selected value&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&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; yearDDL = nav.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/my:Proposal/my:Specializations/my:Specialization/my:SemesterDetailInformation/my:Year2/my:YearSelection&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;/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; year2 = nav.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/my:Proposal/my:Specializations/my:Specialization/my:SemesterDetailInformation/my:Year2&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;CopyYear(yearDDL.Value, year2, 2);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Writing e.Source.SelectSingleNode(&amp;quot;&lt;span style="WIDOWS:2;TEXT-TRANSFORM:none;TEXT-INDENT:0px;BORDER-COLLAPSE:separate;FONT:medium Verdana;WHITE-SPACE:normal;ORPHANS:2;LETTER-SPACING:normal;WORD-SPACING:0px;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="TEXT-ALIGN:left;FONT-SIZE:12px;" class="Apple-style-span"&gt;&lt;span style="PADDING-BOTTOM:0px;BORDER-RIGHT-WIDTH:0px;MARGIN:0px;PADDING-LEFT:0px;OUTLINE-WIDTH:0px;PADDING-RIGHT:0px;FONT-FAMILY:inherit;BORDER-TOP-WIDTH:0px;BORDER-BOTTOM-WIDTH:0px;BORDER-LEFT-WIDTH:0px;PADDING-TOP:0px;"&gt;my:SemesterDetailInformation/my:Year2/my:YearSelection&amp;quot;&lt;/span&gt;, NamespaceManager&lt;/span&gt;&lt;/span&gt;&amp;quot;); returned a null value&lt;/p&gt;
&lt;p&gt;Thanks again for your help and patience.&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67739.aspx</link><pubDate>Fri, 24 Jun 2011 16:17:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67739</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67739.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67739</wfw:commentRss><description>&lt;p&gt;You said your button was in a section - the section is bound to your repeating group, Specialization, right? So you could get a node like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;XPathNavigator yearDDL = e.Source.SelectSingleNode(&lt;span style="PADDING-BOTTOM:0px;BORDER-RIGHT-WIDTH:0px;MARGIN:0px;PADDING-LEFT:0px;OUTLINE-WIDTH:0px;PADDING-RIGHT:0px;FONT-FAMILY:inherit;BORDER-TOP-WIDTH:0px;BORDER-BOTTOM-WIDTH:0px;BORDER-LEFT-WIDTH:0px;PADDING-TOP:0px;"&gt;&amp;quot;my:SemesterDetailInformation/my:Year2/my:YearSelection&amp;quot;&lt;/span&gt;, NamespaceManager);&lt;/p&gt;</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67738.aspx</link><pubDate>Fri, 24 Jun 2011 16:03:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67738</guid><dc:creator>aszia787</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67738.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67738</wfw:commentRss><description>Hilary,

Your post makes sense - I debugged using e.Source.OuterXml.ToString() and found myself on the current node, however I am not sure what would be the syntax of getting relative path of the node whose value I want to retrieve. For e.g I have a field &amp;quot;YearSelection&amp;quot; - how would I retrieve the value using e.Source as relative path. You may see my earlier post that has the schema of the repeating section for reference. 

Thanks a lot.</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67735.aspx</link><pubDate>Fri, 24 Jun 2011 15:27:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67735</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67735.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67735</wfw:commentRss><description>&lt;p&gt;You are using absolute XPath to get your node - that will always return the first node. Look into the&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.office.infopath.clickedeventargs.source.aspx" target="_blank"&gt;ClickedEventArgs.Source&lt;/a&gt; property and use relative XPaths.&lt;/p&gt;</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67734.aspx</link><pubDate>Fri, 24 Jun 2011 15:10:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67734</guid><dc:creator>aszia787</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67734.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67734</wfw:commentRss><description>Hi Patrick,

Thank you very much for your reply. I am not sure if I can use any third party tool for my development. I would prefer going with the the XPath functions. Is there any blog or code in XPath function that you may redirect to.

Thanks again.</description></item><item><title>Re: Retrieving Field Value From Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/67710.aspx</link><pubDate>Fri, 24 Jun 2011 08:05:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67710</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67710.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67710</wfw:commentRss><description>&lt;p&gt;Hi aszia787,&lt;/p&gt;
&lt;p&gt;We do this all the time with qRules and the xpath functions for preceding-sibling or current. Lots of posts on this type of thing. Your code could have a bug, but the biggest issue with coding this is that it hardcodes a dependency to your data source. So, if your data source changes, you have to recompile. qRules doesn&amp;#39;t do this. I encourage you to download a free trial copy and use the copy commands to do this. Make sure you copy using a relative xpath and the preceding-sibling or current command - search for those. No code needed. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>