From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: calculate in forms
Date: Wed, 22 Dec 1999 22:47:26 +0100 [thread overview]
Message-ID: <3.0.6.32.19991222224726.0085d500@pop.wxs.nl> (raw)
In-Reply-To: <0F3313EC125AD311981100105AB3A75D1EA563@N0795.mdf.fvbb.de>
Hi Lutz,
>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.
For proper testing I need a complete file.
>Is it possible that the missing "/CO [...]" near /Fields is the Reason?
>In the PDF Specification the "Calculate Order" is required.
I wonder if this entry is really needed. I want to test it first.
This calculate thing is rather fuzzy. It's often best to do it manually,
i.e. code it.
\startJSpreamble {Calculate} used now
function Calculate ()
{ v = getField("Ergebnis") ; v.value = 0 ;
v.value += getField("Summand1").value ;
v.value += getField("Summand2").value }
\stopJSpreamble
\startJScode{Format}
AFNumber_Format(2, 3, 0, 0, "", true) ; Calculate() ;
\stopJScode
\startJScode{Keystroke}
AFNumber_Keystroke(2, 3, 0, 0, "", true) ; Calculate() ;
\stopJScode
In due time I will cook up some proper auxiliary functions.
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
-----------------------------------------------------------------
next prev parent reply other threads:[~1999-12-22 21:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-20 14:48 Haseloff, Lutz
1999-12-20 15:54 ` Hans Hagen
1999-12-22 21:47 ` Hans Hagen [this message]
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=3.0.6.32.19991222224726.0085d500@pop.wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/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).