User guide
Quick Start Guide
Case notes
Table component
FAQ
Search
Dashboard
Deleted Documents and Access Log
Solving a task
AI Assistant
Manuals
Substitution and Vacation
Suspending, resuming, archiving and deleting a case
Case variables, history and graph
Basic Terms
Uploading Documents, Folders and Revisions
News
Favorites
Navigating the interface
Dashboard widgets
Case Detail
News/Announcements in Team assistant
Case list
Logging In and Out
Account Settings
Task List
Mobile app settings
Reports and Charts
Searching and Listing Documents
Handing Over, Taking Over and Tasks to Pull
Bulk Tasks
Printing a Case
Creating and Editing an Overview
What Is TAS
Form Fields
Tablet Interface and NFC
Overviews
Creating a New Case
Case Events
Case Permissions
Subscribing to an overview by email
Administrator Guide
Platform guide
Administration
Crons
Authentication and Synchronization
SMTP OAuth authentication
LDAP, SAML, Entra ID and NFC: Settings
Configuring authentication modules
Authentication
Vault
DMS attributes
Service Operations
Mobile App Setup for Your Environment
Scheme
XML Process Import
HR agenda and agenda handover
Logs
Archiving
Scripts
Sequences
System Status
News Management
Migrations
Configuration
Plugins
Email Queue
Service Console
AI monitoring
Shared Files
Settings
CSP Headers
CSV Files
Scheduled Tasks
Processing Queues
Maintenance
Administration Menu
Licenses
Dynamic Tables
Usage Statistics
Access Token Settings & Session Expiration
Visual Identity
Template
Prints
Tasks
Task calculations
Automatic task completion and cancellation
Email Task and Notifications
Task types
Smart Event task
Instructions, Sections and Testing a Task
General task settings and solver
Multi-instance
Planning: start, branching and due date
Dynamic conditions: builder
Variable assignment and sections
Variables
Class diagram, object state import and alias candidates
Document list
Text and Multiline text
Checkbox
Number
Variables: overview and common settings
Lists (texts, numbers, dates)
Dynamic Rows
Date
Dynamic list
Sequence
Dynamic Table
Shredding Process
Template graph
Template Tab
Template List
Importing, Exporting and Copying a Template
Template Headers
Case statuses
Roles
Connecting to a different database
Diagnosing services
Hyper-V: Isolated NAT Network with Port Forwarding
Users
Translations
NFC Integration
Events and Rules
AXIOS API
Plans
Axios with Vault
Users
Axios with SSL Certificate
User Detail
Calculations & Functions
Form condition
Other dynamic conditions
Optimization of API calls on dynamic conditions
Filtering in a dynamic sheet using dynamic conditions
Dynamic Conditions: Script
Dynamic Rows: Script
Calculations
Dynamic Tables
Printing and File Generation
Documents in Calculations — Complete Guide
Printing and File Generation in Calculations
DOCX document creation
Other Calculations
How and when calculations run
Calculations API reference: the lib library
Calculations API reference: variables and case
Global Scripts and React Scripts
Integrations
MS Graph
MS Graph - cron configuration
MS Graph v2 (from v5.7.102)
MS Graph - preparing the mailbox
MS Graph (email)
ISDOC.PDF
DocuSign
TAS call module - TAS 2 TAS (process creation via API)
DB View
DocuSign and electronic signatures
ERP and other integrations
Smart Events for Integrations
TAS Forms
TAS Forms
Activating the module on the environment
TAS Forms - secret creation guide for Docker Swarm
Advanced Features & Tips
Filtering in a dynamic sheet using a URL parameter (static)
Optimizing Overviews with a Large Number of Cases
API Documentation
Product
Technical Changelog
Business Changelog
Version Upgrade Guide
Upgrade to v5.19
Upgrade to TAS 5.19 - Key Changes and Removed Features
Upgrading TAS 5.17 to 5.19 – Technical Part (DevOps)
Upgrate to v5.17
Upgrade to TAS 5.17 - Key Changes and Removed Features
Asset Migration from FE to Backend (5.17 Upgrade) — DevOps
Upgrading to v5.7
Lodash upgrade v4.17.x (>v5.5)
Main changes and deprecated features (v5.3 > v5.7)
Highlighting variables in Read-only status (>v5.7.58)
Upgrading to 5.3
Dynamic conditions migration
PDF printing adjustment
Editing Task Description vs Task Instructions
Transpiling forEach to a for loop
Rendering HTML on Caseoverview
Differences between TAS4 and TAS5 - a complete overview
Best Practices for Upgrading from v4 to v5
Using validation functions
Technical details
Server prerequisites
Security and Data Protection
Security
TAS Operations Runbook
Technological architecture
News / Important information
Microsoft Disabling Basic Auth for SMTP
End of EWS support and transition to Microsoft Graph
Adjustment in EWS after MS Exchange update (29.04.2025)
Security notices
Getting Started
- All Categories /
- Administrator Guide
- Calculations & Functions
- Calculations
- Dynamic Tables /
- Dynamic Tables in Calculations
Dynamic Tables in Calculations
The dt object is a query interface for dynamic tables, available in every task calculation (on the Calculations tab and in shared scripts of the Calculations type). Unlike the older lib.dynamicTableGetCell/dynamicTableUpdateCell (see Calculations API Reference: lib library), it works in a "query builder" style: you call dt.from(...), add where... conditions, and only then call get(), update() or remove(). This article is a reference for TAS 5.19.12.
// Najde řádek dodavatele podle IČO a přečte jeho e-mail
const rows = await dt.from('Suppliers', ['COL_2', 'COL_4']).whereCol('COL_1', vars['SupplierIco'].getValue()).get();
vars['SupplierEmail'].setValue(rows[0] ? rows[0].COL_4 : null);Creating a query
| Method | Returns | Description |
|---|---|---|
from(dt, columns?) | Promise<this> | Sets the table dt (name or ID) to work with and clears previous filters. columns (an array, e.g. ['COL_1', 'COL_3']) limits the columns loaded – without it, all columns are loaded, which is slower. |
select(columns) | Promise<this> | An alternative to specifying columns in from() – it must be called right after from() and cannot be combined with columns in from(). |
Columns are specified as COL_1, COL_2... (the column's sequence number), or directly as a number – whereCol(1, ...) and whereCol('COL_1', ...) work the same way.
Filtering (where)
| Method | Description |
|---|---|
whereCol(column, value, operator='=') | Filters by a column value. operator: =, <, >, <=, >=, like, not like, <>. |
orWhereCol(column, value, operator='=') | The same, but joined to the previous condition with OR. |
whereIndex(index, operator='=') / orWhereIndex(index, operator='=') | Filters by row index (DTV_INDEX). |
whereNullCol(column) / whereNotNullCol(column) | Rows where the column is/is not null (does not apply to an empty string ''). |
orderBy(column, direction='asc', sortType='text') | Sorts the result. column must be COL_{n}, DTV_INDEX or DTV_ORDER_INDEX; sortType is text or number. |
Multiple whereCol/whereIndex calls are combined (with AND, unless you use orWhereCol/orWhereIndex).
const rows = await dt.from('Suppliers')
.whereCol('COL_3', 'CZ', 'like')
.whereNotNullCol('COL_4')
.orderBy('COL_1', 'asc')
.get();Reading data
| Method | Returns | Description |
|---|---|---|
get() | Promise<object[]> | Returns rows matching the configured filter. Without a where condition, it loads the whole table (and logs a warning). |
getFirst() | Promise<object | null> | The first row of the result. |
getLast() | Promise<object | null> | The last row of the result. |
count() | Promise<number> | The number of matching rows. |
getCell(dt, index, col) | Promise<string | null> | Shortcut: finds a row by index and returns the value of a single column, without having to call from/where separately. |
getCols() | Promise<object> | A bidirectional mapping of the table's column names and IDs ({1: 'COL_1', COL_1: 1, ...}). |
getId() | Promise<number | string> | The ID of the table set via from(). |
getSourceFiles(returnOnlyLastRecord) | Promise<object[]> | The history of files from which the table was filled by import; true returns only the last record. |
const unitPrice = await dt.getCell('Price list', vars['ItemCode'].getValue(), 'COL_3');Writing and deleting
| Method | Returns | Description |
|---|---|---|
update(column, value) | Promise<number> | Updates a column of the selected rows (according to where). column can also be an object {COL_1: '...', COL_2: '...'} to update multiple columns at once – in that case value is ignored. Returns the number of updated columns. |
addRow(index, data) | Promise<number> | Creates a new row with the given index and data {COL_1: '...', ...}. |
addEmptyRow(index) | Promise<number> | Deprecated, use addRow. Creates an empty row. |
remove(removeLimit=10) | Promise<number> | Deletes the rows matching the filter and returns their count. Without a filter, it deletes the whole table. If the number of rows to delete exceeds removeLimit, it throws an exception instead of deleting – a safeguard against mistakes. |
// Zdraží všechny položky dodavatele o 5 %
const rows = await dt.from('Price list').whereCol('COL_2', vars['SupplierId'].getValue()).get();
for (const row of rows) {
await dt.from('Price list').whereIndex(row.DTV_INDEX).update('COL_3', Number(row.COL_3) * 1.05);
}
// Smaže položky ceníku starší než loňský rok (s pojistkou max. 50 řádků)
await dt.from('Price list').whereCol('COL_5', '2025-01-01', '<').remove(50);dt.remove() without a preceding whereCol/whereIndex deletes all rows. Always narrow the selection with a filter first, and set removeLimit slightly above the expected number of rows to delete, so that an error in the filter results in an exception instead of a mass deletion.dt.from() internally checks that the current process is allowed to call the dynamic table (this is configured on the table in administration). If not, it throws the exception Dynamic table '...' cannot be called from this Process.Related: Dynamic Tables (administration), Calculations API Reference: lib library, Dynamic Rows: script.