reset all values of a list box filter


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:

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:

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