From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1456 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: calculate in forms Date: Mon, 20 Dec 1999 16:54:18 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.19991220165418.007e99e0@pop.wxs.nl> References: <0F3313EC125AD311981100105AB3A75D1EA563@N0795.mdf.fvbb.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035392280 453 80.91.224.250 (23 Oct 2002 16:58:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:58:00 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: "Haseloff, Lutz" In-Reply-To: <0F3313EC125AD311981100105AB3A75D1EA563@N0795.mdf.fvbb.de> Xref: main.gmane.org gmane.comp.tex.context:1456 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1456 At 03:48 PM 12/20/99 +0100, Haseloff, Lutz wrote: >I want to prepare a form with calculating fields. >My file looks like this: >..... >\startJScode{Format} >AFNumber_Format(2, 3, 0, 0, "", true); >\stopJScode >\startJScode{Keystroke} >AFNumber_Keystroke(2, 3, 0, 0, "", true); >\stopJScode >\startJScode{Calculate} >AFSimple_Calculate("SUM", new Array ("Summand1", "Summand2")); >\stopJScode >.......%%% I use the Scripts from AForm.js because my JS programming is poor >\setupfield > [ErgSetup] > >[frame=on,width=8cm,height=4ex,format=JS(Format),afterkey=JS(Keystroke),calc >ulate=JS(Calculate)] >........ >\hbox to 11cm{Summand 2:\hfill \field[Summand2]} > >\hbox to 11cm{Ergebnis :\hfill \field[Ergebnis]} >........... > >All scripts are at the right places in the pdf-file (tested with Acrobat) >and the format and afterkey >scripts work very fine. >Only the calculation does not work. > >Is it possible that the missing "/CO [...]" near /Fields is the Reason? >In the PDF Specification the "Calculate Order" is required. Hm. I'll have to look into that. At our site there is a demo using calculations: travel. You could take a look at that too check. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------