Hi Shawn,
I have written some ogScript code which I hope will solve your problem.
A short explanation of the code: it will create a spinner widget, a toggle button widget and a label. As the numbers are changed by the spinner, they will update values in the label. If the toggle button is 'ON', the number will display as [7596]. If the toggle button is 'OFF', the number will display as [/7596].
I hope the code below solves your problem. Please feel free to reach out if need be.
<abs contexttype="opengear" id="_top" keepalive="false" style="">
<meta>
<params>
<param access="1" constraint="0.0;9999.0;0.0;9999.0;1" constrainttype="INT_STEP_RANGE" name="spinner" oid="0x2" precision="0" type="INT16" value="42" widget="spinner"/>
<param access="1" constrainttype="INT_CHOICE" name="button" oid="0x3" precision="0" type="INT16" value="0" widget="radio-toggle">
<constraint key="0">ON</constraint>
<constraint key="1">OFF</constraint>
</param>
</params>
</meta>
<label height="59" id="status" left="19" name="" style="txt-align:center;bg#dark;bdr:etched;font:bold;" top="20" width="281"/>
<param expand="true" height="58" left="21" oid="0x2" top="101" width="80">
<task tasktype="ogscript">if (params.getValue('0x3', 0) == 1)
{
ogscript.rename("status", '['+params.getValue('0x2', 0)+']');
} else {
ogscript.rename("status", '[/'+params.getValue('0x2', 0)+']');
}</task>
</param>
<param constrainttype="INT_CHOICE" expand="true" height="63" left="218" oid="0x3" precision="0" style="style:toggleButton;" top="97" widget="toggle" width="82">
<constraint key="0">OFF</constraint>
<constraint key="1">ON</constraint>
<task tasktype="ogscript"/>
<task tasktype="ogscript">if (params.getValue('0x3', 0) == 1)
{
ogscript.rename("status", '['+params.getValue('0x2', 0)+']');
} else {
ogscript.rename("status", '[/'+params.getValue('0x2', 0)+']');
}</task>
</param>
</abs>
#DashBoard