User guide
Quick Start Guide
Dashboard
Overviews
Case detail (Caseoverview)
Case - event
Tasks
Case notes
Documents
User settings
Favorites
Table component
Administrator Guide
Administration
Authentication and Synchronization
Mobile App Setup for Your Environment
Scheme
Dynamic tables
Scripts
Service console
Scheduled Tasks
HR Agenda
Sequences
CSP Headers
Logs
Crons
Access Token Settings & Session Expiration
Template
Roles
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)
Search in a dynamic table by column value
Filtering in a dynamic sheet using dynamic conditions
Optimizing Overviews with a Large Number of Cases
DOCX document creation
Planning
Users
Organizational structure
Events
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
Best Practices for Upgrading from TAS 4 to TAS 5
Technical details
- All Categories /
- Administrator Guide
- Administration /
- Scripts
Scripts
Scripts in the platform are designed for reuse across various templates. These scripts are written as JavaScript or React.js functions and can be utilized for calculations, dynamic conditions, and case overviews.
Usage
Scripts can be used in both front-end and back-end contexts:
- Front-end: Used for case details (case overview) or dynamic conditions in templates.
- Back-end: Used for calculations within templates.
Activation Requirement
Before a script can be used, it must be marked as "active." Without this designation, its functions will not be available for execution.
Function Priority
If a function name matches another function that is directly used in the application (as described above), the function defined in this section takes precedence over the one in the "Scripts" section.
Best Practices for Reusability
To avoid redundancy and improve maintainability, scripts should be written for reuse across the platform. For example:
- Fetching exchange rates: A single script can be written to retrieve exchange rates from any bank or external platform instead of duplicating similar scripts across different templates.
- Shared calculations: Frequently used calculations should be centralized in reusable scripts.
Administrator Permissions
The Application Administrator (with the $Administrator
role) has the authority to define dynamic tables within the platform.
By following these guidelines, scripts can be efficiently managed and leveraged across the entire platform to ensure consistency and scalability.
Updated
by Anna Gernát