Hi Amina,
Here the steps usually followed to use any external JS library -
- Import the JS library as a WEB file in the process app/toolkit
- In a View, add the reference under "Included Scripts" (there are other ways of doing it, but this would be good to start with)
- The library functions would be available to use within the View.
You can download the TWX and import in your Workflow Center from here - Charting Toolkit for IBM BAW
I have created a similar implementation to export to PDF using jsPDF library.
Thanks!
------------------------------
Atanu Roy
Lead Engineer
London Stock Exchange Group
------------------------------
Original Message:
Sent: Wed April 03, 2024 07:43 AM
From: Amina SAHLAOUI
Subject: Using jsPDF inside Process Designer
Hello,
I'm currently working on a process in BAW, and I'm looking to generate a PDF document from the process variables.
My plan is to utilize the jsPDF library for this task. However, I'm struggling to find a method to import an external JavaScript library within the process designer, whether through a script task or any other means.
Any insights or guidance on how to integrate external libraries like jsPDF into the process designer would be greatly appreciated.
Thanks in advance!
------------------------------
Amina SAHLAOUI
------------------------------