jbc
jbc
TFDThoughtSpot For Developers
Created by Steve Halvorson on 1/15/2025 in #dev-help
Steve Halvorson - Hello Team, I was directed he...
@Steve Halvorson I believe, the url you are trying to add is not whitelisted. You can add that in the Develop > Security Settings > "CSP connect-src domains". Can you add the url https://cdn.jsdelivr.net here to whitelist it?
20 replies
TFDThoughtSpot For Developers
Created by Steve Halvorson on 1/15/2025 in #dev-help
Steve Halvorson - Hello Team, I was directed he...
@Steve Halvorson The example SVG override in that page is for overriding a different icon, not the spotter icon. This iconSpriteUrl allows you to override any of the icon within Thoughtspot, by adding a new symbol with id matching the icon you want to replace. We will update our docs to include an example icon for spotter as well. cc @Shashi Subramanya Here is a sample icon, one of our teammates created which replaces the spotter icon: https://cdn.jsdelivr.net/gh/bryanthowell-ts/bryanthowell-ts.github.io/icon_6.svg
20 replies
TFDThoughtSpot For Developers
Created by alc-aaron on 1/16/2025 in #dev-help
alc-aaron - Good morning -- I was hoping someon...
@alc-aaron As long as you add the field {ts-query-params} in your url as part of the Search params or Hash params, that should be parsed automatically in the SDK, as the sdk reads the url and parses it. eg: https://www.mysite.com/liveboard/{object-id}?{ts-query-params} or https://www.mysite.com/#/liveboard/{object-id}/?{ts-query-params} We would replace these as eg: https://www.mysite.com/liveboard/523ab23-22b21a?ts-orgId=123
5 replies
TFDThoughtSpot For Developers
Created by Steve Halvorson on 1/15/2025 in #dev-help
Steve Halvorson - Hello Team, I was directed he...
It is supposed to be the GUID, can you share the error you are seeing>
20 replies
TFDThoughtSpot For Developers
Created by Steve Halvorson on 1/15/2025 in #dev-help
Steve Halvorson - Hello Team, I was directed he...
Got it, you can refer this url instead, and we'll cross-link this to the other section, so this is not confused https://visual-embed-sdk.vercel.app/docs/customize-icons#_testing_an_icon_override_file
20 replies
TFDThoughtSpot For Developers
Created by Andy on 1/15/2025 in #dev-help
Andy - Hi team. We have multi org set up on ou...
@rumana-hf Can you not limit your users to one org? Since you are using basic auth, they must have been manually created users right? You can also set the org for each of the users with our REST API https://developers.thoughtspot.com/docs/restV2-playground?apiResourceId=http%2Fapi-endpoints%2Forgs%2Fupdate-org
25 replies
TFDThoughtSpot For Developers
Created by Steve Halvorson on 1/15/2025 in #dev-help
Steve Halvorson - Hello Team, I was directed he...
@Steve Halvorson 1. The svg you added would need to include your svg content as a symbol and with an id as rd-icon-spotter which would then replace our internal svg with this. eg:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="width:0;height:0;visibility:hidden;">
<symbol id="rd-icon-spotter" viewBox="0 0 24 24" fill="red">
<path d="..."/>
</symbol>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="width:0;height:0;visibility:hidden;">
<symbol id="rd-icon-spotter" viewBox="0 0 24 24" fill="red">
<path d="..."/>
</symbol>
</svg>
Can you help me with the doc you were refering for this, I'll validate if that is updated correctly 2. We haven't come across any issue with WorksheetId not working, are you passing the correct worksheet? Can you share a screenshot with this issue, so i can take more look at this
20 replies
TFDThoughtSpot For Developers
Created by ferg.rose on 1/13/2025 in #dev-help
ferg.rose - Hi all - running into some render i...
@ferg.rose Yes this was fixed in later versions of 10.6.0.cl which is coming in Feb. If you need the fix on your current version or later version till then, can you please create a support ticket with the link to this discord thread? We can work on providing the patch, after necessary approvals.
6 replies
TFDThoughtSpot For Developers
Created by ferg.rose on 1/13/2025 in #dev-help
ferg.rose - Hi all - running into some render i...
We identified these issues and fixed them in the latest releases. What version of Thoughtspot are you on? @ferg.rose
6 replies
TFDThoughtSpot For Developers
Created by Shubham on 1/9/2025 in #dev-help
Hi team,
Yup seems like it's http instead of https.
3 replies
TFDThoughtSpot For Developers
Created by rumana-hf on 12/12/2024 in #dev-help
Hey there, I'm using the Visual Embed
@rumana-hf Yes, this event listener triggers on every error. Can I know what kind of failure of first render you are talking about? Most of the time within the product, if there are errors they block the whole page.
14 replies
TFDThoughtSpot For Developers
Created by ThatSpot on 1/6/2025 in #dev-help
Wanted to revive this modal discussion.
@ThatSpot We expose events for when we open the modal and close the modal. Since, modal adds a gray background that makes it look different from rest of your app, you can show your own gray bg when the model inside the iframe is opened. But, if you have any other suggestions, we can consider those too
6 replies
TFDThoughtSpot For Developers
Created by Stellnox on 1/6/2025 in #dev-help
Hey everyone, I have questions about
The workarounds that can be suggested might be too complicated to implement on your end. You would need a different scope for each usage, so you could save the SDK bundle as separate file within your codebase. eg: tsembed-1.js and tsembed-2.js Or add a NodeJs helper which loads the our SDK with a different name everytime you call it.
14 replies
TFDThoughtSpot For Developers
Created by Stellnox on 1/6/2025 in #dev-help
Hey everyone, I have questions about
Hey @Stellnox , at the moment we don't have a support for multiple hosts as that wasn't a known requirement so far. You can raise this as a feature request and we could solution this further. cc @Himanshu Arora @Nicolas
14 replies
TFDThoughtSpot For Developers
Created by alc-aaron on 1/2/2025 in #dev-help
Prerender components
@alc-aaron Is the pageId already set? You can also just trigger HostEvent.Reload if you just need to to reload the page
6 replies
TFDThoughtSpot For Developers
Created by ThatSpot on 12/20/2024 in #dev-help
TrustedAuthTokenCookieless and JIT
@ThatSpot No, init can only be done at the client side. The setup you can implement though: // Keep this in your backend server /getTokenForUser API call to /api/rest/2.0/auth/token/full with SECRET_KEY and the JIT parameters. This returns single login token. // Client init({ thoughtSpotHost: "https://<hostname>:<port>", authType: AuthType.TrustedAuthTokenCookieless, getAuthToken: () => { return fetch('/getTokenForUser'); // Call your server implementation } });
19 replies
TFDThoughtSpot For Developers
Created by ferg.rose on 12/18/2024 in #dev-help
Also, the following is our init
Also, if in case it isn't possible to have the React visual embed component to be delayed to render, you can have a workaround to init twice, once outside the component and once inside the useEffect. For outside the component, it can be initiated without the auth:
init({
thoughtSpotHost: process.env.NEXT_PUBLIC_THOUGHTSPOT_HOST_URL || '',
authType: AuthType.None,
})
init({
thoughtSpotHost: process.env.NEXT_PUBLIC_THOUGHTSPOT_HOST_URL || '',
authType: AuthType.None,
})
10 replies
TFDThoughtSpot For Developers
Created by rumana-hf on 12/12/2024 in #dev-help
Hey there, I'm using the Visual Embed
Or in the case of AppEmbed:
const embed = new AppEmbed(`#my-div`, {
pageId: Page.Liveboards,
path: 'insights/pinboard/795de2ca', //incorrect liveboardId
})
embed
.on(EmbedEvent.Error, e => console.log('Embed Error: ', e))
.render()
const embed = new AppEmbed(`#my-div`, {
pageId: Page.Liveboards,
path: 'insights/pinboard/795de2ca', //incorrect liveboardId
})
embed
.on(EmbedEvent.Error, e => console.log('Embed Error: ', e))
.render()
14 replies
TFDThoughtSpot For Developers
Created by rumana-hf on 12/12/2024 in #dev-help
Hey there, I'm using the Visual Embed
@rumana-hf @Suvash Yes, for a sample you can give a incorrect liveboardId to LiveboardEmbed and check for an error
14 replies
TFDThoughtSpot For Developers
Created by alc-aaron on 11/18/2024 in #dev-help
Hi. I am using the thoughtspot visual
@alc-aaron We definitely need the init to be invoked before the React Embed components are rendered. In case it's used inside the useEffect, it is needed to wait until the sdk is initialized until you start rendering the react components. In the code sandbox example, we are using the pre-render components which are hard to stop rendering since they are wrapped over the current component. As a workaround there, we can trigger init twice, once without authentication, and once with the auth details. https://codesandbox.io/p/sandbox/big-tse-react-demo-forked-pghftw?file=%2Fsrc%2FApp.tsx%3A15%2C2
15 replies