|Modify the element's attribute (Att1) when the element's (Att2) changes [message #1793937]
||Mon, 20 August 2018 20:33
| Parsa Pourali
Registered: February 2014
I am trying to listen to an attribute of an element and change another attribute of that same element accordingly.
for example if the user sets the Att1 to "On Aspect Light", then I set the value of Att2 to "Green", if he set the Att1 to "Two Aspects Light", then I set the Att2 to "Green,Red", and if set the Att1 to "Three Aspects light", then I set the Att2 to "Green, Yellow, Red".
I tried to use a resource change listener, but unfortunately it throws error saying that the read adn write modifications cannot be done at the same context.
Do you know any other ways that I could use?
Powered by FUDForum
. Page generated in 0.01990 seconds