What is the best way to search all the
What is the best way to search all the views for a specific Liveboard?
11 Replies
I'm not sure what you mean by "all views". If you are searching via API, then metadata/search API will allow you to specify liveboards along with additional parameters, such as name pattern and permissions. Keep in mind that the search only returns liveboards for the authenticated user making the call.
Docs for metadata/search API I mentioned: https://developers.thoughtspot.com/docs/rest-apiv2-reference#_metadata
REST API v2.0 Reference
REST API Reference
Oh, I think maybe you are asking about the visualizations on a particular liveboard. In that case, you can still use metadata/search; just be sure to include details and visualization headers in the parameters.
thanks @bill_da_golfer , as you said, I am using the metadata search endpoint, and I have the uuid of the liveboard, and I need to know what views are availables for that liveboard.
Yeah - use the vis headers and it should give you that metadata as well.
Sorry what you mean by VIS headers?
@bill_da_golfer We are looking at Personalized Views. How can we get the list of Personalized Views on a liveboard and is it possible to set that view ID when you load the liveboard using the SDK?
OK, thanks @vmcafee . That makes sense. Personalized views are a bit trickier. You can get them in the TML, so you'd use the metadata/tml/export endpoint. However, when you get the TML it only shows global personalized views and your own views. The results depend on the user making the call to get the TML. So if I make the call I see global and the views I created and if you make the call you see global and the views you created. I'm unaware of a way to get all of them short of calling as each user.
@bill_da_golfer ok didn't see them in TML I will look through the API endpoint. Is there something similar to activeTabId to be able to set the active view Id? They want to be able to provide a drop down list of personalized views in their nav bar. https://developers.thoughtspot.com/docs/Interface_LiveboardViewConfig#_activetabid
LiveboardViewConfig
The configuration for the embedded Liveboard or visualization page view.
Not that I'm aware of. Those are pretty new. I think it remembers the last one you saved with.
I did some more digging in the SDK. There are several EmbedEvents that get triggered. There's a host event to reset. But no way that I can find to set it to a particular view.
Thanks @bill_da_golfer , @vmcafee .