Jump to content

I want to have a list box filter without "(All Values)" option.


Naufal Ahmed

Recommended Posts

  • 1 year later...

import Spotfire.Dxp.Application.Filters as filters

import Spotfire.Dxp.Application.Filters.RangeFilter

from Spotfire.Dxp.Application.Filters import FilterTypeIdentifiers

tableGroup = Document.ActivePageReference.FilterPanel.TableGroups

for t in tableGroup:

if(t.Name=="Insert Table Name"):

myFilter= t.GetFilter("Insert column Name")

myFilter.FilterReference.TypeId = FilterTypeIdentifiers.ListBoxFilter

listBoxFilter = myFilter.FilterReference.As[filters.ListBoxFilter]()

listBoxFilter.IncludeAllValues=False

#Try this

Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...