Hello! I’m looking for a bit of advice. Using the ...
# gooddata-ui
t
Hello! I’m looking for a bit of advice. Using the eventHandlers on Dashboard component from the SDK, I’m able to intercept the
"GDC.DASH/EVT.DRILL.DRILL_TO_INSIGHT.REQUESTED"
event. At this point, I’d need to cancel the drilldown. Is it possible to do in any way? Thank you.
m
Hi Tomáš, could you please provide a bit of background on this request? Why is it necessary to cancel the drilldown? Also, could you please share the content of your package.json file?
t
It’s simple, in some cases, we want to redirect users somewhere else in our app (we build a view for visualizations using the InsightView component from the SDK) instead of opening the visualization popup.
And we do not want the popup to be coming up as we try to keep the Dashboard components mounted and hide them only visually when a user navigates away, so when the user navigates back, the dashboard is already loaded.
we’re on 10.8.0, but can upgrade if needed
m
Thanks for the info. Please let us check this internally and we'll get back to you with an update asap.
t
Hi @Moises Morales, any update please? 🙂
b
Hi @Tomáš Gajdoš , Looking into the documentation, I found the following pages that might come handy: https://help.gooddata.com/doc/enterprise/en/expand-your-gooddata-platform/gooddata-in[…]for-drilling-in-embedded-analytical-designer-and-dashboards/ https://help.gooddata.com/doc/enterprise/en/expand-your-gooddata-platform/gooddata-in[…]ments-into-your-applications/sample-html-for-drill-eventing/ https://www.gooddata.com/docs/gooddata-ui/latest/learn/add_interactivity/on_drill/ However, there are only examples in terms of GD objects or related URIs. As a result, I reached out to our frontend developers with your questions in order to get more details. I will let you know as soon as I hear back from them.
In the meantime, could you please share some minimal reproducer code / sample for further review?
t
Hi @Branislav Slávik, thanks, maybe I’m missing something written on those pages, but I don’t see how they’d help.
I know how to listen to the event. My question is about the possibility of cancelling the drilldown after I intercept the
GDC.DASH/EVT.DRILL.DRILL_TO_INSIGHT.REQUESTED
event.
by cancelling I mean stopping the dashboard from opening the overlay popup with the visualization.
b
Hello Tomáš, apologies for the delayed answer. This seems like a good use case for Drill Into URL feature: https://www.gooddata.com/docs/cloud/create-dashboards/drilling-in-dashboards/set-drill-into-hyperlink/ Perhaps, instead of trying to "go against" the drill feature, working with it instead would be a way to go? 🤔🤞