Spotfire Export Automatically

user4588747

I'm not at all sure that what I need is possible with the tools that I have, but I thought I'd ask.

I have the following Python script (technically IronPython, but I don't fully understand the difference), that I pulled from a blog and modified for my purposes:

import datetime
from System.IO import StreamWriter
from Spotfire.Dxp.Application.Visuals import TablePlot

tempFolder = "C:\\Spotfire Exports\\"
tempFilename = "Data.txt"

writer = StreamWriter(tempFolder + tempFilename)
vTable.As[TablePlot]().ExportText(writer)

print tempFolder + tempFilename

The script itself works perfectly fine, but the problem is that I need to be able to make this run automatically at a certain time of day, i.e., I need the *.txt file to be updated in the morning before I get to my desk. (The project pulls from a database that isn't accessible through MS Access.)

Although the script runs fine, I have to manually push the button to activate it. I can't seem to find any way to have the script run on file open (so that I can use Windows Task Scheduler) to make it run when the file is opened.

Does anybody know if there's a way to do this?

Bear in mind, I do not have Visual Studio available to me. I already tried Visual Studio Express, and it doesn't seem to be able to access the Spotfire SDK macros.

clesiemo3

You can utilize JavaScript to click a button on load and have that button be your python script. Like so:

window.onload = function callButtonClickEvent(){
          document.getElementById('YOUR_SPOTFIRE_CONTROL_ID').click();
}

By clicking "edit HTML" in the text box you're using you can see the ID spotfire has assigned your button. The above code will click that button once upon loading.

If you do not want your button to be shown to end users (if applicable) then you can put it inside a hidden div or span:

<span style='display:none'><SpotfireControl id="YOUR_SPOTFIRE_CONTROL_ID" /></span>

Then once this is setup it should run your script when opened as per your windows task scheduler as you desired.

Let me know if you have any questions regarding implementation.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

TIBCO Spotfire logs export

From Dev

Script to Export Spotfire Graphic to PowerPoint

From Dev

Export Datatables from Spotfire to CSV using IronPython Script

From Dev

Export Excel(XLS) to CSV automatically

From Dev

Automatically export result sets into csv

From Dev

Automatically export shell/bash functions

From Dev

Automatically export Google Spreadsheet to Excel

From Dev

How to export pdf form fields to xml automatically

From Dev

Julia automatically generate functions and export them

From Dev

Automatically export subscribers using Mailchimp in Laravel

From Dev

Automatically export history at end of powershell session

From Dev

How to automatically export contacts from Thunderbird

From Dev

Automatically export subscribers using Mailchimp in Laravel

From Dev

Automatically export file from a given software

From Dev

How can I automatically use values from a higher-lever(master) visualization when creating a lower-level visualization (details) in Spotfire?

From Dev

Emacs orgmode agenda: bashscript automatically export year to ical

From Dev

how to export expression to image file such that size is adjusted to expression size automatically?

From Dev

How to use C# export QTP result to PDF automatically

From Dev

how to export issues retrived from a search filter as xml automatically in JIRA

From Dev

SSRS export to PDF automatically from standard, built-in interface

From Dev

Emacs orgmode agenda: bashscript automatically export year to ical

From Dev

How to read specific dots on an image, then export values to html automatically?

From Dev

How can I automatically export csv and send it to a database or textfile

From Dev

How to automatically process sqlite export to get JSON that reflect relations DB?

From Dev

How to automatically export a chart from Excel (or Calc) to PNG

From Dev

Can I automatically export data from a Cognos report into a database?

From Dev

trigger click automatically using jquery to export all graphs as image

From Dev

How can i export my event logs to a folder (csv or txt) on every start up automatically?

From Dev

Excel - Automatically change input cell value and export output cells to new workbook

Related Related

  1. 1

    TIBCO Spotfire logs export

  2. 2

    Script to Export Spotfire Graphic to PowerPoint

  3. 3

    Export Datatables from Spotfire to CSV using IronPython Script

  4. 4

    Export Excel(XLS) to CSV automatically

  5. 5

    Automatically export result sets into csv

  6. 6

    Automatically export shell/bash functions

  7. 7

    Automatically export Google Spreadsheet to Excel

  8. 8

    How to export pdf form fields to xml automatically

  9. 9

    Julia automatically generate functions and export them

  10. 10

    Automatically export subscribers using Mailchimp in Laravel

  11. 11

    Automatically export history at end of powershell session

  12. 12

    How to automatically export contacts from Thunderbird

  13. 13

    Automatically export subscribers using Mailchimp in Laravel

  14. 14

    Automatically export file from a given software

  15. 15

    How can I automatically use values from a higher-lever(master) visualization when creating a lower-level visualization (details) in Spotfire?

  16. 16

    Emacs orgmode agenda: bashscript automatically export year to ical

  17. 17

    how to export expression to image file such that size is adjusted to expression size automatically?

  18. 18

    How to use C# export QTP result to PDF automatically

  19. 19

    how to export issues retrived from a search filter as xml automatically in JIRA

  20. 20

    SSRS export to PDF automatically from standard, built-in interface

  21. 21

    Emacs orgmode agenda: bashscript automatically export year to ical

  22. 22

    How to read specific dots on an image, then export values to html automatically?

  23. 23

    How can I automatically export csv and send it to a database or textfile

  24. 24

    How to automatically process sqlite export to get JSON that reflect relations DB?

  25. 25

    How to automatically export a chart from Excel (or Calc) to PNG

  26. 26

    Can I automatically export data from a Cognos report into a database?

  27. 27

    trigger click automatically using jquery to export all graphs as image

  28. 28

    How can i export my event logs to a folder (csv or txt) on every start up automatically?

  29. 29

    Excel - Automatically change input cell value and export output cells to new workbook

HotTag

Archive