GMR Insight
GMR Insight

System

GMR Insight
January 25, 2018

Saving and exporting

January 25, 2018/ Tony Alvarez

Below are a collection of saving and exporting code examples.

  1. Export to Spotfire Binary Data Format (SDBF)
    1. https://community.tibco.com/wiki/how-export-data-tibco-spotfire-using-ironpython-script-and-c
  2. Export to PDF
    1. https://community.tibco.com/wiki/how-export-analysis-pdf-using-ironpython-tibco-spotfire
  3. Export to CSV
    1. http://spotfired.blogspot.com/2014/05/extract-csv-data-from-visualization.html
  4. Export to Excel
    1. See post by aroy: https://community.tibco.com/questions/need-python-script-exporting-data-excel
    2. See post by Shandilya Peddi: https://community.tibco.com/questions/ironpython-export-multiple-csv-files-1-data-table
    3. http://spotfired.blogspot.com/2014/02/exporting-to-excel-web-player.html
  5. Export to an Image
    1. https://community.tibco.com/wiki/how-export-visualization-image-tibco-spotfirer-using-ironpython-scripting
  6. Export to HTML
    1. http://spotfired.blogspot.com/2014/03/export-to-excel-pdf-clipboard-etc.html
  7. Export to PowerPoint
    1. See Manish Patel's corrected post: https://community.tibco.com/questions/code-export-powerpoint-question
  8. Save the document to a file
    1. Pre version 7.5: https://community.tibco.com/wiki/how-save-document-file-using-ironpython-tibco-spotfire
  9. Save the document locally or to the library
    1. https://community.tibco.com/wiki/ironpython-script-save-file-locally-or-library-tibco-spotfire
January 25, 2018/ Tony Alvarez/ Comment
Spotfire, IronPython, System
Saving and Exporting

Tony Alvarez

January 06, 2018

Get user name

January 06, 2018/ Tony Alvarez

Description: Get user name.

from System import Environment, Threading 
print "User Name: " + Threading.Thread.CurrentPrincipal.Identity.Name 

Links
    API:
    Reference: https://community.tibco.com/wiki/how-fetch-logged-username-tibco-spotfire-using-ironpython-script
    Reference: http://spotfired.blogspot.com/2014/05/get-user-information-login-name-machine.html
    Reference: http://spotfired.blogspot.com/2017/02/current-user-in-webplayer.html

January 06, 2018/ Tony Alvarez/ Comment
Spotfire, IronPython, System
Environment Variables

Tony Alvarez

GMR Insight