User guide
Quick Start Guide
Dashboard
Overviews
Case detail (Caseoverview)
Case - event
Tasks
Case notes
Documents
User settings
Favorites
Table component
FAQ
Administrator Guide
Platform guide
Administration
Crons
Authentication and Synchronization
Mobile App Setup for Your Environment
Scheme
Dynamic tables
Archiving
Scripts
Service console
Scheduled Tasks
HR Agenda
Sequences
CSP Headers
Logs
Access Token Settings & Session Expiration
Template
Roles
Planning
Users
Organizational structure
Events
Translations
AXIOS API
Calculations & Functions
Integrations
TAS Forms
TAS Forms
Activating the module on the environment
TAS Forms - secret creation guide for Docker Swarm
Advanced Features & Tips
Partners
Product
Business Changelog
Technical Changelog
Version Upgrade Guide
Upgrading to 5.9
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
Upgrading to 5.7
Lodash upgrade v4.17.x (>v5.5)
Main changes and deprecated features (v5.3 > v5.7)
Using validation functions
Differences between TAS4 and TAS5 - a complete overview
Best Practices for Upgrading from v4 to v5
Technical details
News / Important information
- All Categories /
- Administrator Guide
- Calculations & Functions
- Calculations
- Dynamic Tables /
- Search in a dynamic table by column value
Search in a dynamic table by column value
Use case:
I need to search for data in a dynamic table based on a value in a column.
An example is demonstrated on:
- Template: Order issued
- Dynamic table: 001-suppliers
- Variable of type text (with prompt): supplier (CZ: Dodavatel)
We are searching for the entire row in the dynamic table 001-suppliers where the value in column 8 is equal to the selected text variable Supplier .

The dynamic table 001-suppliers looks like this:

- First, the entire table row is searched, which is returned as an array of objects:
const supplierDtRow = dt.from('001-suppliers').whereCol('8', vars['supplier'].getValue(), '=').get();The calculation returns the following array of objects to supplierDtRow :
[{"DTV_INDEX":"109","DTV_ORDER_INDEX":1,"COL_1":"Neit Consulting sro","COL_2":"CZ27369871","COL_3":"27369871","COL_4":"Washingtonova 2","COL_5":"Praha","COL_6":null,"COL_7":"CZ","COL_8":"Neit Consulting sro|27369871","COL_9":"neit@emailaddress.com","DLV_INDEX":"109"}]- Subsequently, any value can be obtained from the object using the following notation:
let companyCity = supplierDtRow[0]['COL_5']; //Praha
let companyStreet = supplierDtRow[0]['COL_4']; // Washingtonova
atd.
Updated
by Frantisek Brych