<?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: Repeating Tables and calculations</title><link>https://www.infopathdev.com:443/forums/thread/48793.aspx</link><pubDate>Mon, 09 Nov 2009 10:57:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48793</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48793.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=48793</wfw:commentRss><description>&lt;p&gt;Hi Arran,&lt;/p&gt;
&lt;p&gt;If the fields in the row are all in the main data source, you can use xpath to correctly select them when doing the calculations. There is a function called preceding-sibling which you will want to master. Here are a bunch of links:&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNormal"&gt;&lt;a href="http://www.infopathdev.com/blogs/greg/archive/2005/06/13/Using-XPath_2700_s-_2700_preceding_2D00_sibling_2700_-Axis-Correctly.aspx"&gt;&lt;font color="#800080" size="3" face="Calibri"&gt;http://www.infopathdev.com/blogs/greg/archive/2005/06/13/Using-XPath_2700_s-_2700_preceding_2D00_sibling_2700_-Axis-Correctly.aspx&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNormal"&gt;&lt;a href="http://www.infopathdev.com/blogs/greg/archive/2004/07/08/Identify-the-Current-Table-Row.aspx"&gt;&lt;font size="3" face="Calibri"&gt;http://www.infopathdev.com/blogs/greg/archive/2004/07/08/Identify-the-Current-Table-Row.aspx&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 0pt;" class="MsoNormal"&gt;&lt;a href="http://www.infopathdev.com/blogs/greg/archive/2005/07/14/Create-a-Repeating-Cascading-List-from-a-Hierarchical-Data-Source.aspx"&gt;&lt;font size="3" face="Calibri"&gt;http://www.infopathdev.com/blogs/greg/archive/2005/07/14/Create-a-Repeating-Cascading-List-from-a-Hierarchical-Data-Source.aspx&lt;/font&gt;&lt;/a&gt;&lt;font size="3" face="Calibri"&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Happy trails!&lt;/p&gt;</description></item><item><title>Repeating Tables and calculations</title><link>https://www.infopathdev.com:443/forums/thread/48650.aspx</link><pubDate>Thu, 05 Nov 2009 01:37:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48650</guid><dc:creator>Arran</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48650.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=48650</wfw:commentRss><description>&lt;p&gt;Hello, &lt;/p&gt;
&lt;p&gt;I hit a block working on a form with a repeating table.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I want to select a row out of a predefined table and run calculations on other fields in that row, currently my form only uses the first row of the table for the calcuations.&lt;/p&gt;
&lt;p&gt;&lt;img title="Image01" style="WIDTH:665px;HEIGHT:110px;" height="110" alt="Image01" src="http://img410.imageshack.us/img410/3954/infopathimage01.jpg" width="665" /&gt;&lt;/p&gt;
&lt;p&gt;I linked the HallName drop down box to the data source (should it be linked to the table or the field?) and that works fine.&lt;/p&gt;
&lt;p&gt;&lt;img title="Image03" style="WIDTH:390px;HEIGHT:224px;" height="224" alt="Image03" src="http://img254.imageshack.us/img254/2193/infopathimage04.jpg" width="390" /&gt;&lt;/p&gt;
&lt;p&gt;AccessTable&amp;nbsp;- This table is an XML table included with the form, it holds information on five seperate sites each listing the cost of their hourly Rate and other resource information. &lt;em&gt;(I have this saved in XML or can use a Sharepoint list, i do not have to use access if it makes a difference)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img title="Image02" style="WIDTH:268px;HEIGHT:345px;" height="345" alt="Image02" src="http://img291.imageshack.us/img291/1035/infopathimage03.jpg" width="268" /&gt;&lt;/p&gt;
&lt;p&gt;One last piece of information,&amp;nbsp;I have two tables - the first holds all the pricing information and the second is built for the final invoice style output.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basically what i want to do is use the &amp;quot;RateType&amp;quot; dropdown list to pick what number to multiply with the HoursBooked field.&lt;/p&gt;
&lt;p&gt;Hope this makes sence.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Arran&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>