The first thing you'll want to do is find out what unique identifier (GUID) your analysis has in the Spotfire database.
The following steps will allow you to get the GUID:
- Open the TIBCO Spotfire installed client, and log in.
- Browse to the analysis of interest in your library.
- Right click, and choose: Copy Link to Analysis -> Either of the three options -> Library Identifier.
- If you choose "Links that Let the Recipients Choose Client" the link will look like this: http://serverAddress/spotfire/redirect?analysis=58470b87-d881-4658-b7c3-18d6a5efdb15 .
- The GUID is the last sequence of characters after "analysis=", in this case: 58470b87-d881-4658-b7c3-18d6a5efdb15 .
Now it is time to make use of the above GUID to extract the available bookmarks from the Spotfire database.
To query the Spotfire database for the bookmarks of an analysis, follow the below steps:
- Start any client that lets you log in towards the database, and create and execute queries towards it.
- Enter the below query, which allows you to find the bookmark parent item for your analysis, but make sure to enter your own GUID:
SELECT
li.item_id,
li.title
FROM
lib_items li
INNER JOIN
lib_item_types lit
ON li.item_type=lit.type_id
WHERE li.parent_id='58470b87-d881-4658-b7c3-18d6a5efdb15' -- Librar GUID for the analysis file you want to check for.
- This will result in a table looking like the following:
item_id |
title
|
4921e23a-30ab-49a2-a80e-9c0f3505e898 | AnalyticItems |
4c62a993-f118-4286-b3f6-1817be2f5584 | Bookmarks |
cac1705d-835a-4009-badf-1f562106220e | EmbeddedResources |
- You want to copy the GUID of the "Bookmarks" item, and use it in the query below:
SELECT *
FROM
lib_items li
INNER JOIN
lib_item_types lit
ON li.item_type=lit.type_id
WHERE li.parent_id='4c62a993-f118-4286-b3f6-1817be2f5584' -- Item_id taken from the query above
ORDER BY li.created
- You will now get a table back that contains the all the bookmarks that are in the library, that are tied to the analysis in question.