Hello guys!
I am pretty new at Ignition. I am working with an Easy Chart component in Ignition Designer and i need some help.
My goal is to dynamically modify its "pens" property. Specifically, I want to ensure that only one row (Cicle Time, the purple ones) can be checked at a time. When a row is checked (row[7] == "True"
), its user_writable
property (row[20]) should be set to True
, while all other rows should have user_writable
set to False
. If it false, it is unseeable.
Problem:
I am using the condition if event.propertyName == 'pens'
to detect changes to the "pens" property. However, updating the "pens" dataset within the script triggers the same property change event again, resulting in an infinite loop. I need to avoid this loop while ensuring the updated dataset is properly written back to the Easy Chart.
Goal:
- Identify the checked row (
row[7] == "True"
) and its index. - Set the
user_writable
property (row[20]) of the identified row toTrue
, and all other rows toFalse
. - Update the "pens" property while preventing an infinite loop caused by recursive event triggering.
Thank you!