Hi Sylvain,
I don't think you can have both statuses at the same time. If you have one of the devices in your custom panel configured as the opengear contexttype, then you can use params.getDeviceStatus() or params.isDeviceOnline() to achieve that. isDeviceOnline() returns a boolean (true or false), and getDeviceStatus() returns the device status as an integer:
- 0 - good (green)
- 1 - warning (yellow)
- 2 - Error (red)
- 3 - Unknown (gray)
Here is a sample code below:
<abs contexttype="opengear" id="_top" keepalive="false" objectid="yourXpressionIP:8020:XPression" subscriptions="false">
<button buttontype="push" height="76" left="79" name="tEST" top="102" width="109">
<task tasktype="ogscript">ogscript.debug(params.getDeviceStatus());</task>
</button>
</abs>
Cheers,
Aury R.
------------------------------
Aury Rukazana
Senior Software Developer
Ross Video
------------------------------