Forum Discussion

byoungb's avatar
byoungb
New Member
2 years ago
Solved

Clear Visual Selection via javascript embedded client api.

Okay so I have tried `clearSelectedVisuals` and I have no idea what it is designed to do... like maybe it is for something to do with edit mode or something... But here is my issue... if someone selects a row in a table or a bar in a chart (with or without other interactions with other visuals) I want to be able to clear that selection/interaction when another search is performed (via report.setFilters). I have moved all the slicers out of the report and into my application. In the past this was still an issue with a regular report but at least with a reset bookmark the selection/interaction could be cleared. And for vartious reasons I really do not want to use a bookmark state to do the same thing from the JS.

Any ideas on how I could accomplish this? Crazy that the api/sdk has methods to move visuals and features like that... and yet nothing to clear a selection/interaction.

1 Reply