Writing data to a CSV text file. Tutorial.
We should create other ASCII file with different structure in the CSV format.
It is assumed that:
You've prepared parser items for export.
For this tutorial all items were prepared in the previous part.
All parser items are ready for export. Now we should configure the Local database plug-in. This process is very simple. Please, open the configuration window of the Local database plug-in (fig. 2) by selecting the module in the list and clicking the "Setup" button on the "Data export" tab (fig. 1).
Fig.1. Local Database plugin.
Fig.2. CSV export. Selecting a database type.
On the "Data formats" page you can specify a data format of your data. Because all our variables are with the "string" data type, then we don't need to change format options. On the "Columns order" page (fig.2) you can specify, how variables will be placed in a spreadsheet. Because we need 2 variables only, therefore, we need to create 2 items on this page by clicking the "Add item" button (fig.2, pos.5).
Fig.2. CSV export. Columns order options.
Before adding an item the program will ask you about an item description. You can type any characters here, which will help you to remember a variable's content.
Each data export item has following properties:
Now, please, click the "OK" button and close the configuration window of the "Local database" plug-in. The click the "OK" button in the options window.
Ok. All settings had been configured and we are now ready for capturing barcodes.