Create and use of JS functions

Said
edited July 28, 2021 in Analytics #1
Define any js function in the initialize like:function myFunction(str){dosomething;}reportContext.setPersistentGlobalVariable("myFunction",myFunction);To use this function in script or in expressions just call:myFunction("str");