Question

listens_to_filters not working in looker extension project

  • 2 November 2021
  • 1 reply
  • 39 views

am referred the https://github.com/looker-open-source/components/tree/main/apps/filter-demo filterdemo project based on that project am calling the dashboard api with input parameters as id, and dashboard_filters .. i can able to render the dashboard filters in the looker extension project but the listens_to_filters are not working..

simple example :- in my case i have 4 filters .. when the user change the country value based on that Geo market and Region value should change but its not happened . am sharing the code snippets
looker API method to get the dashboard filters :- var filtersvalues = await extensionContext.coreSDK.ok(extensionContext.coreSDK.dashboard(id.toString(), 'dashboard_filters'));

render the dashboard filters:-


{sortedFilters.map(filter =>
filter.id ? (
<DashboardFilter
key={filter.id}
sdk={extensionContext?.coreSDK}
filter={filter}
onChange={getChangeHandler(filter.name)}
expression={filter?.name ? filterValues[filter?.name] : ''}
/>
) : null
)}

 


1 reply

in the manifest.lkml file what the core_api_methods for  faceted filters 

Reply