from Spotfire.Dxp.Application import BookmarkComponentFlags
from Spotfire.Dxp.Application.AnalyticItems import BookmarkManager
#define name of temp bookmark (make sure is unique)
bookmarkName = "$_tmp_bookmark_$"
#create the bookmark. Second argument specifies what to capture
myBookmark = Document.Bookmarks.AddNew(bookmarkName ,BookmarkComponentFlags.FilterSettings)
#extract data from myBookmark
print myBookmark.CreatedBy
#delete temp bookmark
Document.Bookmarks.Remove(myBookmark)
No comments:
Post a Comment