DATABASE EXPORT |
---|
Overview Selecting Output Formats Changing Export Formats Changing Available Options Masterfile Templates [Export] Section [Header] Section [Detail] Section [Footer] Section Fields and Control Characters Field Name Specifier Non Printable Characters |
Overview |
SELLmatix allows you to export data from the SELLmatix databases so that the data can be used by a range of other applications.
Depending on how your business operates, it may be necessary to do this on a regular basis, or it may be necessary to
export the data in a range of different formats, or it may be that you never need to export your SELLmatix data at all. SELLmatix allows you to set up templates for a range of different types of data export which can be used again and again, so that once you have determined the data to be exported and the format in which it will be exported, you can repeat the export operation simply by selecting the type of export you wish to perform. Selecting Output Formats When exporting data from SELLmatix, the Save as dialog appears allowing you to select the filename and other options about the data to be saved. At the bottom of this Dialog, you have the option to Save File as Type, and a drop down list allows you to select the type of export to perform.
|
Changing Available Options |
When you select one of these file type, you are really telling SELLmatix which export template should be used to export the data.
The way that SELLmatix knows which export template to use is from the configuration file. The name of this configuration file is
"SELLmatix Control.cfg".
You can create new export templates, and change the options that appear in the "Save as Type" list when you go to export data
from SELLmatix, by changing entries in the configuration file. You can edit the configuration file using a text editor such
as Notepad, but make sure to save your changes in Unicode format. In the [System] section of the configuration file, there are 2 lines for each type of export. These are something like...
ExportPLUTypes=QuickBooks Products (*.IIF),*.iif,MYOB Products (*.TXT),*.txt ExportPLUFormats=QBPROD.EXP,MYOBPROD.EXPThese are lines of text, with fields separated by commas. The first line, "ExportPLUTypes=" entry contains pairs of entries where the first entry in the pair contains the text that appears in the drop down list of "Save as type". The second entry in each "pair" of entries on the first line, contains the wildcard pattern to use to determine which files appear in the list of files above, when that entry pair is selected. For example, if you selected "MYOB Products (*.TXT)" from the dropdown list, the wildcard "*.TXT" would be used so that any file name with an extension.".TXT" would appear in the list of files. The second line, "ExportPLUFormats=" entry contains a list of export templates which SELLmatix will use when exporting. You can change the order in which options appear in this list, add new export templates or remove templates that you will not need. |
Fields and Control Characters |
Database Fields Fields in the appropriate database can be output in the [Detail] Section by enclosing the Database Field name in % percentage signs. There should be a % at the beginning of the field name and the end of the field name and any embedded spaces will be considered as part of the field name. Spaces are a valid character within field names, and are significant. If a percentage sign needs to be included in output as a string literal, then it should appear as %% in the template. For example, if you needed to output the literal text "97%" then in the output template would need to contain "97%%". The actual fields available for export depend on the database being exported, and lists of the fields available appear below. Note that in field names case is significant. It is possible to embed any non printable character in the output stream by using a backslash character followed by the decimal character code for the character you want output. For example, if you wished to embed a Tab character (character code 9) in the output, you could express this as \009 If you need to output the backslash as a literal character in the output then you would do this by having a double backslash it the template, for example, "\\". The most common reason to include nonprintable characters in the output is as a delimiter for fields in the data, so that the program importing the file knows where one field ends and the next field begins. Two common formats are comma separated and Tab separated. Comma separated files are less convenient because a comma may appear in the raw data, which causes the program reading the data to get the fields out of sync. Tab separated data usually avoids this problem, but it can be difficult to read when editing the template to see where the tabs are. For this reason, it is often easier to represent tabs as \009. |