<?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: Finding Index Of Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/41275.aspx</link><pubDate>Tue, 05 May 2009 05:33:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41275</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41275.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41275</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can get the current row index using the following expression.&lt;/p&gt;
&lt;p&gt;count(current()/preceding-sibling::my:group2) +1&lt;/p&gt;
&lt;p&gt;Use the above expression in an expression box placed in the repeating section.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Finding Index Of Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/41270.aspx</link><pubDate>Tue, 05 May 2009 02:37:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41270</guid><dc:creator>Jerome</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41270.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41270</wfw:commentRss><description>&lt;p&gt;Well looks like I found the answer to my questions:&lt;/p&gt;
&lt;p&gt;in my button click event I need to use the &amp;quot;&lt;font size="2"&gt;e.Source.SelectSingleNode&amp;quot; to return the corresponding fields.&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Finding Index Of Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/41269.aspx</link><pubDate>Tue, 05 May 2009 02:03:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41269</guid><dc:creator>Jerome</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41269</wfw:commentRss><description>Hello, I have a simiar issue where I have a button, a textbox, a dropdown list (like the schema below) and also a repeating field that I am using to save the data returns by the search button and fill the dropdown list. 
&lt;table class=""&gt;

&lt;tr&gt;
&lt;td class=""&gt;
&lt;table class=""&gt;

&lt;tr&gt;
&lt;td class=""&gt;textbox&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;
&lt;td class=""&gt;
&lt;table class=""&gt;

&lt;tr&gt;
&lt;td class=""&gt;Search button&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class="" colspan="2"&gt;
&lt;table class="" style="WIDTH:201px;HEIGHT:26px;"&gt;

&lt;tr&gt;
&lt;td class=""&gt;dropdown list&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;p&gt;textbox xPath: /my:Master/my:group3/my:gpInitiatives/my:txtPoOwner&lt;/p&gt;
&lt;p&gt;dropdown list&amp;nbsp;xPath: /my:Master/my:group3/my:gpInitiatives/my:InitiativePO&lt;/p&gt;
&lt;p&gt;repeating field xPath: /my:Master/my:group3/my:gpInitiatives/my:PrOwner&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the issue is that how do I know what button from what section I&amp;nbsp;am clicking on ?&lt;/li&gt;
&lt;li&gt;how to make sure&amp;nbsp;my button is looking at the right textbox value to search for and returns&amp;nbsp;the dataset to right repeating field to display in the right dropdown list ?&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Today no matter how many sections I have, every actions will automatically look for&amp;nbsp;and display the value in the first section.&lt;/p&gt;
&lt;p&gt;Any help would be more than appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Finding Index Of Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/26165.aspx</link><pubDate>Sat, 02 Feb 2008 08:05:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26165</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26165.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26165</wfw:commentRss><description>&lt;p&gt;What&amp;nbsp;I typically do is add a flag field to my repeating data.&lt;/p&gt;
&lt;p&gt;Set the flag empty or it could be a boolean and false.&lt;/p&gt;
&lt;p&gt;Since your button is bound with each row a set field action when it is selected will set the flag to a value for the current row.&lt;/p&gt;
&lt;p&gt;Then you can use the filter [flag=true] whenever you want to reference that row from outside the group.&lt;/p&gt;
&lt;p&gt;Make sure when you return you set all the flags back to blank or false.&lt;/p&gt;
&lt;p&gt;This way you always know the current choice.&lt;/p&gt;</description></item><item><title>Finding Index Of Repeating Section</title><link>https://www.infopathdev.com:443/forums/thread/26162.aspx</link><pubDate>Fri, 01 Feb 2008 16:01:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:26162</guid><dc:creator>keeter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/26162.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=26162</wfw:commentRss><description>&lt;p&gt;Hopefully this has an easy answer.... and thanks in advance.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a repeating section with a button associated with it...&lt;/p&gt;
&lt;p&gt;text1 | text2 | text3 | text4 | text5 |&amp;nbsp; &lt;strong&gt;Button&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;so when you add another section, the button replicates.&lt;/p&gt;
&lt;p&gt;text1 | text2 | text3 | text4 | text5 |&amp;nbsp; &lt;strong&gt;Button&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;text1 | text2 | text3 | text4 | text5 |&amp;nbsp; &lt;strong&gt;Button&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;text1 | text2 | text3 | text4 | text5 |&amp;nbsp; &lt;strong&gt;Button&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;text1 | text2 | text3 | text4 | text5 |&amp;nbsp; &lt;strong&gt;Button&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;When you CLICK the button, it takes you to a search view, and you can select some data to populate the text fields.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My question is, is there some method of knowing which row, or instance,&amp;nbsp;you came from?&lt;/p&gt;
&lt;p&gt;Like an index or something?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>