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.

Anna Gernát Updated by Anna Gernát

Dynamic tables

Service console

Contact

Syca (opens in a new tab)

Powered by HelpDocs (opens in a new tab)