I want to add a custom button to the grid that when pressed will call my javascript function that relies on jspdf
I created 2 new web resources
- using https://github.com/parallax/jsPDF/blob/master/dist/jspdf.es.js
- My custom javascript utilizes jsPDF
I use Ribbon Workbench to add 2 actions for the command.
- The 1st action calls the jspdf webresource with "isNaN" function name
- The 2nd action calls my js webresource with my function name.
When I click on the custom button, I get javascript error "ReferenceError: jsPDF is not defined" on the line "let pdf = new jsPDF("p", "pt", "a4");" it seems that jsPDF is not being loaded at all?

Report
All responses (
Answers (