Repeating Section - Change Subtotal when section is deleted - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » Repeating Section - Change Subtotal when section is deleted Use our Google Custom Search for best site search results. Repeating Section - Change Subtotal when section is deleted Last post 03-23-2011 09:41 AM by BlondeGymnastGeek. 4 replies. Page 1 of 1 (5 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 03-22-2011 12:26 PM BlondeGymnastGeek Joined on 05-25-2010 Posts 26 Repeating Section - Change Subtotal when section is deleted Reply Contact I have a form with a repeating section, and certain fields in the section get added to a subtotal outside the section. My question is, when a person deletes a section how do I subtract the amount in the repeating section from the subtotal? Filed under: repeating section, "Repeating Section fields", repeating section events 03-22-2011 12:53 PM In reply to BlondeGymnastGeek Joined on 05-25-2010 Posts 26 Re: Repeating Section - Change Subtotal when section is deleted Mark as Not AnswerMark as Answer... Reply Contact By the way, this InfoPath for submits to SP2007. So I don't think I can enable any code. I've had problems with that before. 03-22-2011 07:25 PM In reply to Patrick Halstead Joined on 08-08-2006 Posts 5,110 Re: Repeating Section - Change Subtotal when section is deleted Mark as Not AnswerMark as Answer... Reply Contact Use a calculated value for your total that uses the xpath command "sum(group)" where group is the repeating group node in your data source corresponding to the repeating section (the one with the little blue thing on it). Note that calculated values are called expression boxes in InfoPath 2007. Patrick HalsteadProject Manager at Qdabra 03-23-2011 05:32 AM In reply to BlondeGymnastGeek Joined on 05-25-2010 Posts 26 Re: Repeating Section - Change Subtotal when section is deleted Mark as Not AnswerMark as Answer... Reply Contact Ok thanks! I will look into that. Also I have a field with number of instances so that I can calculate an average. Maybe I can use the same method but use count(group) instead. 03-23-2011 09:41 AM In reply to BlondeGymnastGeek Joined on 05-25-2010 Posts 26 Re: Repeating Section - Change Subtotal when section is deleted Mark as Not AnswerMark as Answer... Reply Contact Thanks Patrick, don't know why I hadn't thought of that! It works now! Page 1 of 1 (5 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Use our Google Custom Search for best site search results.
I have a form with a repeating section, and certain fields in the section get added to a subtotal outside the section. My question is, when a person deletes a section how do I subtract the amount in the repeating section from the subtotal?
By the way, this InfoPath for submits to SP2007. So I don't think I can enable any code. I've had problems with that before.
Use a calculated value for your total that uses the xpath command "sum(group)" where group is the repeating group node in your data source corresponding to the repeating section (the one with the little blue thing on it). Note that calculated values are called expression boxes in InfoPath 2007.
Ok thanks! I will look into that. Also I have a field with number of instances so that I can calculate an average. Maybe I can use the same method but use count(group) instead.
Thanks Patrick, don't know why I hadn't thought of that! It works now!