Suvash - Hi team, using the EmbedEvent.RouteCha...

Hi team, using the EmbedEvent.RouteChange, for the insights, we can capture the /insights/insight/3f2504e0-4f89-11d3-9a0c-0305e82c3301 that comes from the Page.SpotIQ lists. But how do we embed this particular insight when the user clicks on the items from the list? We would want to navigate away to a different page rather than within the embedded content? I couldn't find anything in the doc. Similarly, for visualisations with modals, what is the configs for displaying that separately? i.e. /insights/pinboard/d9b2d63d-a233-4123-847a-7d1b1f1a1b1e /tab/f47ac10b-58cc-4372-a567-0e02b2c3d479 /a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11
6 Replies
yuichirio_ha
yuichirio_ha2w ago
Hey @Suvash , Am I right to assume you are doing - appEmbed, In that when the user clicks on the specific list item, You are capturing the route-changed embedEvent, and then you don't actually want to navigate to that page instead just get that url and then you have some new page that you will handle specifically right? Is that right? or you can clear up the doubts. Thanks.
Suvash
SuvashOP2w ago
Yes @yuichirio_ha . Thats correct. In the new page we want to show the particular insight. Similar to how we can do the same for liveboards, visualisations saved answer, visualisation from liveboards. But I couldn't find anything that would allow us to embed an individual insight.
jbc
jbc2w ago
@Suvash SpotIQ insights are not exactly similar to visualizations. They are not supported being accessed individually.
Suvash
SuvashOP2w ago
so we would have to rely on the FullApp embed to display them? There are no other alternatives? /insights/pinboard/d9b2d63d-a233-4123-847a-7d1b1f1a1b1e /tab/f47ac10b-58cc-4372-a567-0e02b2c3d479 /a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 what about the modal that gets displayed when clicking above URL?
jbc
jbc2w ago
The default behaviour of the above url is to open the explore view of a viz within the liveboard. In case of embedding, you can instead form a url such as this /embed/viz/d9b2d63d-a233-4123-847a-7d1b1f1a1b1e/a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11 to open the visualization directly. There is no support of the explore modal to be displayed as a separate page currently. Our main app doesn't support opening the SpotIq insight individually or opening the explore modal separately. So, our embed sdk doesn't provide much options with that. Please create a support ticket, and it can be evaluated by our product team, if that is a support needed to be added.
Suvash
SuvashOP2w ago
cool. thank you @jbc

Did you find this page helpful?