Some time we need to find current path of analysis from library for Sharing and many other purposes. When we try to do this, first thing comes in our hear is - Open Web-player and copy URL. But most of us already know, Web-Player gives report GUID rather than path in library.
Now what to do if we want our users to see absolute library path ? This scripts is an answer :
from Spotfire.Dxp.Application import DocumentMetadata
dmd = Application.DocumentMetadata
#Get MetaData
if dmd.LoadedFromLibraryPath==None:
print "File is Not from Library and Saved at : "
print dmd.FileNameUsedBySave
else :
print "Path in Library is : "
print dmd.LoadedFromLibraryPath