I have a form that is in Word, it opens and convert great. However I'am trying to attach a MSSQL server database to it. I use the dataconnect it come in great I add the fields great. However when I preview cannot see data, I did once but can't any more. Also I want to be able to update the database using the form.
search the database to find record and load in form. I just need a little start on how to Open, view and update data using the PDF form.
But to get you started, the DB is linked though the "sourceSet" model. So to navigate to the first record in a DB connection named "MyConn".
xfa.sourceSet.MyConn.first();
To goto the next record
xfa.sourceSet.MyConn.next();
you'll find all the functions in the XFA object reference. There is also an extensive set of video tutorials and examples on this topic at www.pdfscripting.com
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script