In a perspective design, I have a pump where I am writing a script in pump "onClick" event. I expect the script will change the state of the pump to "running" in both UI and the tag property. When I run the project in browser, it shows "Error_Configuration".
In 1_Screenshot file it shows the configuration and in 2_Screenshot shows the error. Any idea what is the issue here.
Note that there is no tag associated with the pump that change the state, I am expecting that on every click on the pump, it changes the state to running (property of the pump) and then when the tank goes to 100% (which comes from integer tag used for counter to reach 100%) the pump stopped.
Hi @Anirban-Debnath,
Your issue is that you cannot bind a property with him self.
I would rather use a custom property that you set when clicking on the pump object and reset then tank value is above 100%
Then you link that custom value to your pump state
regards
Thanks Arnaud
Can you share an example on how to do this.
PumpState_2025-05-07_0719.zip (8.1 KB)
Hi @Anirban-Debnath,
here and export of my test view.
Under the custom properties of the view you have the tankLevel and the pumpState.
Those are linked to the pump object and tank object. on each you have also a onchange script you can check it by right-click on the property and edit on change script.
there is an on click script on the pump to set the running status.
Regards
Thank you for sharing the example. It worked. 
1 Like