Table of Contents

Mystic Help

BISON: Text Importer

The BISON Text Importer is designed to pre-process both formatted text files as well as some proprietary formats which can be interpreted and processed as text files (e.g. the result of an Excel spreadsheet import). To ease understanding, the dialog is designed to mimic the way in which common importers used in third-party spreadsheets have often been displayed.

Initial Format Processing

Different text files, especially if produced on different operating systems (which use different end-of-line characters) result in the underlying text being loaded into the importer in different ways. The first thing to do therefore, is to tweak import settings until the list of results at the bottom of the dialog show a logical data set rather than 'garbage'.

The three main values for the initial understanding of the text are:

For an Excel spreadsheet import, the Importer already knows how to read the standard internal structure of an Excel file. For this reason, the Record Delimiter, Field Delimiter and Protection character are locked and the data imported without the need to change these values.

Three additional settings may also modify how the data is displayed on the screen:


Defining The Fields

Once the data sample is reading correctly and the rows in the results list seem correct, you need to define what each field actually means. While there may be a header row with human-readable text, this is not a row which can be interpreted by the importer. You need to match the field up with a known set of fields for the type of import that you are performing.

Beneath the Header row is a second row initially containing the text [> <None>]. These are the field names as allocated to the importer for processing. Right-click each of these cells in turn to display a list of known fields for the import type being performed - select the appropriate field definition from the menu.

If an imported field is redundant and is not required, leave the field definition as <None> to ignore the data.


Editing Minor Mistakes

Once the final, full set of data is loaded and viewed, it is possible to make minor changes to data that is considered to be incorrect.

It is recommended to perform these edits in an external editor or even better on the source application rather than here in the importer so as to ensure that the data is consistent in both applications.

To edit a cell, select [Edit Mode] to fix the current state of the data. Double-click any cell which needs to be edited to display an editable text field.


Processing the File

Once the data is in an acceptable state on screen, select the [Next»] button to process the file using the selected configuration.

In many cases the file can be process immediately and the data written into the database (common for Item imports), but for others you will be returned to the proceeding BISON Import dialog for finalisation.


Using Presets

If you are ensured of a regular import file (unfortunately, this is rare), you can use the Preset system to save the configuration for future re-use.

Once configured, use the [Save As] button to save the preset into the database.

In order to select a pre-saved preset, select it from the drop-down pick-list at the top of the dialog.

When selected, you can edit the settings and use [Update] to update the settings, or delete it using the [Delete] button.


Using Scripts

In some cases, a single final field must be created by combining several fields together. In other cases, you may wish to process a field as it is being imported to change its nature, remove some common text, or change its case. For this purpose you can use a script.

Scripts must be written in XojoScript (similar to VBScript) and can be edited using the [View Script] button.

Scripts are saved with presets when the [Save] button is used.

It is strongly advised to seek guidance when creating scripts, or otherwise request a script from Esferico support to perform the task required.

Note: Scripts in this context are run in a sandbox and have a very limited scope. They can only modify the data being imported.



Mystic Linked Help Files
Pergamon Wiki Home

1)
Note, that the example in the image was produced on an Apple Mac - if your file was produced on a Windows machine, it is more likely to need Carriage-Return/Newline as the record separator rather than Newline by itself
2)
Comma-Separated Values
3)
Tab-Separated Values
4)
on occasion, files are exported with foreign characters etc. which can prevent data after that point from reading correctly