AWS Thinkbox Discussion Forums

Global Enabled state causes Event State to fail to appear in UI

Hi Guys

While working off the Event Plugins .param example on page 539, I found that using ‘Global Enabled’ as a state option appears to cause the State option to disappear for my plugins in the Configure Events dialog.

The content of a working Param file is:

[i][State]
Type=Enum
Items=Enabled;Opt-In;Disabled
Category=Options
CategoryOrder=0
CategoryIndex=0
Label=State
Default=Disabled
Description=Blah

[EventCallbacks]
Type=Label
Description=OnSlaveStartedCallback
Default=OnSlaveStartedCallback[/i]

The content of a not-working param file is:

[i][State]
Type=Enum
Items=Global Enabled;Opt-In;Disabled
Category=Options
CategoryOrder=0
CategoryIndex=0
Label=State
Default=Global Enabled
Description=This plugin should set the CPU affinity.

[EventCallbacks]
Type=Label
Description=OnSlaveStartedCallback
Default=OnSlaveStartedCallback[/i]

The strange thing is that the syntax appears to be near identical to examples like FontSync.param, which includes Global Enabled and works!

Regards

Fergus

So you’re probably seeing an error like this in the console window:“Plugin parameter “State” in “repo/events/EVENT” is of type Enumeration, but the current value “Enabled” could not be found in the specified Items”

The problem here is that you saved the State as “Enabled”, and then removed “Enabled” from the possible items that control could hold. As a result, the control fails to populate. To fix this, you need only add “Enabled” back in the param, change the State to something else, and then remove “Enabled” from the param.

Privacy | Site terms | Cookie preferences