<?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: get a correct row OnAfterChange Event in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/33518.aspx</link><pubDate>Fri, 24 Oct 2008 20:00:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33518</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33518.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33518</wfw:commentRss><description>&lt;p&gt;Ah, okay. See your XPath? you are going all the way back to the root of your XML, I bet. And your function? Is @class the repeating field? if so, you should be able to just use eventObj.Site.NewValue.text to get the current value. &lt;/p&gt;
&lt;p&gt;If, for example, &amp;#39;control&amp;#39; were your repeating group, and you had an OnAfterChange event attached to it, you would use eventObj.Site.selectSingleNode(&amp;quot;@class&amp;quot;) to get the correct class attribute for each instance of the control node when it changes... does that make sense?&lt;/p&gt;</description></item><item><title>Re: get a correct row OnAfterChange Event in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/33516.aspx</link><pubDate>Fri, 24 Oct 2008 19:45:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33516</guid><dc:creator>VadimS81</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33516.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33516</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for the help I am new to infopath.&lt;/p&gt;&lt;p&gt;just for the example:&lt;/p&gt;&lt;p&gt;&amp;nbsp;I am trying to do something as simple as printing out a value of the control that I am changing and its always the first element of the repeating section even if I am changing the 2nd or 3rd.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;function msoxd__class_attr::OnAfterChange(eventObj)
{ &lt;/p&gt;&lt;p&gt;&amp;nbsp;XDocument.UI.Alert(eventObj.Site.selectSingleNode(/head/body/control/@class&amp;quot;).text);	&lt;/p&gt;&lt;p&gt;} &lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: get a correct row OnAfterChange Event in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/33508.aspx</link><pubDate>Fri, 24 Oct 2008 17:17:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33508</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33508.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33508</wfw:commentRss><description>&lt;p&gt;My observations agree with Hilary&amp;#39;s.&amp;nbsp; eventObj.Site should be the node of the new row.&amp;nbsp; Please make sure that your code is in the OnAfterChange event of the repeating group itself, not on the parent of the repeating group.&lt;/p&gt;</description></item><item><title>Re: get a correct row OnAfterChange Event in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/33470.aspx</link><pubDate>Fri, 24 Oct 2008 05:50:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33470</guid><dc:creator>chandrakanth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33470.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33470</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you want to get the specific row in a repeating section .Then please follow the below code lines . I hope this will help you.&lt;/p&gt;
&lt;p&gt;eventObj.Site.selectSingleNode(Xpath[Row Number]).&lt;/p&gt;
&lt;p&gt;Xpath - Xpath of the corresponding row.&lt;/p&gt;
&lt;p&gt;Row Number - specify the row number which you want to get.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If it is not the correct fix for your solution, please let me know the clearly about your problem.&lt;/p&gt;</description></item><item><title>Re: get a correct row OnAfterChange Event in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/33443.aspx</link><pubDate>Thu, 23 Oct 2008 21:43:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33443</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33443.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33443</wfw:commentRss><description>&lt;p&gt;Hmm. That&amp;#39;s odd. I don&amp;#39;t -- I get each row as I change it. Can you paste in your script so I can try it?&lt;/p&gt;</description></item><item><title>Re: get a correct row OnAfterChange Event in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/33442.aspx</link><pubDate>Thu, 23 Oct 2008 21:13:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33442</guid><dc:creator>VadimS81</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33442.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33442</wfw:commentRss><description>&lt;p&gt;Thank you for the reply,&lt;/p&gt;&lt;p&gt;For some reason when I do that, I still always get the first row no matter what.&lt;/p&gt;&lt;p&gt;Thank you. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: get a correct row OnAfterChange Event in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/33441.aspx</link><pubDate>Thu, 23 Oct 2008 20:35:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33441</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33441.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33441</wfw:commentRss><description>&lt;p&gt;Hi--&lt;/p&gt;
&lt;p&gt;Your On After Change has an argument that is a DataDOMEvent called &amp;#39;eventObj&amp;#39;. This refers to the changing node -- in your case, a repeating section. &lt;strong&gt;eventObj.Site.selectSingleNode(&amp;quot;my:field1&amp;quot;).text&lt;/strong&gt; for example, would give me the value of the field named &amp;#39;my:field1&amp;#39; inside a repeating section or table. Let me know if you need more information or explanation.&lt;/p&gt;</description></item><item><title>get a correct row OnAfterChange Event in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/33440.aspx</link><pubDate>Thu, 23 Oct 2008 19:49:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33440</guid><dc:creator>VadimS81</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33440.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=33440</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have a question, how do I get a correct row OnAfterChange event in a repeating section using JScript.&amp;nbsp; The only way I can seem to manipulate it is by using position() methode, but I don&amp;#39;t know what position it is.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks a lot. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>