Is switch hint on controlpanel working?
asked 2015-04-26 04:10:00 -0800

This post is a wiki. Anyone with karma >75 is welcome to improve it.
Hi, I would like to create a switch on control panel. GenerateCPSApp.py asking to create switch hint on stringproperty with two contraints. which is not working as expected. has nayone tried <hint> switch </hint>.
<stringProperty>
<name>switch1Property</name>
<getCode>getswitch1</getCode>
<setCode>setswitch1(%s)</setCode>
<secured>false</secured>
<enabled>true</enabled>
<writable>true</writable>
<bgcolor>0xffd700</bgcolor>
<hints>
<hint>switch</hint>
</hints>
<constraintVals>
<constraint>
<display>
<value type="literal" language="en">off</value>
</display>
<value>off</value>
</constraint>
<constraint>
<display>
<value type="literal" language="en">on</value>
</display>
<value>on</value>
</constraint>
</constraintVals>
</stringProperty>