Perspective refreshBinding error, no binding on property

In perspective I am attempting to run a script to refresh a property query binding on an onMouseEnter event. There is limited documentation on this method, but I believe I am using it correctly.

Error running action ‘dom.onMouseEnter’ on Docks/Menu@D/root/Features: Traceback (most recent call last): File " ", line 2, in runAction java.lang.IllegalArgumentException: No binding on property “”. at com.inductiveautomation.perspective.gateway.model.ComponentModel.refreshBinding( at com.inductiveautomation.perspective.gateway.script.ComponentModelScriptWrapper$SafetyWrapper.lambda$refreshBinding$0( at com.inductiveautomation.ignition.common.util.ExecutionQueue$FragileRunnableFuture.getValue( at com.inductiveautomation.ignition.common.util.ExecutionQueue$FragileRunnableFuture.getValue( at com.inductiveautomation.ignition.common.util.ExecutionQueue$ at com.inductiveautomation.ignition.common.util.ExecutionQueue$ at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$ Source) at java.base/ Source) java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: No binding on property “”.



Query Binding

What about props.items[1].target or something along those lines?

1 Like

That did it, thanks. It is a bit misleading in the documentation though, since it takes a string parameter and brackets don’t seem to usually be used when referring to properties.

1 Like