Can someone please explain why this wont work in an Expression Tag?
Can someone please explain why this wont work in an Expression Tag?
This is on a gateway tag I am guessing? Gateway tags are project agnostic - this is running on the gateway without any knowledge of what project display.test
is supposed to be in. I think you will need to configure this under gateway settings
It's always helpful if you can provide the error message you are getting though as well.
Any script intended to be run in a tag, through expression or otherwise, must be in the Gateway Scripting Project.
Thank you.
(also, display.test
will return a reference to the function object itself, this will not execute it and return the return from the function itself. You'll need to call the function with display.test()
)
Actually, no, runScript
special-cases this to trigger argument passing mode. It will indeed run bare function arguments.