Table with Search Term filtering as datasource for other component

  1. My goal: to used filtered table to populate map component.
  2. Issue: the table1.data still has all 577 results when there are only 2 showing in the table after using the search term.

I’d prefer to use the search term field rather than filtering the query, it’s just simpler and quicker.

the export seems to work, so I feel like the filtered data should exist somewhere.

Hi, you can call the following method to get the filtered data. But this must be called from a JS query it is not a reactive property, it returns a Promise so must be retrieved using await. If you would like more advice on how to wire this up to the Map component, I can provide further detail.

const results = await table1.getDisplayedData();
return results;

Thanks

I ran into this same solution yesterday for a similar issue.
Thanks!

1 Like