Discussion:
How to retrieve a data from a "table"? (Javascript)
(too old to reply)
nub nab
2012-02-17 23:19:44 UTC
Permalink
Hi,

(Adobe Acrobat)

I am trying to write a code to retriece a data from a table (in a
form)
here are the pictures of the form:

Loading Image...

Loading Image...



here is the code (which doesn't work) (screen capture):

Loading Image...

"Texte74","Texte76","Texte78","Texte80"
,"Texte82" are missing from the capture


At present I wrote a code which matches the number of lines to the
poem selected
Eg. if I select the poem V.Hugo, the number "36" will appear next to
Number of lines.

I would like a code which detects this number “36” on the "From .. to
…" column,
as soon it is detected, check from the same line if "A / Pass" or "B /
Pass" have been selected from the combo box
if yes, the short date inputted on this line will be given to the
field "d2" (next to: Date finished)

More generally, I would like to automate the field next to" Date
finished:" named "d2" with a code that retrieve the short date from
the day in which the student has finished his memorisation with "A /
Pass" or "B / Pass"


Also in the code I didn't know how to add this condition of getting A
or B for the Grade.

Can someone help me to find a solution?

thank you


(this file: initially created with .doc then converted in .pdf then I
added all the necessary fields for the form, so there is no table in
it)
BAlheit
2012-02-18 15:40:09 UTC
Permalink
Post by nub nab
http://img11.hostingpics.net/pics/354926scriptpicture.jpg
At beginning of function Datefinished you use bFields[i] without
assigning a value to i.

Loading...