Java Script Control Resource
I followed this web page to add my library js file.
https://documentation.decisions.com/docs/javascript-control-using-library
When I run the debug, it always says "Error loading ExampleJSLibrary". So I wonder, does this code correct? Is the path of virtualPath + "/scripts/FormControls/jsFiles/ExampleJSLibrary.js" correct? I cannot find my js library file with this path.
ExampleJSLibrary.prototype.initialize = function (host, component) {
// here "virtualPath" is a global variable in the Decisions client
$DP.ScriptLoader.LoadScript(
virtualPath + "/scripts/FormControls/jsFiles/ExampleJSLibrary.js"
)
.then(function () {
// Do initialization of your data control which that depends on the 3rd party library
})
.catch(function (e) {
console.error("Error loading ExampleJSLibrary", e);
});
};
Comments
-
Please close this thread.
Howdy, Stranger!
Categories
- 4.4K All Categories
- 84 General
- 13 Training
- 212 Installation / Setup
- 1.2K Flows
- 111 Rules
- 275 Administration
- 214 Portal
- 498 General Q & A
- 716 Forms
- 349 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 188 Pages
- 5 Process Mining
- New Features
- 187 Datastructures
- 70 Repository
- 231 Integrations
- 30 Multi-Tenant
- 27 SDK
- 81 Modules
- 60 Settings
- 27 Active Directory
- 12 Version 7
- 36 Version 8
- 143 Lunch And Learn Questions