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

  • Creative cloud update issue

    "Adobe Application Manager is currently running, which must be closed before updating this product. Please close or wait for it to complete.(Error code: 82) Get help" This is the message displayed in the creative cloud application, though I'm not sur

  • Display 'No Data Found' when there is inv data but still there is xml data

    Hi, I am converting an rdf to BI publisher. The issue is when there is no detail (inv) but still there is still xml data , due to which the report is getting printed with the skeleton template and blank details(inv). I need to avoid printing the repo

  • Errors with XOR-ing

    plz i need help with da following piece of code...& i can't figure out nething abt the errors... import java.io.*; public class FileHandler     //private String fileName;     File file,outFile;     FileInputStream inStream;     FileOutputStream outSt

  • Simple Encryption and Simple Question

    Anyway, I hope it is simple! This is from an example in my text book, I have coded it up and it works great. I think I understand everything except for the subtraction of 'A' in the encryptMessage method. Any ideas? I thought it may be subtracting th

  • Adding Printer Error on Eprint center

    I have signed up for the eprint services and I have an account. I've use the eprint functionality; however, when I sign in now, it says that it can find my printer settings. However I can print from my phone, I just can't utilize the print center to