Using Enumeration parameters in Clockwork


Enumeration parameters let you give sensible operator-friendly names to numbers. Let’s go back to our router example to see this in action.

Select Clockwork and click on (…) to edit the Event Types

media_1381483368235.png

select Enumeration as the parameter type

Click (…) to edit the values

media_1381483432980.png

Now add name – value pairs

media_1381483527251.png

name-value pairs are entered like this:

<name>=<value>

this applies everywhere in Helm where you are setting up enumerations.

Click Ok to exit the string editor and OK again to save the Event Type

Now run the panel and add the event to see this in action

media_1381483727878.png

Now instead of numbers the operator sees meaningful names. This is great way to make your panels easier to use and avoid potentially dangerous mistakes.

Event ready to run

media_1381483839195.png

Tagged with: ,
Posted in Scripting