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
pallav
pallav2w ago
srirrr@344
srirrr@344OP2w ago
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
shikharTS
shikharTS2w ago
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
srirrr@344
srirrr@344OP2w ago
yes the embedding is done in the same way

Did you find this page helpful?