cpiro - Hi everyone! I'm trying to implement it...

Hi everyone! I'm trying to implement it as a "Code-based custom action" by following https://developers.thoughtspot.com/docs/code-based-custom-action, in particular by providing customActions to init. But if I specify position: CustomActionsPosition.CONTEXTMENU, it seems no matter what else I specify for target or the other parameters, I never see a context menu item for that action. Are there any tricks to getting this to work? I've already tried adding the following to both the init constructor and as a prop to <LiveboardEmbed /> ... it passes validation, but no context menu item appears anywhere, no matter which permutation of the commented out fields I supply:
customActions: [
{
name: "test",
id: "cpiro-test",
position: CustomActionsPosition.CONTEXTMENU,
target: CustomActionTarget.VIZ,
// metadataIds: {
// answerIds: [answerId],
// },
// dataModelIds: {
// modelIds: [modelId],
// modelColumnNames: [`${modelId}::User Full Name`, "User Full Name"],
// },
},
],
customActions: [
{
name: "test",
id: "cpiro-test",
position: CustomActionsPosition.CONTEXTMENU,
target: CustomActionTarget.VIZ,
// metadataIds: {
// answerIds: [answerId],
// },
// dataModelIds: {
// modelIds: [modelId],
// modelColumnNames: [`${modelId}::User Full Name`, "User Full Name"],
// },
},
],
15 Replies
Aditya
Aditya4w ago
Hey, @cpiro Can you please tell me your cluster version and SDK version? And are you passing any restriction of metadataIds or dataModelIds when it is not working for you?
cpiro
cpiroOP4w ago
Hi @Aditya! I've tried both SDK version 1.40.1 and 1.43.0 with no success. What exactly do you mean by "cluster version"? The RDS instance we've given ThoughtSpot Cloud access to is at engine version 16.8. I've tried configuring the custom action as shown (with metadataIds and dataModelIds commented out) and also with just metadataIds, just modelIds, just modelColumnNames: ["User Full Name"], just modelColumnNames: ["${modelId}::User Full Name"], and each of the 16 total permutations of including and not including all of the above
Aditya
Aditya4w ago
Your ThoughtSpot cluster cloud version. If it is 10.14 and above and if you are still facing the same issue. We can jump on a quick call because this is not reproducible on my end
cpiro
cpiroOP4w ago
I'm sorry @Aditya how do I check our "ThoughtSpot cluster cloud version"? I'm not sure what that is, and the both the regular documentation search and AI-generated answer from https://laurel.thoughtspot.cloud/#/develop/documentation/en/?pageid=ask-docs are unhelpful (the payload data here does not have a field version)
No description
Aditya
Aditya4w ago
Can you please share your TS URL? I will check
Aditya
Aditya4w ago
Ok so the version is 10.14 only. Let's have a quick call. Can you please suggest a time at which you will be available?
cpiro
cpiroOP4w ago
I'm free for the next two hours, and tomorrow I'm free from 10 am – 12 noon and 1–6 pm EDT (UTC-5)
Aditya
Aditya3w ago
Ok. Let me know if you are available to connect now
cpiro
cpiroOP3w ago
@Aditya I'm in a different timezone. I can meet now for the next 8 hours
Aditya
Aditya3w ago
Ok are you available now? Looks like you are not available right now. This is my email - aditya.mittal@thoughtspot.com. Can you please send a calendar invite for tommorow for the same time (around 9 - 11 PM ) IST
cpiro
cpiroOP3w ago
Hi @Aditya
Aditya
Aditya3w ago
Hey Chris, looks like you have not added meeting link. Available to connect now?
cpiro
cpiroOP3w ago
Yes, however you would prefer
Aditya
Aditya3w ago
let's connect on discord. Sent you request.

Did you find this page helpful?