Perspective dropdown not respecting isDisabled

Using 8.1.13

The Perspective dropdown component is not respecting the isDisabled setting.

When I use a script to read all of the devices in a Gateway using system.device.listDevices() to create a dataset and then manipulate it so there are columns for label, value and isDisabled into a tag and then bind that tag to a Perspective dropdown component the UI is not behaving as expected.

When there is a column called isDisabled ALL items in the dropdown are disabled and none can be selected. If I delete the isDisabled column then items can be selected but now there are devices that are not enabled listed which is not what is desired.

Can not select any items no matter if isDisabled is True or False

This is the dataset bound to the dropdown

If the isDisabled column is removed then all items are selectable
Can select ALL items - cropped

This is the dataset bound to the dropdown

Is this a feature or a bug?

Thanks!

Scott

What is the type of the column you're using for isDisabled? That looks like a String column, and strings will always evaluate as True. This would seem to explain the behavior you're seeing. Make sure your isDisabled DataSet column is using the Boolean data type.
Screenshot 2024-01-17 at 2.17.40 PM

2 Likes

You nailed it. The isDisabled column is/was a string data type. Changing it to a boolean solved the problem. Thank you.

1 Like