Hey everyone, I faced some issue with
Hey everyone, I faced some issue with embedded SDK, maybe somebody has similar issue:
let searchpage = new SearchEmbed(wrapper, config);
searchpage.trigger(HostEvent.UpdateRuntimeFilters, [{"columnName":"state", "operator": RuntimeFilterOp.IN, values:["California"]}]);
But unfortunately search page and result on it doesn't reflect any changes in runtime filters. Is it a expected behavior from search page, or I'm doing something wrong?
4 Replies
@Stellnox I just did a test as well and it appears that the SearchEmbed is not responding to the trigger. I tried with both a new search and a saved search (answer). The documentation does say it should work, so I would consider this a product gap.
Setting the filters and rending does appear to work, so a work around is to update your embed object and re-render().
Setting the filters and rending does appear to work, so a work around is to update your embed object and re-render().
Yeah, indeed. Adding runtime filters to config works. Thanks for idea with re-rendering. Maybe you have some insight about whether this bug is going to be fixed?
I submitted an internal ticket. So they'll have to take a look, confirm, and then slot in a fix.
I also raised it in our internal Slack. Thanks for pointing this out.
Yeah, no problem. Thanks for such amazing product! 🙂