on 03-13-2009 10:15 AM
How to do sub-totalling based on a certain field in Adobe-Forms?Please reply...
Hi,
Please find the below sample code to handle the page wise subtotals
Select "Events with Scripts" in the Show drop down list
Select "JavaScript" in the Language drop down list
Run at: "Client" as shown below.
var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
var total = 0;
for (var i=0; i <= fields.length-1; i++) {
if (fields.item(i).name == "PRICE") {
total = total + fields.item(i).rawValue;
}
}
this.rawValue = total;
Thanks
Ramakrishna Pathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.