I have a dynamic table that calculates the sum of all rows, no issue.  I'm struggling with pulling out a subtotal though.  I would like to have a check box in each row  that flags those rows and gives the sum of their total.  Any help would be greatly app

I have a dynamic table that calculates the sum of all rows, no issue.  I'm struggling with pulling out a subtotal though.  I would like to have a check box in each row  that flags those rows and gives the sum of their total.  Any help would be greatly appreciated.

Here's something I threw together rq. The script is in the change event for the checkbox in the table. (Of course, you'll have to modify it to suit the names of your fields.)
var rows = xfa.resolveNodes("tblAmounts.Row1[*]");
var subtotal=0;
for (i=0; i<rows.length; i++) if (rows.item(i).cbAdd.rawValue == 1) subtotal = subtotal + rows.item(i).nfAmount.rawValue;
nfSubtotal.rawVlaue=subtotal;

Similar Messages

Maybe you are looking for

  • Date stays at 09.05.11, how to change?, date stays at 09.05.11, how to change?

    whenever i make use numbers and try to enter a date, it will autocorrect so that the date is whatever month i entered.05.whatever year i entered.  When i use howler, the date for the alarm is always 09.05.11.  I know this was the release date, so it

  • Stationery (templates) behaviour question

    As a Licensed Old Crank, I've done what I can to get rid of Starting Points, and never have gone into Templates. Recently I created a blank, landscape oriented 11x17 document in Draw and saved it where I wanted, as Stationery (.cws) for on-going use

  • How To Install Oracle AS 10.1.3 On Itanium Servers With Montecito

    Hi All, I have problem when install AS 10.1.3 as following: - Oracle AS 10.1.3.0.0 (download from OTN) - Windows 2003 sp Intanium with Montecito - Can not display OUI. I see the same problem with RDBMS and Oracle supply patch for RDBMS but no patch f

  • InDesign CC plugin crashing when using std::stringstream

    Hello, We have a plugin for InDesign, for which we've been using the same code base since CS5. It has worked for CS5, CS5.5, and CS6. We're currently porting it to CC and CC2014. The CC2014 port appears to work correctly. However, the CC port crashes

  • Vulnerability

    Hi! I want to clear one question exactly – Windows and *NIX systems. Vulnerability is up to all the systems. The system is free for Vulnerability until we know it has Vulnerability. Are there some key points make the approach different for Windows an