(21.03.2024, 18:15)savaskorkmaz Wrote: Hi,
I have an 1 bit object on visualation. We are sending fixed value as "1". This object also have a status group address.
We want that, if the status object is 0, command object will act like read only. It will not send any command.
How we can do it ?
Regards,
$(function() {
$('.hidden-by-value').each(function(_, el) {
var addr = $(el).data('object');
if (addr) {
grp.listen(addr, function(obj) {
var value = obj.value;
if (value) {
$(el).addClass('item-read-only').removeClass('hidden-by-value');
} else {
$(el).removeClass('item-read-only').addClass('hidden-by-value');
}
});
}
});
});