Changing readonly at runtime [message #1772687] |
Wed, 13 September 2017 16:45  |
Eclipse User |
|
|
|
Hi All,
Quick question. Is it possible to dynamically disable or otherwise make read-only a channel at runtime?
Consider the scenario where (for example) I have "Vol+", "Vol-" and "Mute" channels (switches). If someone triggers the "Mute" channel, the I would like to disable the "Vol+" and "Vol-" channels (switches).
I can't seem to find a way of doing this, so am wondering if:
a) it is possible? or
b) I have a design flaw in my thinking in relation to interrelationships between channels!
Thanks,
Jabba
|
|
|
|
|
|
Re: Changing readonly at runtime [message #1773335 is a reply to message #1772916] |
Tue, 26 September 2017 10:35  |
Eclipse User |
|
|
|
Inside a sitemap you can change the visibility of an item based on the state of another item, i.e.
Switch item=switch1 label="My Switch" visibility=[switch2=="ON"]
This would only show the "switch1" in the sitemap whenever "switch2" is in "ON" state. Since you brought up the sitemap idea, maybe it is an option for you as long as we do not support setting a channel to read-only at runtime.
Cheers,
Stefan
|
|
|
Powered by
FUDForum. Page generated in 0.06761 seconds