0

Is switch hint on controlpanel working?

asked 2015-04-26 04:10:00 -0700

this post is marked as community wiki

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>
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-01 21:00:58 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Overriding ControlpanelAdapter is an apt soln.

edit flag offensive delete publish link more

Comments

Can u please explain it?

anujtripathi.04 ( 2015-09-01 23:57:55 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-04-26 04:10:00 -0700

Seen: 52 times

Last updated: May 01 '15