<?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: Getting Values from Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/39921.aspx</link><pubDate>Tue, 24 Mar 2009 17:31:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39921</guid><dc:creator>zxkuqyb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39921.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39921</wfw:commentRss><description>&lt;p&gt;This is good stuff...I have a similar, but different&amp;nbsp;question...thru a slight adjustment to what you&amp;#39;ve done here, how would I:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; Evaluate a &amp;quot;UserName&amp;quot; Field on a repeating table (User names will vary across the repeating rows)&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp; Compare it to the &amp;quot;CurrentUser&amp;quot; who is signed in (I get this value from the&amp;nbsp;GetUserProfileByName Web Service)&lt;/p&gt;
&lt;p&gt;3.&amp;nbsp; Disable a Radio Button on the Repeating Row where the &amp;quot;UserName&amp;quot; on that specific row != the &amp;quot;CurrentUser&amp;quot;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;examples on this site are awesome and when I modify one of your examples:&amp;nbsp; not(/my:Fields/my:BMApproval_Section/my:BMDetail_Group/my:BrandManager[. = /my:Fields/my:Misc/my:Current_User])&lt;/p&gt;
&lt;p&gt;it appears as if it doesn&amp;#39;t discriminate accross each Repating Row, rather, the entire table.&amp;nbsp; How would I alter the above statement to evaluate the &amp;quot;BrandManager&amp;quot; against the &amp;quot;CurrentUser&amp;quot; to hide the Radio Button Control if they don&amp;#39;t equal each other?&lt;/p&gt;
&lt;p&gt;Many Thanks!!!&lt;/p&gt;</description></item><item><title>Re: Getting Values from Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/3234.aspx</link><pubDate>Wed, 04 Oct 2006 17:49:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3234</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3234.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3234</wfw:commentRss><description>This does make things a little more complicated, but I think all you will have to do is adjust the XPath.  I gave two XPaths in the previous example, you will need to adjust them to read as follows:&lt;br /&gt;&lt;br /&gt;(BTW - this condition is to HIDE the row of the repeating section)&lt;br /&gt;not(. = preceding-sibling::my:RepeatingGroup/my:Name) OR not(/my:FORM_ROOT/my:RepeatingGroup[my:GameNum = /my:FORM_ROOT/my:GameDropDown and my:Name = current()/my:Name])&lt;br /&gt;&lt;br /&gt;---------------------&lt;br /&gt;sum( ../my:RepeatingGroup[my:Name = current()/my:Name and my:GameNum = /my:FORM_ROOT/my:GameDropDown]/my:Total)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note that the change in the first XPath is only necessary if not every person plays every game.  I added the filter to only show people that actually played the game that is chosen, but it is assumed that every person plays every game then the original XPath should work.&lt;br /&gt;&lt;br /&gt;I hope this helps, let us know if you need any other help!</description></item><item><title>Re: Getting Values from Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/3233.aspx</link><pubDate>Wed, 04 Oct 2006 14:41:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3233</guid><dc:creator>wt1024</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3233.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3233</wfw:commentRss><description>Thanks, &lt;br /&gt;&lt;br /&gt;I got it to work.&lt;br /&gt;&lt;br /&gt;But I left out something important in my original question.&lt;br /&gt;&lt;br /&gt;I actually have 3 columns (game number, name, score) and a dropdown box.  I was trying to make it so when I choose the game number in the dropdown box, it would show the total score of each person for that game.  &lt;br /&gt;&lt;br /&gt;I know this complicates things quite abit, but is it possible??&lt;br /&gt;&lt;br /&gt;so i have a table like this&lt;br /&gt;&lt;br /&gt;Game#, Name, Score&lt;br /&gt;1 John 12&lt;br /&gt;1 David 14&lt;br /&gt;1 John 15&lt;br /&gt;2 John 16&lt;br /&gt;1 David 10&lt;br /&gt;2 Jane 17&lt;br /&gt;2 David 16&lt;br /&gt;1 David 12&lt;br /&gt;&lt;br /&gt;so when i choose game 1 i would get&lt;br /&gt;Name Score&lt;br /&gt;John 27&lt;br /&gt;David 24&lt;br /&gt;&lt;br /&gt;and when i choose game 2  i would get&lt;br /&gt;Name Score&lt;br /&gt;John 16&lt;br /&gt;David 16&lt;br /&gt;Jane 17</description></item><item><title>Re: Getting Values from Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/3232.aspx</link><pubDate>Mon, 02 Oct 2006 23:19:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3232</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3232.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3232</wfw:commentRss><description>Yes, you should be able to do this without adding anything to your schema by employing some rather tricky XPath and view tricks.&lt;br /&gt;&lt;br /&gt;1. Right-click and drag the repeating group into the view as a repeating section.&lt;br /&gt;&lt;br /&gt;This repeating group will be exactly what you have as the input table and it will display all of the rows, but you only want to display unique rows.  To do this, add conditional formatting on the repeating section.&lt;br /&gt;&lt;br /&gt;2. Double-click the new repeating section, go to Display tab, and then click Conditional Formatting.&lt;br /&gt;3. Click the Add button, and add the condition something like this: &amp;quot;not(. = preceding-sibling::my:RepeatingGroup/my:Name)&amp;quot;.  See this HowTo for a similiar example: http://infopathdev.com/howto/tutorials/default.aspx?i=51dce616335a4ff6a78f2d289baf4651&lt;br /&gt;&lt;br /&gt;Now that you are displaying the first instance of each name, you need to add expression boxes to display the information.&lt;br /&gt;&lt;br /&gt;4. From the Controls task pane insert an expression box into the new repeating section.&lt;br /&gt;5. From the XPath selection dialog, select the Name node, and then click OK.&lt;br /&gt;6. Add another expression box, but this time you will use a formula.  The formula will be of this form: &amp;quot;sum( ../my:RepeatingGroup[my:Name = current()/my:Name]/my:Total)&amp;quot;&lt;br /&gt;&lt;br /&gt;After this everything should be work.  This is pretty straightforward, but getting the XPath expressions correct might take some tweaking.  Let us know if you need any more help!</description></item><item><title>Getting Values from Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/1577.aspx</link><pubDate>Mon, 02 Oct 2006 14:53:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1577</guid><dc:creator>wt1024</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1577.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1577</wfw:commentRss><description>Hi &lt;br /&gt;I am trying to get the sum of some of the values in a repeating table.  I was wondering if this can be done, if so, can anyone tell me how this is done.  Thanks,&lt;br /&gt;&lt;br /&gt;Lets say I have a table like this&lt;br /&gt;&lt;br /&gt;Name          Score&lt;br /&gt;John          12&lt;br /&gt;David         14&lt;br /&gt;John          15&lt;br /&gt;John          16&lt;br /&gt;David         10&lt;br /&gt;Jane          17&lt;br /&gt;&lt;br /&gt;What I want is &lt;br /&gt;&lt;br /&gt;Name          Score&lt;br /&gt;John          43&lt;br /&gt;David         24&lt;br /&gt;Jane          17</description></item></channel></rss>