Csaba - Hey Team,Just wondering if you could ...
# dev-help
c
Hey Team, Just wondering if you could help me with applying filters from a react app. I'm using UpdateFilters event and in most of the reports it is applied properly. But there are some reports where the filters linked to different models where it doesn't. Is there a way to handle this? Also tried to see if there is any indication on the filters list I'm receiving from the GetFilters event, but it seems the same. Also have another question. What is the correct way to get all possible filter values when the filter is clicked? Internally a "GetPinboardFilterValues" (Pinboard__getFilterValues) graphql mutation is called but its not available on a public schema. Would be interested to know if its available on the rest api. Thanks
a
message has been deleted
y
Hey @Csaba for triggering for specific worksheet try this out :
Copy code
embed.trigger(
                HostEvent.UpdateFilters, {
  filters: [{
    columnName: "Worksheet A::ColumnName",
    operator: "IN",
    values: ["red", "blue"]
  }]
}
Also to get the filters for current liveboard just trigger : HostEvent.GetFilters - await if promise.
c
thanks this works. 👍
y
Hey @Csaba, can you tell me the usecase - you are making out of this. Would help me out for documenting. Thanks.
c
Sure I'll gather the details of how that liveboard has been built if needed. My usecase is to replace the filters with custom components. This approach you suggested works everywhere regardless how things configured.