Home
 
The page you are viewing is part of our 160,000 page PDF discussion forum archive spanning 1999-2011.
Go to the new Planet PDF forum to join the PDF community.
 

Search
 Advanced   
Sign up for a WebBoard account Archive Forum Home


PLATINUM
SPONSOR

GOLD
SPONSORS



Topic  
Go to previous topicPrev TopicGo to next topicNext Topic
Author Message
eugz
eugz

Total Messages 19

Subject:save and update entered data in database

Hi All.

I created simple form in LiveCycle Designer and link that form to Access database. Now I would like to SAVE entered data in database and UPDATE existing record. I wrote JavaScript code for SAVE button in click event:

var query = 'INSERT INTO Table1 (Ticket_No, Date, Model) values ("Ticket_No", "Date", "Model")';

statement.execute(query);

Ticket_No.rawValue = ""; // clear after inserting
Date.rawValue = "";
Model.rawValue = "";

But when I click button nothing saved in database. When I manually enter data in database table and then run form I can see data in the according form fields. So I'm thinking connection is fine. How to fix problem and save entered? And how to create code for UPDATE button to update existing record?

Thanks.


Posted: 01 Dec 2010 12:08 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:save and update entered data in database

Perhaps you missed my question. Where did you take this code from (manual, web page, sample...)? Please be specific so we can follow what it says there.


Posted: 01 Dec 2010 07:09 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:save and update entered data in database

Perhaps you missed my question. Where did you take this code from (manual, web page, sample...)? Please be specific so we can follow what it says there. Please answer questions so we can guide you to a solution.


Posted: 01 Dec 2010 07:57 PM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
eugz
eugz

Total Messages 19

Subject:save and update entered data in database

see here
http://65.181.155.238/forum/forms-acrobat/populate-database-pdf-form-data


Posted: 02 Dec 2010 04:51 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
aandi
aandi

Total Messages 17064

Subject:save and update entered data in database

Thank you. A crucial point is that Acrobat forms and LiveCycle forms are completely different - not just different tools for the same job. The JavaScript commands are different too.

You'll see in this discussion the first question is whether it is an Acrobat or LiveCycle form. Unfortunately the answer is that it is an Acrobat form, so none of the rest applies to your LiveCycle form.

Also, even if you had Acrobat forms, the database connection described is switched off by default and needs a registry change (http://kb2.adobe.com/cps/333/333472.html).

Now... I understand LiveCycle forms (also called XFA forms) are much more tightly integrated with databases, based on their XML structure. Here is a web page which discusses this - http://blogs.adobe.com/formbuilder/category/data-binding.

A quick check for you when looking at information: XFA, XML, Designer and LiveCycle forms are all good things. Acroforms, Acrobat forms are bad, and any discussion before 2005. But above all, you need the documentation on LiveCycle form development.


Posted: 02 Dec 2010 05:44 AM
Originally Posted: 02 Dec 2010 05:41 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
eugz
eugz

Total Messages 19

Subject:save and update entered data in database

The tutorial is useful. Thanks.

Now I would like create more complicated form with TextFields, Drop-downList, and RadioButton. I would like create two dependent Drop-downLists. What I mean. For instance, Drop-downList1 has list of states. If I will select New York then from Drop-downList2 I will can select cities of New York state. If I will select Florida then from Drop-downList2 I will can select cities of Florida state and so on. When I made selection from both DropdownLists and click SAVE button both value must to be saved in according fields in database. Is it possible to do using LiveCycle application? And how it to do? I will appreciate for sample.

Thanks.


Posted: 04 Dec 2010 03:39 AM
Originally Posted: 03 Dec 2010 08:51 AM
Left Button SpacerView user's profile profileRight Button Spacer
 
 
   
Go to previous topicPrev TopicGo to next topicNext Topic

go




Top | News | Developer | Find PDF Tools | Sponsorship | Tips | Home



Debenu's Planet PDF - a comprehensive site exclusively focused on Adobe Acrobat/PDF users and uses. Debenu's Planet PDF - Resources for Adobe Acrobat and PDF users

Please post PDF-related questions to our Planet PDF Forum forums.planetpdf.com. To send comments about this site please visit our contact page.
Planet PDF, Planet PDF Forum, PDF SDK - Debenu Quick PDF Library and Debenu are all copyright
© 2011 Debenu Pty Ltd.. All Rights Reserved. Privacy policy.