From: "Haseloff, Lutz" <Lutz.Haseloff@mdf.brandenburg.de>
Subject: calculate in forms
Date: Mon, 20 Dec 1999 15:48:21 +0100 [thread overview]
Message-ID: <0F3313EC125AD311981100105AB3A75D1EA563@N0795.mdf.fvbb.de> (raw)
Hi all, Hi Hans,
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.
Greetings
Lutz
next reply other threads:[~1999-12-20 14:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-20 14:48 Haseloff, Lutz [this message]
1999-12-20 15:54 ` Hans Hagen
1999-12-22 21:47 ` Hans Hagen
1999-12-28 10:19 Haseloff, Lutz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0F3313EC125AD311981100105AB3A75D1EA563@N0795.mdf.fvbb.de \
--to=lutz.haseloff@mdf.brandenburg.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).