If this is the case, write an SQL Query that selects all columns in the table except for those which are auto incremented. In the image above, I chose SQL Query because the movie table Im connecting to has an auto incrementing column named id that needs to be excluded from the data connection. Bind Fields to Data Connection Nodes. At this point, you should have a new data connection listed in the Data View palette which contains a list of nodes, one for each column in the tables you picked while setting up the data connection The next step is to create fields to represent each node in the data connection and bind each field to its respective data node. This tutorial demonstrates how to batch import Excel data into fillable PDF forms. Connecting a Form to a Database Stefan Cameron on Forms Building intelligent forms using Adobe LiveCycle Designer. Gothic Ii Gold Edition Google on this page. The easiest way to do this is simply to drag drop the nodes from the data connection onto your form. This is handy for two important reasons The Data View palette has inspected the definition of each node and pre determined the best type of field to use in order to edit its data. When you drop the nodes onto the form, the fields that are created are automatically setup to be bound to their respective data nodes. The database Ive connected to is one that uses the Movie Data Ive used in previous tutorials. In this case, Ive connected to the Movie tables title and show. Time columns. Since the title column is described as VARCHAR, the Data View palette figured it should be a text field. Adobe Livecycle Javascript Message Box Tutorial SelfAs for the show. Time column, described as TIME, its set to be a datetime field with its Data Format property preset to Time. After youve completed this step, the Data View palette now shows the data nodes in the data connection as bound with special icons Add Control Buttons. The last step in this process consists in adding a set of controls to manipulate the records in the database obtained via the data connection. The simplest way to do this is to use a set of buttons where each is assigned one of the following statements each statement is one line and provided in Form. Calc xfa. source. Set. Data. Connection. Name. first. xfa. Set. Data. Connection. Name. previous. Set. Data. Connection. Name. next. xfa. Set. Data. Connection. Name. last. xfa. Set. Data. Connection. Name. add. New. Set. Data. Connection. Name. update. xfa. Set. Data. Connection. Name. delete. xfa. Set. Data. Connection. Name. cancelwhere Data. Connection. Name should be replaced by the name you gave to the data connection you created earlier Data. Connection by default. Each statement above represents a different action to take with the data connection Move to the first, previous, next or last record, add a new record, update or delete the current record and cancel changes to the current record, respectively. Note that the first, previous, next and last statements imply an update by default which means that if you simply usexfa. Set. Data. Connection. Name. nextto move to the next record and the user has made changes to the current record, those changes will be committed prior to moving to the next record. If you want those navigation controls not to commit changes and therefore require the user to explicitly click on the update button in order to apply any changes to the current record, you must specify the cancel statement prior to the next statement xfa. Set. Data. Connection. Name. cancel. xfa. Set. Data. Connection. Name. nextTo help you do this quicker now and in the future, heres a Library Object Snippet that you can place into the Custom tab of the Library palette youll have to save the XFO file to the following folder on your system C Documents and SettingsuseridApplication DataAdobeDesignerenobjectscustom where userid is your windows user id. Download Data Connection Controls Snippet xfoMinimum Requirements Designer 7. Acrobat 7. 0. Once you place the file in the folder indicated above, youll then have a new object in the Custom tab of your Library palette named Data. Connection. Controls. Simply drag the object onto your form and the buttons will appear, all pre configured and ready to go. Run Your Form. Now that the DSN, data connection, fields, bindings and navigation controls have been setup, you should be able to preview your form in Acrobat Pro and see the first record in the database tables pre loaded into the bound fields. If youre having problems getting this going, you can check out my form assuming youve created the Form. Builder database and a DSN for it to see if you missed any steps Download Sample pdfMinimum Requirements Designer 7. Acrobat Standard 7. Updated October 1. Posted by Stefan Cameron on September 1. Filed under Data Binding,Tutorials. Validating Fields with Custom Validation Scripts. One of the questions I get asked again and again is how to validate a field value in an Acro. Form with a custom validation script. Adobe provided a lot of infrastructure to do that with just a simple script. Lets take a look at how to do that with a text field that is only supposed to have a value of either AAAA or BBBB yes, I know that this does not make much sense in a real PDF form. So, if the user enters 0. To start, we create a text field and bring up the properties dialog for the field. Then we select the Validate tab to see the validation options The default is that the field will not get validated. For numeric fields, there is a convenient way to validate a value range, but we want to select to run a custom validation script. After the Edit button is clicked, a new window will open that allows us to edit the new script To make things easier to copy paste, here is the script again event. AAAA event. BBBB. The entered value needs to be either AAAA or BBBB. This script also includes a check for an empty string, so that the user can wipe out a wrong string and start from scratch. As I mentioned before, information is passed to the validation function in the event object, and in the code we see that the member value is used to communicate the current value of the field. The member rc or return code is used to communicate back if the validation was successful or not. In the latter case, we set rc to false, and also display an error message. When you play around with the function, youll notice that the validation function is only called when the focus leaves the field, so you have to click outside of the field to actually make that error message pop up. In that case, the previous value of the field is restored, and the user has to enter the data again. This is not always desired for more complicated data, it will probably be much easier to take a look, correct that one typo and continue with the rest of the form, so my preference is actually to mark the field so that the user knows which field needs to be corrected, and have the validation script not report a validation error back to the field event. AAAA event. BBBB. The entered value needs to be either AAAA or BBBB. Color color. red. Color color. black. Using this method has implications on the form submission process The form no longer can verify that the data is correct, so the submission function needs to do another round of validation to see if any of the required fields are not correct one way to do that is to test all relevant fields to see if the text color is using the error color, or we can use global variables to store the validation state. Another thing I like to do is to display the validation error message on the form in an otherwise hidden field The problem with our last solution is that if the user saves a partially filled form, and picks it up at a later time, that error message that popped up is long gone, and the only indication that there is something wrong with the form is the modified field color. So, having a text field contain that error message might be a good idea. There are other ways to highlight the field in question besides changing the text color, the border color or the fill color could be changed instead, or in addition, just make sure that you are not making the form impossible to read. To learn more about the event object, take a look at http livedocs. Acrobat. 10HTMLHelpJSAPIAcro. JS. 8. 8. 5. 60. html make sure to click on the button in the upper left corner to display the navigation pane if its not shown automatically.