Creating a new dictionary

Creating an artifact

The dictionary management mechanism is similar to the way application templates are managed. To create a new or edit an existing dictionary, go to the Library module and select the Dictionaries. A new dictionary will be created after clicking the Add dictionary. After setting its name and location, you can proceed to implementation.

The window of the newly added dictionary already has the language code "pl" defined:

Illustration 1. Window of the added dictionary

Adding rows in the dictionary

The next step is to enter dictionary values. Each dictionary value consists of a key and content. Adding a new value begins by specifying the key by clicking the Add Key located in the upper right corner of the window. After the row appears, enter its value in the KEY column and the content in the language column field. Repeat the procedure for each dictionary row.

Illustration 2. Adding a new value to the dictionary

Adding a language

If you need to add content in languages other than Polish, simply click the Add Language button located in the upper right corner of the window and enter the language code (in lowercase), then fill the appropriate keys with content.

Illustration 3. Adding another language

Import values

Instead of creating the dictionary manually, you can import data into it from a CSV file (instructions: CSV dictionary import).

Order of items in the dictionary

The order of items in the dictionary (and in the component retrieving values from it) can be changed using drag & drop. Values will always be displayed in the order they appear in the dictionary or in the order they come from the service.

Connecting the dictionary to a component

The created dictionary can be used to create a selection list using a combobox or to populate a text field with dictionary values. The connection instructions are located here: Connecting a dictionary data source.

Last updated

Was this helpful?