alc-aaron - Good morning -- I was hoping someon...
Good morning -- I was hoping someone could help/provide an example of how to use the {ts-query-params} (What to expect from these) with the react components for TSE?
https://developers.thoughtspot.com/docs/customize-links#_link_format_for_an_embedded_instance
My assumption is some of the links will come with query params and I want to be able to handle those properly. Thanks!
Customize links
Customize link format
Solution:Jump to solution
@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}
...4 Replies
The TS-query params part is a placeholder, for the params ThoughtSpot will be filling. You need to create the URL with this placeholder, such that when we navigate to their URLs with our params, they parse these params and send it to our sdk.
For eg. monitor alert links and perOrgUrl feature make use of this placeholder to replace query params during custom link generation
What is the correct way to get the links with those params so I can make sure they are passed down to the React Components from the SDK? I believe that is what I am having trouble tracking down.
@jbc
Solution
@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