Florian Nègre - Hello,Is it possible, when we...

Hello, Is it possible, when we embed all the application, to get the liveboard name and id selected by an event :
const appEmbedded = new AppEmbed(domSelector, { pageId: Page.Liveboards });

appEmbedded.render();

appEmbedded.on(EmbedEvent.???, (event) => {
console.log(event.data.name)
});
const appEmbedded = new AppEmbed(domSelector, { pageId: Page.Liveboards });

appEmbedded.render();

appEmbedded.on(EmbedEvent.???, (event) => {
console.log(event.data.name)
});
The events EmbedEvent.LiveboardInfo and EmbedEvent.LiveboardRendered MessagePayload data are empty. We don't use Rest API, we only use the Visual Embed SDK. Thank you
4 Replies
utsav.kapoor
utsav.kapoor2w ago
You can get id by using Route Change event. Payload for that is currentPath and our URL scheme for liveboard is
/pinboard/<liveboard-guid>
/pinboard/<liveboard-guid>
utsav.kapoor
utsav.kapoor2w ago
You should also use
.on(EmbedEvent.ALL, (payload) => {console.log(payload)})
.on(EmbedEvent.ALL, (payload) => {console.log(payload)})
This will help you know which events are triggered in your workflows. https://developers.thoughtspot.com/docs/Enumeration_EmbedEvent#_all
EmbedEvent
Event types emitted by the embedded ThoughtSpot application.
Florian Nègre
Florian NègreOP7d ago
Thank you. Do you know if in your roadmap, there is a feature to add liveboard name in some javascript events (in the addition to the id) ? We would like to add the liveboard name in our breadcrumb
utsav.kapoor
utsav.kapoor6d ago
@Himanshu Arora - Can you look at the request and put it in our roadmap ? @Florian Nègre - Can you also put the idea in the community ?

Did you find this page helpful?