Jump to content
  • How to fetch the Bookmark uri in Spotfire® using IronPython Scripting


    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]
     

    boomarkscript.png.bf23536536108d9599569e1b2da73ed7.png

    References

    License:  TIBCO BSD-Style License

     

     


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...