This article explains how to fetch the Bookmark uri in Spotfire® using IronPython Scripting
Introduction
It is possible to fetch the Bookmark uri using the BookmarkManager and BookmarkLinks Classes.
Code Sample
# Copyright © 2017. TIBCO Software Inc. Licensed under TIBCO BSD-style license. from Spotfire.Dxp.Application.AnalyticItems import BookmarkManager from Spotfire.Dxp.Application import BookmarkComponentFlags from Spotfire.Dxp.Framework.Library import * # Get the Bookmark Manager as a service bookmarkManager = Document.Context.GetService(BookmarkManager) links = bookmarkManager.Links; myBookMark = bookmarkManager.GetBookmarks()[0] uri = links.TryGetUri(myBookMark,LibraryLinksOption.Path) print uri[1] weburi = links.TryGetWebPlayerUri(myBookMark,LibraryLinksOption.Path) print weburi[1]
- API Reference: Spotfire Analyst
- API Reference: BookmarkManager Class
- API Reference: BookmarkLinks Class
License: TIBCO BSD-Style License
Recommended Comments
There are no comments to display.