This is a Code Blue, Defcon 3 request for help using Adobe Liveclcyle to read data from a MS Access Database. I have looked at this for 3 days and several tutorials, blogs ... anyone have this problem? By the way, I downloaded an example of this posted by Paul Guerette Web Demo - hoping to see if I could get his example working on my machine, then take the learning and resolve my own form that I am designing to do the samething. Here is what I have done so far.
1.) Created a DSN Connection to the MS Database (Parts.mdb)- attached below
2.) Open the form in Livecycle and verified that the DataConnection can be seen by the form... the (Test Connection) worked perfectly.
3.) Performed the PDF Preview and the form loads ups with the first record from the database... so I know the connection is there.
4.) Press the (Next) Button and get the following message form the JavaScript Debugger Console:
TypeError: xfa.sourceSet.DataConnection is undefined
Looks like to me it cannot recognize the DataConnection anymore... however the first record displayed when the form was rendered. I have tried changing the script window from 'JavaScript' to 'FormCalc' and I get basically the same message, just related to FormCalc.
This is very confusing and I am not sure what to look at next. If someone has some suggestions or encountered this before, any help would be greatly appreciated.
I have also tried running a different form whereas multiple records would be read from the same database into a repeating subform, but when I press the button on the form to (GET DATA) , I get the following message on the JavaScript console:
GeneralError: Operation failed
XFAObject.item:19:XFA:form1[0[:#subform[0]:Button1[0]:click
Index value is out of bounds
Are all of the errors caused by something I have not setup correctly, DSN, LiveCycle version?
Thank you in advance to anyone who can help!!!
- Craig Tate
But regardless, it's best to start small and then build. So, what is the name of your data connection?
And what is the code being run by the "Next" button?
There is an entire set of videos at www.pdfscripting.com that covers this topic in detail, including sample files.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script