When I add a new group it will write the first one.
########################################################################
<!--Custom: Sensor Status - Change_Color -->
<div class="map_object map_icon2 map_icon_large id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>">
<#objectproperty type="nodename" id="<@objectid>" var="nodename"> <#objectstatus name="lastvalue" id="<@objectid>" var="lastvalue"> <#objectstatus name="message" show="textraw" id="<@objectid>" var="message">
<div id="demo"></div>
<script type="text/javascript">
var errors="<#objectstatus name="downsens" id="<@objectid>" show="textraw">";
if (errors > 4) {
document.getElementById("demo").innerHTML = ('<img name="ok" src="/images/lamp_ON.png" width="80" height="100" border="0" alt="" />');
} else {
document.getElementById("demo").innerHTML = ('<img name="false" src="/images/lamp_OFF.png" width="80" height="100" border="0" alt="" />');
}
</script>
</div>
Hello,
Thank you for your KB-post.
May I please ask you to elaborate this issue in more details?
Jun, 2017 - Permalink