Thangaraj
05/15/2026, 3:37 PMAnswer Overflow
05/15/2026, 3:37 PMspotter-code
05/15/2026, 3:37 PMtrigger(...)) to interact after load
For the exact host event to update query text in your SDK/version, check the HostEvent list for your version and use embed.trigger(...) (the docs explicitly support trigger-based app interaction).
javascript
import {
init,
AuthType,
SearchEmbed,
EmbedEvent,
// HostEvent, // use the exact HostEvent from your SDK docs for updating search/query text
} from '@thoughtspot/visual-embed-sdk';
init({
thoughtSpotHost: 'https://your-ts-host',
authType: AuthType.None,
});
const searchEmbed = new SearchEmbed('#tsEmbed', {
dataSource: 'YOUR_WORKSHEET_ID',
});
searchEmbed
.on(EmbedEvent.Load, async () => {
// Example pattern:
// await searchEmbed.trigger(HostEvent.<QUERY_UPDATE_EVENT>, { ...payload });
})
.render();
If you share your SDK version, I can give you the exact HostEvent name + payload for updating the query string in SearchEmbed.Thangaraj
05/15/2026, 3:42 PMThangaraj
05/17/2026, 10:53 AMhostEvent.search is not working specifically when the Saved Answer’s default visualization is set to a Pivot Table. The same flow works correctly when the visualization is changed to a regular table.Ruchi Anand
05/20/2026, 6:42 AM