Hi,
I'm building something (basically a combination of icons and text), that I would like to use as a filter, which has the same functionality as a listbox. My reasoning is: If i can dynamically set the selected values in the listbox, based on the onclick events of the icons, the listbox will just work regularly to filter a chart.
I can use the .setSelectedValues() function of the listbox, but it requires an array. The thing i'm trying to accomplish here is to have the onclick event of an icon pass a value to a globally set array, which can then be used as input for the .setSelectedValues function of the listbox. Is there a way to dynamically pass values to an array?
Any help is greatly appreciated!