Naufal Ahmed Posted September 8, 2014 Share Posted September 8, 2014 I want to have a list box filter without "(All Values)" option. How do I achieve this Link to comment Share on other sites More sharing options...
Luca de Falco 4 Posted October 23, 2015 Share Posted October 23, 2015 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 More sharing options...
Luca de Falco 4 Posted October 23, 2015 Share Posted October 23, 2015 import RangeFilter is not necessary Link to comment Share on other sites More sharing options...
Naufal Ahmed Posted October 23, 2015 Author Share Posted October 23, 2015 I want to remove that "(All)" option. I don't want my List box filter to display that option. Link to comment Share on other sites More sharing options...
Naufal Ahmed Posted October 23, 2015 Author Share Posted October 23, 2015 Instead,I can have a property control as filter but I want to know if its possible with the list box filter that spotfire provides. Link to comment Share on other sites More sharing options...
Norbert Ledenyi Posted October 23, 2015 Share Posted October 23, 2015 as far as I know list box filter doesn't provide the option to remove the 'All' option. Use an other filter type or a listbox property control as a workaround Link to comment Share on other sites More sharing options...
Madhumita Mukherjee 2 Posted September 17, 2019 Share Posted September 17, 2019 When I tried the above script it gave name error myFilter not defined. Any idea what would have happened Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now