-
For example, I put the js file myfile.js in a folder called myfolder. and the in the js file, i write a function, e.g. like: function func1(x) {
return x
}
module.exports = func1; then, how should i use such func in the formula? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Moved to Q&A disccussions You need to select where the js files are saved The use of them could be consulted here The name of the js file should be the same of your exposed function: function func1(x) {
return x
}
module.exports = func1; And the use was correct: ${db.js.func1(0)} |
Beta Was this translation helpful? Give feedback.
-
I know the reason. If you activate the JS in plugin global settings, then you open the old database that was created previously, you will find that you still don't activate the JS in database settings. So the solution are
|
Beta Was this translation helpful? Give feedback.
Moved to Q&A disccussions
You need to select where the js files are saved
The use of them could be consulted here
It just explain the basics.
The name of the js file should be the same of your exposed function:
func1.js
And the use was correct: