Filtering table using a multi-select list box

Hello,

I am trying to create a filterable interactive table using a multi-select list box. This is a variation of Ian Kerman's protocol that uses a text box to filter a table (original post and protocol here). In summary, using the Data Connector component and a data store (JSON array), a JavaScript function can be triggered whenever the text box is changed. This JavaScript function loops through the data store, checks for matches against the input of the text box and publishes the record if a match is found.

The selections of the list box are passed as an array, and I'd to know if I can modify Ian's original JavaScript component to check each record against the items in the array and publish if a match is found. Could someone please advise on the best approach for this? Many thanks in advance.