reset all values of a list box filter

hello,

i have a list box filter, but i show the values inside like a check box filter. Just for give you an idea i have folowed this guide:https://docs.tibco.com/pub/sfire-bauthor/7.6.0/doc/html/en-US/GUID-4B7FE19C-82ED-41BD-8746-8594F52C3E02.html

Now i'm using this script for uncheck all the values of the filter. This is the script that i'm using:

import Spotfire.Dxp.Application.Filters as filters
import Spotfire.Dxp.Application.Filters.CheckBoxFilter
from Spotfire.Dxp.Application.Filters import FilterTypeIdentifiers
myPanel = Document.ActivePageReference.FilterPanel
myFilter= myPanel.TableGroups[0].GetFilter("CDDES")
myFilter.FilterReference.TypeId = FilterTypeIdentifiers.ListBoxFilter
ListBoxFilter = myFilter.FilterReference.As[filters.ListBoxFilter]()
ListBoxFilter.IncludeEmpty = False
for value in ListBoxFilter.SelectedValues:
  ListBoxFilter.Uncheck(value)

When i use this kind of script the filter type change. It become a listbox without check box inside. Some one know how i can fix this issue? 

Best regards

 

(2) Answers

Login