PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________
I'm still waiting for my OSX Acrobat to come in but on windows the predefined javascript functions are in the /Acrobat/Javascripts directory. AFS is in the aform.js file along with numerous other functions, objects and arrays. Glad I could help.
On Friday, December 19, 2003, at 12:07 PM, James Plante wrote:
PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
Thanks for the answer Vincent. I could do it with a JS loop in the "Custom Calculation" pane, but I'd rather avoid the slow iteration of JS if I can. Got nearly 200 fields on that form, and each "calculate" script fires every time you change one of them.
The way Adobe illustrates Simplified Field Notation is that you can use (Quoting the help file) "Sum = Field1 + Field2" instead of "this.getField("Sum").value = this.getField("Field1").value + this.getField("Field2").value" in the custom calculation panel. Using the top pane of the calculation panel, the results are displayed much faster and without any apparent iteration. I'm hoping that using SFN will produce similar speedy results, and a lot less typing.
But I can't find any syntax definition. I don't know whether you have to define your own function scripts, or whether they're built-in, or what the limitations are.
Jim Plante <[EMAIL PROTECTED]>
On Dec 19, 2003, at 8:00 AM, Vincent Niehaus wrote:
PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
Maybe I can help. Trying to familiarize myself with these functions also.
AFSimple_Calculate("SUM", new Array ("comp.1.A.0", "comp.1.A.5"));
Or
Put this in the Calculate tab of the Field you working with
event.target.setAction("CALCULATE", 'AFSimple_Calculate("SUM", "comp.1.A")');
Perhaps
On Thursday, December 18, 2003, at 08:45 AM, James Plante wrote:
PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________
Does anybody know where to find documentation of the syntax and functions available in Simplified Field Notation for field calculations? The so-called "Complete" help mentions it once--and says that you can use it. No examples, no forward references, no nothing. Tried the Adobe Tutorials section on their website; null result.
Here's the problem:
System info: Mac iBook, OSX 10.3.1, Acro Pro 6.0.1
Problem: Trying to sum a bunch of nested fields in a field calculation script, and don't want to use a JS loop. So I tried Simplified Field Notation. Fields are named "comp.1.A.0" through "comp.1.A.5". Tried "Sum(comp.1.A)" with and without capital "S"; and with and without "=" in front of the "Sum."
Jim Plante <[EMAIL PROTECTED]>
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html
