srirrr@344 - Hi team, is there a way to get the...
Hi team, is there a way to get the data from columns that are not visualized in a particular visualization through a custom action? The callback custom actions on a context menu item only return data from the columns that is being visualized. Alternatively, is there is a way to get the data from "Show underlying data" screen with an API? We use the visual embed SDK
4 Replies
you can use 'Data' APIs to get the underlying data:
https://developers.thoughtspot.com/docs/fetch-data-and-report-apis#_fetch_liveboard_data_api
Data and Report APIs
Data and Report APIs
The Data APIs didn't work - it only returns the visualized columns here. Using the AnswerService class gives me this error "Property 'answerService' does not exist on type 'MessagePayload'"
embed.on(EmbedEvent.CustomAction, payload => {
const data = payload.data;
if (payload.data.id === 'send-data') {
console.log(payload.answerService);
payload.answerService.getUnderlyingDataForPoint(payload.data.contextMenuPoints.selectedPoints);
} }) It works in our playground but doesn't work from our Embedded App. I'm trying this in the latest SDK version - 1.36.8
} }) It works in our playground but doesn't work from our Embedded App. I'm trying this in the latest SDK version - 1.36.8
If it works in the playground, but no from your embed app, there would be some configuration missing. Are you using the same code in playground and in the embed app to get data?
The SDK version looks to be correct
yes
the embedding is done in the same way