SlideShare a Scribd company logo
5 saving data to the database
Saving data to the database

This tutorial tells you how to create a database table to save the data from your form.

Create the table 1




Go to the Forms Manager. Select the checkbox for your form then click the 'Create Table' icon in the tool bar.




Saving data to the database - 1                                                                                  Tutorial by GreyHead ~ www.greyhead.net
Create the table 2




Make a note of the table name in the box at the top. This will probably be jos_chronoforms_ + your form name.
Then, for a simple table, it is enough to check the 'Create Column?' box which will select all the fields; then click Save Table. This will create a
new table in the database and create the code to save the data from your form.

There are several other options on this page: to set indexes for the table, to add fields or to skip them and to set field types. Unless you are familiar
with databases and understand these options it's best to leave them alone for the moment.

The one exception is that if you have any 'textareas' in your form where you expect long entries, it might be useful to select 'TEXT' as the Column
Type for that field.




Saving data to the database - 2                                                                                     Tutorial by GreyHead ~ www.greyhead.net
Save the table




Once you click Save Table you will be returned to the Forms Manager and you should see the message 'Table has been created successfully'.
Notice that the Tables Connected column to the right is still empty.
Click the form name to edit the form.




Saving data to the database - 3                                                                            Tutorial by GreyHead ~ www.greyhead.net
Make the connection




In the Form Editor: select the 'DB Connection' tab; set 'Enable Data storage' to Yes; scroll down to find your table name (from step 3 above)
and select it. Click the Save icon in the toolbar to save your form.

Note: you can select other tables here instead of the one created for this form. This is a very powerful feature that allows your forms to interact with
other elements of Joomla. It also has the potential to damage your Joomla installation so do not use it unless you are certain that you know exactly
what you are doing.

Saving data to the database - 4                                                                                    Tutorial by GreyHead ~ www.greyhead.net
Confirm the table connection




You should now see that the table name appears in the Tables Connected column to confirm the connection.
Your database connection is now complete . . . we will test it and then look at a couple of other ChronoForms features.

Open your form in a new window or tab (using the Link here is the simplest way) and submit a test entry.
Once you've done that return to the Form Manager and click the Table link.



The data browser




Here you will see the ChronoForms data browser. Using the checkboxes you can select and delete records; and you can backup your data to an

Saving data to the database - 5                                                                                Tutorial by GreyHead ~ www.greyhead.net
Excel or a CSV (comma separated variable) file to save a copy or to use it in another application.
You can click on a record id to view the record contents.



Viewing the record




This is a very simple display showing the data submitted from your form. The earlier fields are automatically created by ChronoForms. They make
sure that the data is uniquely identified and record when it was submitted and by whom.
Click the Cancel icon in the toolbar to return to the table viewer; and then Cancel again to return to the Form Manager.




Saving data to the database - 6                                                                              Tutorial by GreyHead ~ www.greyhead.net
The Autogenerated Code tab




Finally, go to the Form Editor again and click the AutoGenerated Code tab.
You can leave all these settings as they are for the moment. They give you some extra controls over the way form data is handled when it is
saved.



Saving data to the database - 7                                                                               Tutorial by GreyHead ~ www.greyhead.net
Note: Although you can edit the Main code box here ChronoForms will not save your changes!!




Saving data to the database - 8                                                               Tutorial by GreyHead ~ www.greyhead.net

More Related Content

PDF
Adding A New Field
PPTX
Xml For Dummies Chapter 16 Xml And Forms it-slideshares.blogspot.com
PDF
MS Access 2007 in ITT
PDF
Ms access notes
PDF
Microsoft Access 2010 - a jargon free guide
PPTX
Class viii ch-3 working with tables
PDF
MS Access 2010 tutorial 5
PDF
Microsoft Access Notes 2007 Ecdl
Adding A New Field
Xml For Dummies Chapter 16 Xml And Forms it-slideshares.blogspot.com
MS Access 2007 in ITT
Ms access notes
Microsoft Access 2010 - a jargon free guide
Class viii ch-3 working with tables
MS Access 2010 tutorial 5
Microsoft Access Notes 2007 Ecdl

What's hot (20)

PPTX
Access lesson 01 Microsoft Access Basics
PDF
Basic introduction to ms access
PPTX
Gl13 m7-c1-presentation
PDF
MS Access 2010 tutorial 3
PPTX
Ms access 2010 lesson 3 (Interface)
PPTX
MS ACCESS (REPORT)
DOC
Acccesss notes
PPTX
Xml For Dummies Chapter 17 Serving Up The Data Xml And Databases
PDF
Basic Access Notes
PPTX
Access lesson 06 Integrating Access
PPTX
L3 ms access 2010 interface
PPTX
Lesson Four Setting Up Tables And Fields
PPTX
Chapter.11
PDF
MS Access 2010 tutorial 4
PDF
Access 2007 lecture notes students
PDF
2017 Editable Thesis Checklist PDF
PPT
Ms Access ppt
PPTX
PPT On MS-Access 2007 | Full Concepts |
PDF
SharePoint Lists 101 (Text)
Access lesson 01 Microsoft Access Basics
Basic introduction to ms access
Gl13 m7-c1-presentation
MS Access 2010 tutorial 3
Ms access 2010 lesson 3 (Interface)
MS ACCESS (REPORT)
Acccesss notes
Xml For Dummies Chapter 17 Serving Up The Data Xml And Databases
Basic Access Notes
Access lesson 06 Integrating Access
L3 ms access 2010 interface
Lesson Four Setting Up Tables And Fields
Chapter.11
MS Access 2010 tutorial 4
Access 2007 lecture notes students
2017 Editable Thesis Checklist PDF
Ms Access ppt
PPT On MS-Access 2007 | Full Concepts |
SharePoint Lists 101 (Text)
Ad

Viewers also liked (18)

PPTX
Fernando Aguirre - Preparativos para um torneio seguro e confiável
PDF
2 create a simple form in chrono forms
PDF
Casestudy
PPT
Ron Tranchina, Beverage Industry Expert
PDF
4 building a joomla registration form using chrono forms
PDF
2 create a simple form in chrono forms
PDF
6 adding file upload to a form
PPT
PDF
About V.Group
PPTX
Unearthing Mars: The Latest discoveries on Mars
PPTX
Visit Santorini Greece
PPT
3 classification of microorganisms
PPTX
Di berbal part2
PDF
Our marine services
ODP
Álbum de fotos Web: Picasa web
PPTX
Komunikasyong berbal
PPTX
Modelo ng Komunikasyon
Fernando Aguirre - Preparativos para um torneio seguro e confiável
2 create a simple form in chrono forms
Casestudy
Ron Tranchina, Beverage Industry Expert
4 building a joomla registration form using chrono forms
2 create a simple form in chrono forms
6 adding file upload to a form
About V.Group
Unearthing Mars: The Latest discoveries on Mars
Visit Santorini Greece
3 classification of microorganisms
Di berbal part2
Our marine services
Álbum de fotos Web: Picasa web
Komunikasyong berbal
Modelo ng Komunikasyon
Ad

Similar to 5 saving data to the database (20)

DOC
Access4
PDF
Micro Soft Access - Creating Forms
PPTX
CBIS 327 ~ Chapter 06
PPTX
Access Chapter 01
PDF
Customizing Forms
DOC
Access5
PPT
Oracle Forms Tutorial (www.aboutoracleapps.com)
DOC
Access1
DOC
Access1
PDF
A form is a database object that you can use to create a user interf.pdf
PPT
Oracle Forms Creation
PDF
Access 2007 tut
PDF
Microsoft access 2007_tutorial
DOC
Access 2007 tut
PPTX
Priyank Goel PPT.pptx
PDF
Access advanced tutorial
PPTX
OPERATE DATABASE APPLICATION
PPT
Chapter 5 ms access-1
PDF
Bt0082 visual basic2
ODT
Lab 1 husna pozi kmpk
Access4
Micro Soft Access - Creating Forms
CBIS 327 ~ Chapter 06
Access Chapter 01
Customizing Forms
Access5
Oracle Forms Tutorial (www.aboutoracleapps.com)
Access1
Access1
A form is a database object that you can use to create a user interf.pdf
Oracle Forms Creation
Access 2007 tut
Microsoft access 2007_tutorial
Access 2007 tut
Priyank Goel PPT.pptx
Access advanced tutorial
OPERATE DATABASE APPLICATION
Chapter 5 ms access-1
Bt0082 visual basic2
Lab 1 husna pozi kmpk

5 saving data to the database

  • 2. Saving data to the database This tutorial tells you how to create a database table to save the data from your form. Create the table 1 Go to the Forms Manager. Select the checkbox for your form then click the 'Create Table' icon in the tool bar. Saving data to the database - 1 Tutorial by GreyHead ~ www.greyhead.net
  • 3. Create the table 2 Make a note of the table name in the box at the top. This will probably be jos_chronoforms_ + your form name. Then, for a simple table, it is enough to check the 'Create Column?' box which will select all the fields; then click Save Table. This will create a new table in the database and create the code to save the data from your form. There are several other options on this page: to set indexes for the table, to add fields or to skip them and to set field types. Unless you are familiar with databases and understand these options it's best to leave them alone for the moment. The one exception is that if you have any 'textareas' in your form where you expect long entries, it might be useful to select 'TEXT' as the Column Type for that field. Saving data to the database - 2 Tutorial by GreyHead ~ www.greyhead.net
  • 4. Save the table Once you click Save Table you will be returned to the Forms Manager and you should see the message 'Table has been created successfully'. Notice that the Tables Connected column to the right is still empty. Click the form name to edit the form. Saving data to the database - 3 Tutorial by GreyHead ~ www.greyhead.net
  • 5. Make the connection In the Form Editor: select the 'DB Connection' tab; set 'Enable Data storage' to Yes; scroll down to find your table name (from step 3 above) and select it. Click the Save icon in the toolbar to save your form. Note: you can select other tables here instead of the one created for this form. This is a very powerful feature that allows your forms to interact with other elements of Joomla. It also has the potential to damage your Joomla installation so do not use it unless you are certain that you know exactly what you are doing. Saving data to the database - 4 Tutorial by GreyHead ~ www.greyhead.net
  • 6. Confirm the table connection You should now see that the table name appears in the Tables Connected column to confirm the connection. Your database connection is now complete . . . we will test it and then look at a couple of other ChronoForms features. Open your form in a new window or tab (using the Link here is the simplest way) and submit a test entry. Once you've done that return to the Form Manager and click the Table link. The data browser Here you will see the ChronoForms data browser. Using the checkboxes you can select and delete records; and you can backup your data to an Saving data to the database - 5 Tutorial by GreyHead ~ www.greyhead.net
  • 7. Excel or a CSV (comma separated variable) file to save a copy or to use it in another application. You can click on a record id to view the record contents. Viewing the record This is a very simple display showing the data submitted from your form. The earlier fields are automatically created by ChronoForms. They make sure that the data is uniquely identified and record when it was submitted and by whom. Click the Cancel icon in the toolbar to return to the table viewer; and then Cancel again to return to the Form Manager. Saving data to the database - 6 Tutorial by GreyHead ~ www.greyhead.net
  • 8. The Autogenerated Code tab Finally, go to the Form Editor again and click the AutoGenerated Code tab. You can leave all these settings as they are for the moment. They give you some extra controls over the way form data is handled when it is saved. Saving data to the database - 7 Tutorial by GreyHead ~ www.greyhead.net
  • 9. Note: Although you can edit the Main code box here ChronoForms will not save your changes!! Saving data to the database - 8 Tutorial by GreyHead ~ www.greyhead.net