How to change the value of a list box multi-select property control based on the filter selection
Introduction
How to change the value of a list box multi-select property control based on the filter selection
Code Sample
# Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license. from Spotfire.Dxp.Application.Filters import * from Spotfire.Dxp.Application.Visuals import VisualContent from System import Guid #Get the active page and filterPanel page = Application.Document.ActivePageReference filterPanel = page.FilterPanel myFilter=filterPanel.TableGroups[0].GetFilter("Specify Filter name Here") lbFilter = myFilter.FilterReference.As[ListBoxFilter]() #Create a list to store the values of the List Box Filter selections my_list = [] for value in lbFilter.SelectedValues: my_list.append(value) #mylist1 = multi select list box property control Document.Properties["mylist1"]=my_list
References
License: TIBCO BSD-Style License
Recommended Comments
There are no comments to display.