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
bill_da_golfer
bill_da_golfer9mo ago
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.
bill_da_golfer
bill_da_golfer9mo ago
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.
gushallaq
gushallaqOP9mo ago
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.
bill_da_golfer
bill_da_golfer9mo ago
Yeah - use the vis headers and it should give you that metadata as well.
gushallaq
gushallaqOP9mo ago
Sorry what you mean by VIS headers?
vmcafee
vmcafee9mo ago
@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?
bill_da_golfer
bill_da_golfer9mo ago
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.
vmcafee
vmcafee9mo ago
@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.
bill_da_golfer
bill_da_golfer9mo ago
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.
gushallaq
gushallaqOP9mo ago
Thanks @bill_da_golfer , @vmcafee .

Did you find this page helpful?