Is there a "this" type reference in the expression language?

There is not a way to do this within the expression language (might be good for ideas.inductiveautomation.com).

However, there is a workaround. I would caution that this can cause unnecessary CPU load, and so I would definitely recommend simply using a template. However, in an expression binding using runScript, self is available in the namespace. So: runScript("self.name") will return the name of the component that fired the expression.

3 Likes