Laxmi Acharya Posted January 22, 2019 Share Posted January 22, 2019 Hi, I want to get all the values of the ListBoxFilter without iterating through the rows of column using ironpython Reference: https://community.spotfire.com/questions/need-help-how-assign-selected-valu... here in the above link source code - have iterated through the column values but instead i want all the unique values through filter only. Thanks. Link to comment Share on other sites More sharing options...
Rayees Wani Posted January 23, 2019 Share Posted January 23, 2019 Check below two options: 1. https://community.spotfire.com/questions/how-can-get-values-list-box-filter... 2. ###################################################################### from Spotfire.Dxp.Application.Visuals import VisualContent from Spotfire.Dxp.Application import Filters as filters from Spotfire.Dxp.Application.Filters import FilterTypeIdentifiers out="" # Get the filter panel on the current active page filterPanel = Document.ActivePageReference.FilterPanel # Perform filtering action for tableGroup in filterPanel.TableGroups: for fh in tableGroup.FilterHandles: if fh.Visible: if (fh.FilterReference.TypeId == FilterTypeIdentifiers.ListBoxFilter): cbFilter = fh.FilterReference.As[filters.ListBoxFilter]() for checkedValues in cbFilter.SelectedValues: out+=checkedValues+"n" Document.Properties["Debug"] = out ###################################################################### Link to comment Share on other sites More sharing options...
Laxmi Acharya Posted January 23, 2019 Author Share Posted January 23, 2019 here, print cbFilter #gives me ColumnName : ((All))in my case i don't have any filtered rows so on doing print out #prints a blank string here because it doesn't go inside the for loop i.e. for checkedValues in cbFilter.SelectedValues: .....Thanks 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