
Re: 2 State Toggle Button
In that case, don't bind the "Control Value" property and bind the "Indicator Value" property to an expression like this:
Code:
{Path/To/Boolean1} && {Path/To/Boolean2} && {Path/To/Boolean3}
So the expression will return 1 when all are true and 0 otherwise.
If you want to write to tags when the button is pressed you either:
1) Bind the "Control Value" property to a single tag if you only need to write to one tag or
2) For multiple tags you can put an event of the actionPerformed:
Code:
value = not event.source.controlValue
system.tag.writeToTag("Path/To/Boolean1", value)
system.tag.writeToTag("Path/To/Boolean2", value)
system.tag.writeToTag("Path/To/Boolean3", value)