Data sources – source editor

In Interact you have the opportunity to create and maintain data sources that you want to use when designing the dialogues. This is done in the source editor. The data sources are internal data sources – meaning sources that are created within Interact. An example of an external data source is web service. You can import and export data sources from source editor.

Data sources

We distinguish between global and local data sources as described in more detail in chapter about custom elements. Local data sources are sources created directly in the dialogue. Global data sources are sources created in the source editor and can be used across all dialogues.

To create a new data source, click on New.

  1. Give the data source a name (1) and, if necessary, a description(2).
  2. Click on New column (3) to create a column. The first column automatically becomes the ID column. The ID column can be used to make advanced logic in the dialogue. Otherwise, one does not relate to it.
  3. Enter text in the first row and press the Tab key or the New row button to move to the next row. To delete a row, click on Delete row or mark the row and click on the Delete button on the keyboard.
  4. To add a new column, select New column and enter the name of the column.
  5. To change the name of the column, right click and enter a new name.
  6. To delete the column, click on the column and press Delete column (4).
  7. In the dropdown list View column (5), select what column should be displayed in a radio button list, check box list or dropdown list.
  8. If you press Test (6), you will see a preview of how this will be presented and the related ID.

Add a new custom data source

Filter your data sources

In the Data source editor, you can create sub-data sources based on custom filters for existing data sources. Click on the Filter tab.

You create a name of data sources in the column Name and enter in the Filter column how you want to filter out data.

You write in the Filter column how you want to filter out data

The example below is based on an existing data source of countries containing:

  • Value (value field that serves as an ID column).
  • Name: Name of language.
  • Region: The continent to which they belong.

In the filter column you can use SQL queries. We want to show some examples of cases that might be useful. The various examples are based on the data source below. The data source consists of three columns.

Operators

In these queries, various operators and expressions have been used to retrieve the requested data. The following contains a short description of this.

and Select several columns, such as Area and Type in example 1
= Exact match
like If you want to find a name containing a text string. Can be used in combination with %. …. like =(‘%private%’)
in Want a selection that contains e.g. Private homebased
not in Want a selection that does NOT contain e.g. Private homebased

Import/export of data sources

Import/export of data sources

Select New to create a data source to which you can import data, and create the columns which the source you need to import consists of. Then click on Tool and Import to import data sources.

Note!
1. The data source to be imported must be stored as a .csv file, be semicoloned and in UTF8 format, otherwise Interact will not handle æ, ø and å. The mostly used program to create a .csv file is Excel.
2. The columns in the data source must be created in advance before importing. You will get a notification if you try to import without any columns having been created.

Note! When exported, the file will be saved in .csv format.

Use of data sources

Data sources can be used for list elements such as radio button, check box lists and dropdown lists. Once you have selected one of these types, you can select data source from the drop down Data source under Settings. The filters created will become sub-levels of the actual data source

The filters created will become sub-levels of the actual data source

Translate into desired languages

Custom elements can be translated into the desired languages. When you translate a custom item into the specified language, then you do not have to translate it again when you use it in a dialogue translated to that language. Click on the Language tab at the top of the menu bar to translate into the desired language.

How to proceed:

  1. Select a language from the dropdown list and click on Add.
  2. Repeat this action for every language you want to translate into.
  3. Fill in translation in the columns.
  4. You can delete a translation to a language by marking the column and clicking Delete.
  5. Click on Save and close when the translation is done.

Specify new languages for data source

Keyword link icon for conceptSee also