How to call a Function in a JavaScript file (*.js) that has been added into the Project path?
Convertigo Public Knowledge base
How to call a Function in a JavaScript file (*.js) that has been added into the Project path?
This is done using the include statement.
Create a folder in your project called libjs
Place in this folder a file called lib.js
in this file :
var testfct = function (data) { log.warn("test" + data) }
Create a Sequence JS Step:
include("jslib/lib.js") testfct("mydata")
When you run the sequence the testfct function will be called and the log will be displayed.
, multiple selections available,
Related content
How to address a step variable in JS expression?
How to address a step variable in JS expression?
More like this
Call a custom Page function from a customAction component
Call a custom Page function from a customAction component
More like this
Add custom Java class to a back end project
Add custom Java class to a back end project
More like this
Call class page function from element Event
Call class page function from element Event
More like this
Call a variable from CustomAction component
Call a variable from CustomAction component
More like this
Call a sequence automatically when the application is starting and not using an onclick button
Call a sequence automatically when the application is starting and not using an onclick button
More like this
(c) Convertigo 2023 https://www.convertigo.com