<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Repeating Tables and Expressions...</title><link>https://www.infopathdev.com:443/forums/thread/6750.aspx</link><pubDate>Wed, 27 Apr 2005 15:41:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6750</guid><dc:creator>sainzmichael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6750.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6750</wfw:commentRss><description>Nevermind, I have figured it out. A mistake on my part.</description></item><item><title>Re: Repeating Tables and Expressions...</title><link>https://www.infopathdev.com:443/forums/thread/6749.aspx</link><pubDate>Wed, 27 Apr 2005 15:17:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6749</guid><dc:creator>sainzmichael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6749.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6749</wfw:commentRss><description>Shiva,&lt;br /&gt;&lt;br /&gt;That is exactly what I needed. Now since this form is connected to a database, my values are not posted until I hit submit. How do I do a calculation in the form with values that are not submitted to the database yet? When I follow your instructions and use SUM and bind that to a field, the field where SUM is bound is zero and i'm guessing its because it's looking at the database and finding no data yet.</description></item><item><title>Re: Repeating Tables and Expressions...</title><link>https://www.infopathdev.com:443/forums/thread/6748.aspx</link><pubDate>Wed, 27 Apr 2005 13:55:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6748</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6748.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6748</wfw:commentRss><description>Hello Sainzmichael,&lt;br /&gt;   What you want to do can be done directly using the default InfoPath SP1 functionality (without any code). For the subTotal field set the Default value as number(Price) - number(Discount). This will give you the sub total value for each line item.&lt;br /&gt;&lt;br /&gt;Now in the grand total field set the Default value as sum(subTotal). What sum does it returns the sum of all nodes in the Node-set. Therefore your Grand total field will have the sum of all subtotal fields.&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;shiva</description></item><item><title>Re: Repeating Tables and Expressions...</title><link>https://www.infopathdev.com:443/forums/thread/6747.aspx</link><pubDate>Tue, 26 Apr 2005 16:24:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6747</guid><dc:creator>sainzmichael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6747.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6747</wfw:commentRss><description>Hey Pat,&lt;br /&gt;I'm trying to create just a normal order sheet with fields for price, discount and line total in a repeated table. At the bottom of the table, I would like a grand total of all the lines together. The issue is when I try to calculate a grand total, there may be 1 line item, there may be 10 line items. How do I tell Infopath to figure out the total from line items when thats a variable? I would prefer to do this useing XPath because I took a look at the code (or at least tried too) but since its in jscript (I think...) it was all giberish to me.&lt;br /&gt;&lt;br /&gt;Thanks Pat!</description></item><item><title>Re: Repeating Tables and Expressions...</title><link>https://www.infopathdev.com:443/forums/thread/6746.aspx</link><pubDate>Sat, 23 Apr 2005 20:14:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:6746</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/6746.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=6746</wfw:commentRss><description>Hi Sainzmichael,&lt;br /&gt;Welcome to the board! Can you reply with the calculation/xpath that you are using for the function? Also, what's the data source look like? You might want to take a look at the code in the Invoice, Timecard, or Absence Request solutions to see how totals are calculated, but those are all version 1 solutions written in script and SP1 (the latest version) actually has a lot of support for calculations built-in to the designer, so you should be able to do it using xpath.&lt;br /&gt;Cheers,&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Repeating Tables and Expressions...</title><link>https://www.infopathdev.com:443/forums/thread/4633.aspx</link><pubDate>Fri, 22 Apr 2005 23:13:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4633</guid><dc:creator>sainzmichael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4633.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4633</wfw:commentRss><description>Hey all...first time posting here. Once I saw all the good information here, thought I would try it out ;)&lt;br /&gt;&lt;br /&gt;I have made a order form with a repeating table for line items, very similar to the Invoicing sample. Problem is, I am binding all the textboxes and stuff to SQL. I guess that isn't the real problem here. The real problem is form related...on each line item, there is a sub total and at the bottem of the table there is a final total. But when I try to create the text box function to calculate all the sub totals for each line and display the sum, it only displays the first line item total and doesn't add the rest.&lt;br /&gt;&lt;br /&gt;The reason i'm posting here is that I have taken a look at the samples and they don't seem to have any default functions for the textboxes at all. That is confusing.&lt;br /&gt;&lt;br /&gt;Anything helps! Thanks.</description></item></channel></rss>