1 of 1 people found this helpful
It's been a while so I don't remember the exact behavior on this. I recall that Event Listeners don't always fire when used in conjunction with Actions, however.For example, filter_change doesn't fire if a filter on a sheet is updated because of an action filter activated elsewhere or in the same sheet.
Based on what you've written I think you've tested tab_switch and are saying that "it works" if the user manually switches tabs (or you switch tabs with the API)...but not if the switch happens as the result of an action. This wouldn't surprise me and it behaves the same way as filters...which I'm sure about.
Please confirm same. If this is the case, your best bet would be to create an "Idea" in the Ideas forum asking for this.
I can confirm that tab_switch works when moving between tabs, but not as the result of an action.
I'm now wondering if there's almost a way to replicate dashboard actions using the API? I'll let you know if I have any success!
Sure – Just watch for mark selection event and key on that as your “button click”
Is there a way to distinguish between the marks clicked?
For example if one mark on a sheet on a dashboard is clicked, can the event listener know differentiate between a different mark on a different sheet?
The Error in console after switching back to Dashboard containing JS Viz is :
Any work around or help will be highly appreciated.