Filter based on data store object values

Hello,

I’m building an active filter tag cloud from a dropdown:
image

To do this, I’m using a data store that contains objects (ids, names). I’d like to run a query based on the user ids so I need to pass the ids to the server connect action.

Another approach I considered is using two independent arrays so I need both the user ID and name. But that doesn’t seem as clean as storing the objects as objects in a data store.

The issue I’m running into is that I don’t know how to break apart the data store items to pass them to the server connect action.

When I pass in:
image

I get this:
image

Which is good because I’m partially there since it’s passing in the objects (provider_ids). But in my case, I want an array of the provider_ids for filtering purposes.

However, when I do this:
image

I get this:
image

So in referencing the provider_id from the data store, it no longer passes anything.

Does anybody know how I’d approach passing the provider_ids to the SC action?

Community Page
Last updated: