SlideShare a Scribd company logo
1 of 9
Download to read offline
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

What's hot

Access lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access BasicsAccess lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access BasicsAram SE
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms accessjigeno
 
Gl13 m7-c1-presentation
Gl13 m7-c1-presentationGl13 m7-c1-presentation
Gl13 m7-c1-presentationTracie King
 
Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)teng113
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notesart02
 
Xml For Dummies Chapter 17 Serving Up The Data Xml And Databases
Xml For Dummies   Chapter 17 Serving Up The Data Xml And DatabasesXml For Dummies   Chapter 17 Serving Up The Data Xml And Databases
Xml For Dummies Chapter 17 Serving Up The Data Xml And Databasesphanleson
 
Basic Access Notes
Basic Access NotesBasic Access Notes
Basic Access NotesPyi Soe
 
Access lesson 06 Integrating Access
Access lesson 06  Integrating AccessAccess lesson 06  Integrating Access
Access lesson 06 Integrating AccessAram SE
 
L3 ms access 2010 interface
L3 ms access 2010 interfaceL3 ms access 2010 interface
L3 ms access 2010 interfaceBryan Corpuz
 
Lesson Four Setting Up Tables And Fields
Lesson Four   Setting Up Tables And FieldsLesson Four   Setting Up Tables And Fields
Lesson Four Setting Up Tables And Fieldsguevarra_2000
 
2017 Editable Thesis Checklist PDF
2017 Editable Thesis Checklist PDF2017 Editable Thesis Checklist PDF
2017 Editable Thesis Checklist PDFAtiqa khan
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access pptanuj
 
PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |Umesh Kumar
 
SharePoint Lists 101 (Text)
SharePoint Lists 101 (Text)SharePoint Lists 101 (Text)
SharePoint Lists 101 (Text)Thomas Duff
 

What's hot (20)

M s access
M s accessM s access
M s access
 
Access lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access BasicsAccess lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access Basics
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
 
Gl13 m7-c1-presentation
Gl13 m7-c1-presentationGl13 m7-c1-presentation
Gl13 m7-c1-presentation
 
MS Access 2010 tutorial 3
MS Access 2010 tutorial 3MS Access 2010 tutorial 3
MS Access 2010 tutorial 3
 
Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)
 
MS ACCESS (REPORT)
MS ACCESS (REPORT)MS ACCESS (REPORT)
MS ACCESS (REPORT)
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notes
 
Xml For Dummies Chapter 17 Serving Up The Data Xml And Databases
Xml For Dummies   Chapter 17 Serving Up The Data Xml And DatabasesXml For Dummies   Chapter 17 Serving Up The Data Xml And Databases
Xml For Dummies Chapter 17 Serving Up The Data Xml And Databases
 
Basic Access Notes
Basic Access NotesBasic Access Notes
Basic Access Notes
 
Access lesson 06 Integrating Access
Access lesson 06  Integrating AccessAccess lesson 06  Integrating Access
Access lesson 06 Integrating Access
 
L3 ms access 2010 interface
L3 ms access 2010 interfaceL3 ms access 2010 interface
L3 ms access 2010 interface
 
Lesson Four Setting Up Tables And Fields
Lesson Four   Setting Up Tables And FieldsLesson Four   Setting Up Tables And Fields
Lesson Four Setting Up Tables And Fields
 
Chapter.11
Chapter.11Chapter.11
Chapter.11
 
MS Access 2010 tutorial 4
MS Access 2010 tutorial 4MS Access 2010 tutorial 4
MS Access 2010 tutorial 4
 
Access 2007 lecture notes students
Access 2007 lecture notes studentsAccess 2007 lecture notes students
Access 2007 lecture notes students
 
2017 Editable Thesis Checklist PDF
2017 Editable Thesis Checklist PDF2017 Editable Thesis Checklist PDF
2017 Editable Thesis Checklist PDF
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access ppt
 
PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |
 
SharePoint Lists 101 (Text)
SharePoint Lists 101 (Text)SharePoint Lists 101 (Text)
SharePoint Lists 101 (Text)
 

Viewers also liked

Fernando Aguirre - Preparativos para um torneio seguro e confiável
Fernando Aguirre - Preparativos para um torneio seguro e confiávelFernando Aguirre - Preparativos para um torneio seguro e confiável
Fernando Aguirre - Preparativos para um torneio seguro e confiávelWTC Business Club SP
 
2 create a simple form in chrono forms
2 create a simple form in chrono forms2 create a simple form in chrono forms
2 create a simple form in chrono formspvenky1578
 
Ron Tranchina, Beverage Industry Expert
Ron Tranchina, Beverage Industry ExpertRon Tranchina, Beverage Industry Expert
Ron Tranchina, Beverage Industry ExpertBevExpert
 
4 building a joomla registration form using chrono forms
4 building a joomla registration form using chrono forms4 building a joomla registration form using chrono forms
4 building a joomla registration form using chrono formspvenky1578
 
2 create a simple form in chrono forms
2 create a simple form in chrono forms2 create a simple form in chrono forms
2 create a simple form in chrono formspvenky1578
 
6 adding file upload to a form
 6 adding file upload to a form 6 adding file upload to a form
6 adding file upload to a formpvenky1578
 
Unearthing Mars: The Latest discoveries on Mars
Unearthing Mars: The Latest discoveries on Mars Unearthing Mars: The Latest discoveries on Mars
Unearthing Mars: The Latest discoveries on Mars Martin Celino
 
3 classification of microorganisms
3   classification of microorganisms3   classification of microorganisms
3 classification of microorganismsYente Unista
 
Our marine services
Our marine servicesOur marine services
Our marine servicesmanishship
 
Álbum de fotos Web: Picasa web
Álbum de fotos Web: Picasa webÁlbum de fotos Web: Picasa web
Álbum de fotos Web: Picasa webguadalinfobornos
 
Komunikasyong berbal
Komunikasyong berbalKomunikasyong berbal
Komunikasyong berbalMartin Celino
 
Modelo ng Komunikasyon
Modelo ng KomunikasyonModelo ng Komunikasyon
Modelo ng KomunikasyonMartin Celino
 

Viewers also liked (18)

Fernando Aguirre - Preparativos para um torneio seguro e confiável
Fernando Aguirre - Preparativos para um torneio seguro e confiávelFernando Aguirre - Preparativos para um torneio seguro e confiável
Fernando Aguirre - Preparativos para um torneio seguro e confiável
 
2 create a simple form in chrono forms
2 create a simple form in chrono forms2 create a simple form in chrono forms
2 create a simple form in chrono forms
 
Casestudy
CasestudyCasestudy
Casestudy
 
Ron Tranchina, Beverage Industry Expert
Ron Tranchina, Beverage Industry ExpertRon Tranchina, Beverage Industry Expert
Ron Tranchina, Beverage Industry Expert
 
Org1
Org1Org1
Org1
 
4 building a joomla registration form using chrono forms
4 building a joomla registration form using chrono forms4 building a joomla registration form using chrono forms
4 building a joomla registration form using chrono forms
 
2 create a simple form in chrono forms
2 create a simple form in chrono forms2 create a simple form in chrono forms
2 create a simple form in chrono forms
 
6 adding file upload to a form
 6 adding file upload to a form 6 adding file upload to a form
6 adding file upload to a form
 
Relations
RelationsRelations
Relations
 
About V.Group
About  V.GroupAbout  V.Group
About V.Group
 
Unearthing Mars: The Latest discoveries on Mars
Unearthing Mars: The Latest discoveries on Mars Unearthing Mars: The Latest discoveries on Mars
Unearthing Mars: The Latest discoveries on Mars
 
Visit Santorini Greece
Visit Santorini GreeceVisit Santorini Greece
Visit Santorini Greece
 
3 classification of microorganisms
3   classification of microorganisms3   classification of microorganisms
3 classification of microorganisms
 
Di berbal part2
Di berbal part2Di berbal part2
Di berbal part2
 
Our marine services
Our marine servicesOur marine services
Our marine services
 
Álbum de fotos Web: Picasa web
Álbum de fotos Web: Picasa webÁlbum de fotos Web: Picasa web
Álbum de fotos Web: Picasa web
 
Komunikasyong berbal
Komunikasyong berbalKomunikasyong berbal
Komunikasyong berbal
 
Modelo ng Komunikasyon
Modelo ng KomunikasyonModelo ng Komunikasyon
Modelo ng Komunikasyon
 

Similar to 5 saving data to the database

Database as information system
Database as information systemDatabase as information system
Database as information systemKAZEMBETVOnline
 
Micro Soft Access - Creating Forms
Micro Soft Access - Creating FormsMicro Soft Access - Creating Forms
Micro Soft Access - Creating FormsFaHaD .H. NooR
 
Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...Aeric Poon
 
OBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation StepsOBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation StepsDharmaraj Borse
 
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docx
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docxINTRODUCTION TO ACCESSOBJECTIVESDefine th.docx
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docxmariuse18nolet
 
HARJOT.ppt
HARJOT.pptHARJOT.ppt
HARJOT.pptsatgup78
 
1 Week 4 What Well Be Working on This Week B.docx
1 Week 4 What Well Be Working on This Week     B.docx1 Week 4 What Well Be Working on This Week     B.docx
1 Week 4 What Well Be Working on This Week B.docxdorishigh
 
B.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms accessB.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms accessRai University
 
B.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms accessB.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms accessRai University
 
B.sc i bio tech u 4 introduction to ms access
B.sc i bio tech u 4 introduction to ms accessB.sc i bio tech u 4 introduction to ms access
B.sc i bio tech u 4 introduction to ms accessRai University
 
B.sc i bio chem u 4 introduction to ms access
B.sc i bio chem u 4 introduction to ms accessB.sc i bio chem u 4 introduction to ms access
B.sc i bio chem u 4 introduction to ms accessRai University
 
B.sc i cs u 4 introduction to ms access
B.sc i cs u 4 introduction to ms accessB.sc i cs u 4 introduction to ms access
B.sc i cs u 4 introduction to ms accessRai University
 
Create a basic performance point dashboard epc
Create a basic performance point dashboard   epcCreate a basic performance point dashboard   epc
Create a basic performance point dashboard epcEPC Group
 
Unit vi. lesson 1 & 2. offline application
Unit vi. lesson 1 & 2. offline applicationUnit vi. lesson 1 & 2. offline application
Unit vi. lesson 1 & 2. offline applicationapolsoft2016
 
msexcess-150903114645-lva1-app6892.pdf
msexcess-150903114645-lva1-app6892.pdfmsexcess-150903114645-lva1-app6892.pdf
msexcess-150903114645-lva1-app6892.pdfNamangupta562588
 
Dynamic Web Pages Ch 4 V1.0
Dynamic Web Pages Ch 4 V1.0Dynamic Web Pages Ch 4 V1.0
Dynamic Web Pages Ch 4 V1.0Cathie101
 

Similar to 5 saving data to the database (20)

Database as information system
Database as information systemDatabase as information system
Database as information system
 
Micro Soft Access - Creating Forms
Micro Soft Access - Creating FormsMicro Soft Access - Creating Forms
Micro Soft Access - Creating Forms
 
Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...
 
OBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation StepsOBIEE 11g : Repository Creation Steps
OBIEE 11g : Repository Creation Steps
 
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docx
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docxINTRODUCTION TO ACCESSOBJECTIVESDefine th.docx
INTRODUCTION TO ACCESSOBJECTIVESDefine th.docx
 
Access4
Access4Access4
Access4
 
Ms Access
Ms AccessMs Access
Ms Access
 
HARJOT.ppt
HARJOT.pptHARJOT.ppt
HARJOT.ppt
 
1 Week 4 What Well Be Working on This Week B.docx
1 Week 4 What Well Be Working on This Week     B.docx1 Week 4 What Well Be Working on This Week     B.docx
1 Week 4 What Well Be Working on This Week B.docx
 
B.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms accessB.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms access
 
B.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms accessB.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms access
 
B.sc i bio tech u 4 introduction to ms access
B.sc i bio tech u 4 introduction to ms accessB.sc i bio tech u 4 introduction to ms access
B.sc i bio tech u 4 introduction to ms access
 
B.sc i bio chem u 4 introduction to ms access
B.sc i bio chem u 4 introduction to ms accessB.sc i bio chem u 4 introduction to ms access
B.sc i bio chem u 4 introduction to ms access
 
B.sc i cs u 4 introduction to ms access
B.sc i cs u 4 introduction to ms accessB.sc i cs u 4 introduction to ms access
B.sc i cs u 4 introduction to ms access
 
Create a basic performance point dashboard epc
Create a basic performance point dashboard   epcCreate a basic performance point dashboard   epc
Create a basic performance point dashboard epc
 
Unit vi. lesson 1 & 2. offline application
Unit vi. lesson 1 & 2. offline applicationUnit vi. lesson 1 & 2. offline application
Unit vi. lesson 1 & 2. offline application
 
06.ms acess
06.ms acess06.ms acess
06.ms acess
 
社會網絡分析UCINET Quick Start Guide
社會網絡分析UCINET Quick Start Guide社會網絡分析UCINET Quick Start Guide
社會網絡分析UCINET Quick Start Guide
 
msexcess-150903114645-lva1-app6892.pdf
msexcess-150903114645-lva1-app6892.pdfmsexcess-150903114645-lva1-app6892.pdf
msexcess-150903114645-lva1-app6892.pdf
 
Dynamic Web Pages Ch 4 V1.0
Dynamic Web Pages Ch 4 V1.0Dynamic Web Pages Ch 4 V1.0
Dynamic Web Pages Ch 4 V1.0
 

5 saving data to the database

  • 1.
  • 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