Getting Selected Values from a filter

from Spotfire.Dxp.Application.Filters import ListBoxFilter

#get a reference to a listbox 
filt=Document.FilteringSchemes[0][myDataTable][myDataTable.Columns["symbol"]].As[ListBoxFilter]()

#to get the active filtering reference:
#filt = Document.FilteringSchemes[Document.ActiveFilteringSelectionReference][myDataTable][MyDataTable.Columns["symbol"]].As[ListBoxFilter]()

#loop selected values
for value in filt.SelectedValues:
  print value

No comments: