<?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: unable to get the fields value in current row of a changed event in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/45449.aspx</link><pubDate>Wed, 05 Aug 2009 16:16:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45449</guid><dc:creator>bella</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45449.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45449</wfw:commentRss><description>&lt;p&gt;Hi Jimmy...&lt;/p&gt;
&lt;p&gt;I love simple solutions and this one worked like a charm!&amp;nbsp; Thank you...thank you!&amp;nbsp; Bella&lt;/p&gt;</description></item><item><title>Re: unable to get the fields value in current row of a changed event in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/45426.aspx</link><pubDate>Wed, 05 Aug 2009 06:31:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45426</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45426.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45426</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;One simple thing you could do is create a field called &amp;quot;emailRecipient&amp;quot; outside of the repeating group (you don&amp;#39;t have to display it on the form) and then add a button with a rule that carries out these steps:&lt;/p&gt;&lt;p&gt;1.&amp;nbsp; Set &lt;b&gt;emailRecipient&lt;/b&gt; to the value of &lt;b&gt;reviewername&lt;/b&gt; (when you are setting up the formula for this, the formula should just have &lt;b&gt;reviewername&lt;/b&gt;, not a full absolute path.&lt;br /&gt;2.&amp;nbsp; Invokes the send e-mail data connection.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Then set up the data connection to use the &lt;b&gt;emailRecipient&lt;/b&gt; field as the value for the To: address.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Would that work? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: unable to get the fields value in current row of a changed event in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/45425.aspx</link><pubDate>Wed, 05 Aug 2009 04:35:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45425</guid><dc:creator>bella</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45425.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45425</wfw:commentRss><description>&lt;p&gt;Hi again Jimmy... thanks for your&amp;nbsp;offer to&amp;nbsp;help.&amp;nbsp;&amp;nbsp;I hope this is the image you were looking for.&amp;nbsp; The repeating section is called &amp;#39;Reviewers&amp;#39;.&amp;nbsp; Inside this repeating section I have a section currently called &amp;#39;group 44&amp;#39; which has the &amp;#39;reviewername&amp;#39; field with a orange &amp;#39;send&amp;#39; button next to it.&amp;nbsp; I would like to be able to hit the &amp;#39;send&amp;#39; button and have the email go to the adjacent name selected in the &amp;#39;reviewername&amp;#39; field.&amp;nbsp; I displayed the properties for the &amp;#39;reviewername&amp;#39; drop down list in case that helps.&amp;nbsp; Thank you!&amp;nbsp; bella&lt;/p&gt;</description></item><item><title>Re: unable to get the fields value in current row of a changed event in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/45417.aspx</link><pubDate>Wed, 05 Aug 2009 00:37:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45417</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45417.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45417</wfw:commentRss><description>&lt;p&gt;You shouldn&amp;#39;t actually be using the brackets and plus sign.&amp;nbsp; Those were just there to show you that there were those two possible endings for getting and setting the value.&lt;br /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;e.Site.SelectSingleNode(&amp;quot;../CHK_VW&amp;quot;, NamespaceManager).SetValue(&amp;quot;K&amp;quot;);&lt;br /&gt;&lt;/p&gt;
&lt;/blockquote&gt;</description></item><item><title>Re: unable to get the fields value in current row of a changed event in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/45404.aspx</link><pubDate>Tue, 04 Aug 2009 17:04:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45404</guid><dc:creator>naresh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45404.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45404</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I tried&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;e.Site.SelectSingleNode(&amp;quot;../CHK_VW&amp;quot;, NamespaceManager) &lt;em&gt;[+.SetValue(&amp;quot;K&amp;quot;)]&lt;/em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; to set the value &amp;quot;K&amp;quot; to the above field. It was giving me a syntax error.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: unable to get the fields value in current row of a changed event in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/45307.aspx</link><pubDate>Sat, 01 Aug 2009 05:54:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45307</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45307.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45307</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Ciao bella,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;d be happy to help you with this.&amp;nbsp; Could you possibly provide a screenshot of your data source (in the taskpane) so I can see what all the nodes are called, and we&amp;#39;ll take it from there. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: unable to get the fields value in current row of a changed event in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/45306.aspx</link><pubDate>Sat, 01 Aug 2009 05:18:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45306</guid><dc:creator>bella</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45306.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45306</wfw:commentRss><description>&lt;p&gt;Jimmy,&lt;/p&gt;
&lt;p&gt;I am going to apologize for my newbie question.&amp;nbsp; I have a similar issue to what was posted by this user but could not follow your response.&amp;nbsp; I have been self taught on InfoPath and am not familiar with manipulting code.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I created a form with a repeating section.&amp;nbsp;&amp;nbsp;In the repeating section I have a dropdown list&amp;nbsp;called &amp;#39;DistributionList&amp;#39;.&amp;nbsp; This dropdown list is populated by a&amp;nbsp;Sharepoint I set up.&amp;nbsp; The &amp;quot;display value&amp;quot; for the dropdown list&amp;nbsp;is the actual name, and the&amp;nbsp;actual &amp;#39;value&amp;#39; for that drop down list is the corresponding email address.&amp;nbsp; Next to this drop down list, I have a&amp;nbsp;&amp;#39;send email&amp;#39;&amp;nbsp;button, also inside of the repeating section.&amp;nbsp;&amp;nbsp;The idea is that I can pick&amp;nbsp;1 name in each repeating section&amp;nbsp;and click the &amp;#39;send email&amp;#39; button next to the name to send that&amp;nbsp;particular name an email.&amp;nbsp;&amp;nbsp;&amp;nbsp;The issue I am coming&amp;nbsp;up with is when the &amp;#39;send email&amp;#39; button is selected in whichever section, it will always want to email the&amp;nbsp;name selected in the very first repeating section.&amp;nbsp; So if I pick &amp;#39;bella&amp;#39; in the first section, &amp;#39;andrew&amp;#39; in the second repeating section, and click the &amp;#39;send email&amp;#39; button next to &amp;#39;andrew&amp;#39;, the system will want to send the email to &amp;#39;bella&amp;#39; instead of &amp;#39;andrew&amp;#39;.&lt;/p&gt;
&lt;p&gt;Can you help?&amp;nbsp; I was trying to manipulate the formula for the data connection but it doesnt work.&amp;nbsp; Beyond working with &amp;#39;Tools &amp;gt; Data Connections &amp;gt; Submit Data &amp;gt; as an email address&amp;gt; &amp;#39;To&amp;#39; , I wouldnt know where to start with manipulating code to make it pick the right name, but would like to learn if you dont mind helping.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;thank you for your time.&lt;/p&gt;
&lt;p&gt;bella&lt;/p&gt;</description></item><item><title>Re: unable to get the fields value in current row of a changed event in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/45303.aspx</link><pubDate>Sat, 01 Aug 2009 00:52:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45303</guid><dc:creator>naresh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45303.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45303</wfw:commentRss><description>&lt;p&gt;Hi Jimmy,&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; Thank You very much its working....It is getting the current row field&amp;#39;s value. &lt;/p&gt;</description></item><item><title>Re: unable to get the fields value in current row of a changed event in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/45301.aspx</link><pubDate>Sat, 01 Aug 2009 00:02:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45301</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45301.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45301</wfw:commentRss><description>&lt;p&gt;Please remember that using a full XPath is always wrong when you are trying to target a specific node in a repeating group (unless you want the first node or are using filters in square brackets []).&lt;/p&gt;&lt;p&gt;In a changed event, e.Site should be positioned at the node to which the event is attached (in this case it looks like it&amp;#39;s ADD_FLG).&amp;nbsp; What happens if you use&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;e.Site.Value&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;To get the value of ADD_FLG, and&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;e.Site.SelectSingleNode(&amp;quot;../CHK_VW&amp;quot;, NamespaceManager)&lt;i&gt;[+ .Value&amp;nbsp; /&amp;nbsp; .SetValue()]&lt;/i&gt; &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;To get at the CHK_VW node? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>unable to get the fields value in current row of a changed event in a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/45295.aspx</link><pubDate>Fri, 31 Jul 2009 20:42:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45295</guid><dc:creator>naresh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45295.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=45295</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a repeating table where I&amp;#39;ve got&amp;nbsp;a control(radio button) that repeats in every row.I wrote a &lt;strong&gt;changed event&lt;/strong&gt; for that radio button that it would &lt;strong&gt;show the current value of that field. &lt;/strong&gt;The code I&amp;#39;m using is here:&lt;/p&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; ADD_FLG_Changed(&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="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XmlEventArgs&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e)&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; xpath = MainDataSource.CreateNavigator();&lt;/font&gt;&lt;font size="2"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (CurrentView.ViewInfo.Name.ToString() == &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;First_View&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;e.Site.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:queryFields/tns:Z_RFC_PR_CREATE_EX/IT_PRITEMS/item/CHK_VW&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(e.Site.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:queryFields/tns:Z_RFC_PR_CREATE_EX/IT_PRITEMS/item/ADD_FLG&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value);&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; y = e.Site.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:queryFields/tns:Z_RFC_PR_CREATE_EX/IT_PRITEMS/item/CHK_VW&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value.ToString();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;My problem is: Each and every time when I click radio button, it&amp;#39;s not&amp;nbsp;getting the current field value of that particular row. Also, I tried with other options like: in place of the whole xpath, I tried with only repeatingnode/field (item/chk_vw). Even that didn&amp;#39;t work. Please help me in getting the current field&amp;#39;s value of a current row in a repeating table&lt;/p&gt;
&lt;p&gt;Thanks in advance....&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>