Script Modules in Qntrl | Qntrl Online Help

Script Modules

Script Modules offers creating reusable, ready-made templates for your business logic compatible with ES6 modules. When you need that specific logic in another script, you don't have to write or copy-paste the code again. You can easily include the block of code from the script module, saving time and ensuring consistency. It not only saves you time but also makes your code easier to manage and reuse whenever necessary.
 

Add a Script Module 

To add a new script module, follow these steps:
  1. Navigate to (settings) >> CodeX >> click Script Modules in the menu.
  2. Click the New Module button.
  3. In the Module Name field, provide a name for the template.
  4. Code the script according to your business requirements.
  5. Click the Publish button and confirm your action.

      

 

A new script module will be added to Qntrl. You also have the option to save it as a draft and publish it later by clicking Save as Draft.
 

Edit or modify a Script Module 

To edit a script module:
  1. Navigate to (settings) >> CodeX >> select Script Modules in the menu.
  2. Click on the name of the server module you wish to edit from the displayed list in the home page.
  3. Make required modifications.
  4. Click the Publish button and confirm your changes.
The server module will be updated.

 

Enable or Disable  Server Modules

When a server module is disabled, it cannot be used in the codex script.
  1. Navigate to (settings) >> CodeX >> click Script Modules in the menu.
  2. In the column Active, toggle the button to enable or disable a script module.

      


 

Delete a Script Module   

To delete a script module:
  1. Navigate to (settings) >> CodeX >> click Script Modules in the menu.
  2. Hover over the name of the server module you want to delete, click mouse over action menu, , and select Delete.
  3. Confirm your delete action.

       

      

 

NotesDeleted codex modules can no longer be used in codex scripts.

    • Related Articles

    • Create and Configure a CodeX Script

      Prerequisite Prior to creating a codex, it is essential to establish a board since the configured codex scripts can be activated within that Board when specific conditions arise. Add a Script To add a new script, follow the below steps: Navigate to ...
    • Parameters in CodeX Script

      In the CodeX script, you can perform CRUD (Create, Read, Update, Delete) operations on the Parameters in Qntrl through the SDK. Instead of defining a URL or other values directly in your CodeX script, you can define them in ConfigStore and reference ...
    • Summary

      Overview CodeX, a robust scripting feature within the Qntrl platform, empowers you to automate tasks, manipulate data, and integrate workflows/applications. By running JavaScript code in a standalone server environment, CodeX allows you to execute ...
    • Server Variables

      Server Variable is a feature for storing values, such as text, numbers, email addresses, or any other data, and reusing values across your scripts, making your scripts more efficient and easier to manage. If you need to update these values, you can ...
    • Qntrl 3.0: new updates and migration

      Latest additions and enhancements We recently released a new version of Qntrl: 3.0. This version has a fresh interface with simplified navigation and seamless performance. We’ve tried to incorporate as many feedback and suggestions as possible in our ...

    You are currently viewing the help articles of Qntrl 3.0. If you are still using our older version and require guidance with it, Click here.