Hi, I’m new to Ignition. I’m am struggling to navigate to a specific screen when the user click chooses an option in Drop down. My dropdown has two options: siteA and siteB. I already assigned value 0 for siteA and value 1 for siteB. I have written a script and bound it on value of the dropdown. But it did not work.
Here is my script that I wrote:
def transform(self, value, quality, timestamp):
if value:
if value == 0:
system.perspective.navigate("/siteA")
elif value == 1:
system.perspective.navigate("/siteB")
return value
Actually, I was not confident with this script. I felt it should return void instead of returning the value.
I also tried to configure event for the click event, but it still did not work.
Thank you so much for your time.