• ≡ Menu
  • Home
  • Category
    • Animation
    • Nature
    • People
    • Technology
    • Vogue
    • Other
  • Tools
    • CSS
    • jQuery
    • Cookies
    • Wicked
Spotfire IronPython Lab
  • Home
  • Spotfire Interview Questions
  • YoutTube
  • My Spotfire Blog
  • About Me
Menu
Uncategories Find Current Analysis Path

Find Current Analysis Path

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
Vivek Kumar
Newer Older Home

Weekly Posts

  • Extract unique values in Data Table Column
    Extract unique values in Data Table Column Extract unique values in Data Table Column Script ...
  • Hide Pages without using any Script/Code
    Hide Pages without using any Script/Code Hide Pages without using any Script/Code Steps ...
  • Spotfire Questions Set - I
    What is filtering schemes in Spotfire ? What is the difference between Filtering and Limiting Data ? What is on demand data load? What a...

Contact

Name

Email *

Message *

© maykadaa.blogspot.in . Powered by Blogger.

Blog Archive

  • ►  2020 (1)
    • ►  January (1)
  • ►  2019 (3)
    • ►  December (1)
    • ►  October (1)
    • ►  September (1)
  • ▼  2018 (10)
    • ▼  June (4)
      • Accessing Bookmarks in Current Analysis
      • Retrieve Data from a Web URL
      • Find Current Analysis Path
      • Udemy Course - A Happy Scripting Weekend
    • ►  May (1)
    • ►  April (5)
  • ►  2017 (18)
    • ►  February (18)
  • ►  2016 (5)
    • ►  December (3)
    • ►  November (2)

Search This Blog

Copyright © 2014 Spotfire IronPython Lab All Right Reserved . Blogger Templates Design by Arlina . Powered by Blogger