• German
  • Docs
  • Knowledge
  • F.A.Q
  • Forum
  • Media
  • Courses
  • Marketplace
  • Login
  • Try for free
  • German
  • Docs
  • Knowledge
  • F.A.Q
  • Forum
  • Media
  • Courses
  • Marketplace
  • Login
  • Try for free
home/Knowledge Base/How to's/How to integrate and use external libraries in Simplifier Apps

How to integrate and use external libraries in Simplifier Apps

Written by Christian Kleinschroth
December 10, 2020

Prerequisites

You need a zip file containing the desired Javascript library code (.js, or .min.js) [e.g., tesseractJS-2_1_4].

Step 1 – Upload the library js code

From the Simplifier Dashboard click ‘Applications’ and select the ‘libraries’ tab:

Click ‘+’ to upload your library code:

Enter ‘name’ and ‘version’ details, and upload the zip file:

Step 2 – Integration code

Enter the code snippet which should be used to integrate the Javascript code of the library:

In this case, we use the ‘addScript’ method for integration. The first parameter is the relative path to the Javascript file in your zip folder (.js or .min.js). The second parameter defines a name which can be used to specify dependencies between this library and possible others, which are also integrated via ‘addScript’ in this code block (cf. Example – Simplifier Documentation).

Further available integration methods (e.g., for integration .css styles) can be found in the Simplifier Documentation.

Click ‘Save’ to finish the upload and integration step.

Step 3 – Add library to Simplifier App

Now, go to your Simplifier App, where you want to use the library. Open the ‘libraries’ tab in the Application Editor:

Click ‘+’, use the search bar to find your library, and select it:

Now, the library is added to the list of available libraries:

Step 4 – Use library in Simplifier App

The library can now be used in Scripts in the Process Designer:

Step 5 – Libraries with Dependencies

Some JavaScript libraries have dependencies to other JavaScript libraries. In these cases, it’s important to ensure that the dependent library is loaded after the library it has a dependency on.

For example, there’s a plugin for the ChartJS library called chartjs-plugin-datalabels. To use this library in Simplifier, you first have to upload ChartJS:

Then, upload the dependent plugin library for ChartJS:

Finally, add ChartJS as a dependency in the section ‘Dependencies’, as well as in the JavaScript integration code. To do so, add the library name as third parameter to the ‘addScript’ code, with the following syntax:

addScript('dependent_lib_minjs_file', 'dependent_lib_name', ['dependency_name']);

In our case:

addScript('chartjs-plugin-datalabels.min.js', 'datalabelsjs', ['chartjs']);

Now, when using the dependent library in an application or a widget, all the libraries in the dependency list are loaded beforehand to ensure functionality.

Please be aware that a new file upload (Step 1), changes concerning the script (Step 2), or app (Step 3) integration take only effect when deploying the app.

Tags:designerUIscripttextto

Was this article helpful?

1 Yes  No
Related Articles
  • Fine-tuning and Running Custom AI Models in Simplifier
  • Using the Simplifier Teams App
  • How to integrate value help and suggestions in user inputs
  • How to integrate Simplifier in CI/CD pipelines
  • How to use Google reCAPTCHA v3 Essentials
  • How to use Simplifier Content Repository Plugin
Leave A Comment Cancel reply

You must be logged in to post a comment.

How to's
  • How to integrate and use external libraries in Simplifier Apps
  • Working with Drag and Drop
  • Create Test Cases With The UI5 Test Recorder
  • Full-Text Search For PDF Documents
  • Full-Text Search For Excel Files
  • How to Implement an Approval App in Simplifier
  • Create a PDF Template via Plugin
  • Generating a PDF with Simplifier via Plugin
  • How to use Query Options in ODataV2 Connector
  • How to use TimePicker widget
  • How to set Simplifier environment variables in Open Shift
  • How to send and receive Push Notifications
  • Dynamic where-clause and repeatable statement
  • Version and Release Management in Simplifier
  • Logs and Monitoring in Simplifier
  • Use the Adobe PDF Embed API in your Simplifier Application
  • PDF Templates: make the Header/Footer content dynamic
  • Converting Text to Speech with the Google TTS Connector
  • Authentication through another window
  • Creating a ChatBot Client for ChatGPT
  • How to use Simplifier Content Repository Plugin
  • How to use Google reCAPTCHA v3 Essentials
  • How to integrate Simplifier in CI/CD pipelines
  • How to integrate value help and suggestions in user inputs
  • Using the Simplifier Teams App
  • Fine-tuning and Running Custom AI Models in Simplifier
Knowledgebase Categories
  • Getting Started 4
  • Best Practices 3
  • How to's 26
  • Layout & Design 4
  • Widgets 8
  • Cloud Services 6
  • Database Handling 1
  • Integrations 10
  • Plugins 6
  • Mobile Client 2

  Working with Drag and Drop

GetApp Review

User Reviews

capterra

User Reviews

For AWS Customers

For SAP Customers

  • Contact | Imprint | Privacy | © 2025 Simplifier AG. All Rights Reserved.

  • English
  • German

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.