ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: calculate in forms
Date: Mon, 20 Dec 1999 16:54:18 +0100	[thread overview]
Message-ID: <3.0.6.32.19991220165418.007e99e0@pop.wxs.nl> (raw)
In-Reply-To: <0F3313EC125AD311981100105AB3A75D1EA563@N0795.mdf.fvbb.de>

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
-----------------------------------------------------------------


  reply	other threads:[~1999-12-20 15:54 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 [this message]
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=3.0.6.32.19991220165418.007e99e0@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).