I've created a project which works perfect when run on the PC where it was created. It's using an Access database, and the PDF file is populated from the MDB file.
There are 3 tables in the database. The PDF file is set regarding the User's access rights, so all is good there.
Now what I don't understand, not for want of trying:
The form has a drop-down menu from where the Product Number is chosen, for example B123,B124,B125, etc...
When the item is found the user clicks on a button called 'Review' and here's where the problem occurs. I get the error box, but it just says "Script Failed...". but no other clue to the problem.
But, why should the drop-down menu work perfectly, but when we come to accessing the remainder of the record up comes the problem.
I've run the same exercise on some of the tutorial databases and I hit the same error.
The User machines are using Acrobat Reader (Standard) - is this the source of the problem?? Everything will be done via a shared drive - ie not via a server.
Help!!!!!!
thanks
Al
However, if you are getting some DB access then you should get everything. There's no halfway when it comes to reading a DB. Are you sure that the Drop-Down is actually doing a DB access? Is the first access when the item is selected, when the first error occurs? If not, and you are getting a access at one point and not at another then it's possible that there is a coding problem.
The way to debug this is to use the console window to find out at what point the code the failure is happening by using "console.println()" statements. See this article:
http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/javascript_console/
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script