Dynamic Tables

Dynamic tables store data directly in TAS, typically code lists and configuration tables (cost centres, approvers, limits, branch addresses). Templates read values from them in calculations and variables. The screen is available to administrators; open it via Administration › Integration and Data Management › Dynamic Tables.

Table list

No.ElementPurpose
1CloseReturns you to the Administration menu.
2Add tableOpens the window for creating a new table, see Creating a new table.
3SelectedNumber of tables marked with the checkbox.
4DeleteBulk deletion of tables, see below. The button is inactive when no rows are selected.
5CheckboxMarks the table for bulk deletion. The checkbox in the header marks all displayed rows.
6IDNumeric identifier of the table. In calculations, a table can be referenced by its ID or name.
7NameUnique name of the table. The list is sorted by it by default.
8DescriptionShort description of the table's purpose.
9Public dynamic tableYes or No, see Settings.
10Restriction to roleRole to which management of the table is restricted.
11Restriction to headerTemplate header that is the only one whose calculations may read the table.
12Column filterField below each column header. Type the text you are looking for and the list is narrowed down.
13Edit (pencil)Opens the table detail. Double-clicking the row does the same.
14CopyCreates a copy of the table, see Copying a table.
15Save filterSaves the current combination of filters under your own name so that you can select it with one click next time. Displayed only when a filter is set.
16Clear filtersClears all set filters.
17FilterOpens the window for building a filter with multiple conditions.
18AI filterFilter entered as a sentence, for example "public tables with a role restriction". Displayed only when AI.enabled is turned on in Configuration.
19Full screenDisplays the list in full screen.
20Record countHow many tables match the filter. The arrows icon reloads the list.
21List toolsSwitching the view, selecting and ordering columns, and exporting the list to a file.

Copying a table

The Copy icon on a row opens the Copy table definition window.

FieldPurpose
Including dataUnchecked: only the columns are copied. Checked: all rows are copied as well.
CopyCreates a new table named clone(1)_<původní název>. If that name already exists, the next number is used.

The copy takes over the description, notes and the Public dynamic table flag. The role and header restrictions are not copied; set them again on the copy if needed. You can then rename the copy in its settings.

Bulk deletion

Mark the tables with the checkboxes and click Delete. The Delete dynamic tables window opens.

OptionPurpose
Selected onlyDeletes only the marked tables. Their number is shown in brackets.
All (max. 1000)Deletes all dynamic tables in the application, up to 1000.

After you click Delete, TAS asks for confirmation once more. The table is deleted together with all its rows and columns.

The All option ignores the filter
The All option deletes all tables in the application, not just those you currently see in the filtered list. To delete selected tables, always keep Selected only chosen. Before deleting a table, verify that no template uses it – calculations that read it would stop working.

Creating a new table

Click Add table. The Dynamic table / New window opens on the Settings tab.

No.ElementPurpose
1SettingsTab with the table properties (currently open).
2TableTab with the data. You can switch to it once the name is filled in. If you have unsaved changes, TAS asks whether to save them.
3Dynamic table nameRequired. The name must be unique in the application; calculations in templates reference the table by this name.
4CSV fileOptionally upload a CSV file to populate the table immediately. The procedure is the same as for importing into an existing table, see Import from CSV.
5Public dynamic tableChecked for a new table. For its meaning, see Settings.
6DescriptionShort description, displayed in the table list.
7NotesLonger formatted text, for example what the table is for and who maintains it.
8To roleRestriction of management to a role, see Settings.
9In calculations to headerRestriction of calculations to a template header, see Settings.
10CloseCloses the window. If you have unsaved changes, TAS asks whether to save them.
11SaveCreates the table and keeps the window open, so you can switch to the Table tab and add columns and rows.
12Save and closeCreates the table and closes the window.

Both save buttons become active only after you change something and the form is valid.

How to create a table with data

  1. Click Add table and fill in Dynamic table name and Description.
  2. Insert the data in one of two ways:
    • upload a CSV file to the CSV file field, check the preview and click Save and close, or
    • click Save, switch to the Table tab, add columns with the Add column button and rows with the Add row button.
  3. The table appears in the list. Open it with the pencil or by double-clicking.

Table detail – Table tab

When you open a table from the list, its data is displayed.

No.ElementPurpose
1CloseReturns to the table list. You can also return to the list by clicking Dynamic Tables in the breadcrumb navigation.
2SettingsSwitches to the tab with the table properties.
3TableTab with the data (currently open).
4Rename columnsOpens the window for changing the names of all columns.
5Delete columnOpens the window for deleting one column.
6Add columnAdds a new column at the end of the table.
7Add rowOpens the window for a new row. Until the table has at least one column, the button is inactive and the tip "Add the first table column" is displayed instead of data.
8IndexRow identifier. Calculations use it to find the row, and selections in variables are stored against it.
9Column headerColumn name followed by its system identifier in brackets: col_1, col_2 … Calculations use this identifier, which is why it does not change when the column is renamed.
10Column filterNarrows the rows by text in the given column.
11More optionsMenu of row actions, see below.
12Record countNumber of rows matching the filter.
13ExportExport of rows to a file. Next to it are the view and column options.

Rows are sorted in the order you set when adding or moving a row. Double-clicking a row opens the Edit row window. Pressing the Delete key on a selected row opens a confirmation of its deletion.

Row actions

ActionPurpose
EditOpens the Edit row window with the values of all cells.
CopyOpens the Copy row window – a new row pre-filled with the values of the selected row.
MoveOpens the Move row window for changing the order.
DeleteDeletes the row after confirmation.

Adding and copying a row

FieldPurpose
IndexRequired. Identifier of the new row, for example the next number in the sequence or a code. Choose an index that does not yet exist in the table – calculations and variables look up the row by it.
Add beforeOptional. The row before which the new row is inserted. If you leave the field empty, the row is added at the end.
Cell values in the rowA field for each table column, labelled with the column name and its col_… identifier. An empty field means an empty cell.
SaveAdds the row.
CloseCloses the window without saving.

The Copy row window is the same, except that the cell values are pre-filled from the selected row and the title shows the index of the original row. Fill in the index of the new row yourself.

Editing a row

Edit the cell values and click Save. The row index is shown in the window title and cannot be changed. The icon next to the index copies it to the clipboard.

Moving a row

In the Move before field (required), select the row before which the selected row should be placed and click Save. Rows are listed in the menu by their index.

Deleting a row

Click Delete to remove the row, or No to go back without changes.

Adding a column

Enter the name of the new column in the Column field (required) and click Save. The column is added at the end of the table and receives the next free col_… identifier. It remains empty for existing rows.

Renaming columns

The Rename columns window contains a field for each column. All fields are required. Saving changes only the displayed name; the col_… identifier stays the same, so calculations that reference the column by this identifier keep working.

Deleting a column

In the Column field (required), select the column and click Delete. The column disappears together with all its values. The window does not ask again; the deletion happens immediately.

Watch out for templates
Deleting a column or row takes effect immediately in all templates that read the table. Before deleting a column, verify that no calculation or variable uses it.

Table detail – Settings tab

No.ElementPurpose
1SettingsTab with the table properties (currently open).
2TableSwitches to the table data.
3EditEnables editing of the table name, see Renaming a table.
4CSV fileField for uploading a CSV file by dragging and dropping or clicking. The uploaded file is saved only with the Save button, see Import from CSV.
5Uploaded file nameName of the file you are currently importing. Remove it with the cross. Without a new file, the name of the last imported file and the import date are shown here.
6Column separatorRequired; displayed after a file is uploaded. TAS detects it from the file content (comma, semicolon, tab, colon or pipe). If the preview is not split correctly, correct it.
7First row contains column namesChecked: the first row of the file contains the column names. Unchecked: columns are named field1, field2 … and the first row is imported as data.
8Public dynamic tableChecked: the table data is accessible to all logged-in users, for example when a form offers values from it for selection. Unchecked: only administrators may work with the table.
9DescriptionShort description, displayed in the table list.
10NotesLonger formatted text for the table maintainer.
11To roleA template variable of the dynamic table type using this table may be created or saved only by an administrator who has the selected role. For a non-public table, working with the data is also restricted to these administrators. An empty field means no restriction.
12In calculations to headerCalculations may read the table only in cases of the selected template header. A calculation in another template ends with an insufficient permissions error. An empty field means no restriction.
13CloseReturns to the table list. If you have unsaved changes, TAS asks whether to save them.
14SaveSaves the settings and, if you have uploaded a CSV file, performs the import. Active only when something has changed.
15Save and closeThe same, and returns you to the table list.
Role and header restrictions can only be set by a superadministrator
The To role and In calculations to header fields can be changed only by a superadministrator. Other administrators see their value but cannot change it.

Renaming a table

The name is saved separately, not with the Save buttons.

  1. Click Edit next to the name.
  2. Type the new name and click Save dynamic table name.
  1. TAS asks whether you really want to change the name and warns about the impact on calculations. Click Confirm to save the name, or No to restore the original name.
Calculations use the name
Calculations in templates often reference a table by its name. After renaming, they would no longer find the table. Before changing the name, go through the templates that use the table and update them.

Import from CSV

The import replaces the entire table content with the content of the file.

  1. On the Settings tab, drag the file into the CSV file field, or click the field and select the file.
  2. Check the Column separator and the First row contains column names option.
  3. A Preview of the file is displayed at the bottom of the page. Each column header shows the name and the col_… identifier the column will receive after the import.
  1. Click Save. When the import finishes, the message "CSV file has been uploaded." is displayed, and the name of the imported file with the date appears below the file field.
  2. Check the result on the Table tab.
RuleWhat it means
Content is replacedAll existing rows and columns are removed and replaced with the content of the file. The import does not add anything to existing data.
Column identifiersColumns receive col_… identifiers according to their order in the file. Keep the column order unchanged, otherwise calculations will read different columns than before.
ID or Index columnIf the file contains a column named ID or Index, its values are used as row indexes. The values must not repeat, otherwise the import ends with an error. Without such a column, TAS numbers the rows itself.
Column namesA column name must not be a number.
Empty fileThe import rejects a file without data.
Make a backup before importing
The import cannot be undone. Before uploading a new version of the data, download the current content with the Export button on the Table tab.

Related: CSV files, Templates – variables and calculations.

Licenses

Usage Statistics

Syca (opens in a new tab)

Powered by HelpDocs (opens in a new tab)