cancel
Showing results for 
Search instead for 
Did you mean: 

javascript and formcal

Former Member
0 Kudos

hi gurus,

can anyone explain me abt javascript and formcal, i have use it in adobe forms.

example will be appricaiated.

Thanks and regards

D.sharma

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member705122
Active Contributor
0 Kudos

Hi,

Go through this links:

http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf

http://partners.adobe.com/public/developer/en/xml/formcalc_2.0.pdf

This code is to calculate the page total through JavaScript:

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 == "KWMENG") {
total = total + fields.item(i).rawValue;
}
}
this.rawValue = total;

This code is to calculate the grand total through FormCal:

sum(pag1.Table1.Row1[*].KWMENG[*])

go throug the help->adobe livecycle designer help.

Regards

Adil