cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

Save As HTML

hcarr01
Level VI

Hello everyone,

 

I have a question about JMP, I am building a dashboard using different tables.
I'm trying to automate saving with interactive html.
Here is the code I am using but nothing is saving to my file.

 

dashboard = JMP App(); //dashboard

dashboard << Run;
DASHBOARD = dashboard << report;

DASHBOARD << Save interactive HTML("file...");

I don't understand why this doesn't work!

 

Thanks for your help !

This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .

1 ACCEPTED SOLUTION

Accepted Solutions
hcarr01
Level VI

Re: Save As HTML

I found the solution :

 

dashboard = JMP App();
dashboard << Run;

DASHBOARD = current report();

DASHBOARD << Save interactive HTML("file...");

DASHBOARD << close window;
2 REPLIES 2
hcarr01
Level VI

Re: Save As HTML

I found the solution :

 

dashboard = JMP App();
dashboard << Run;

DASHBOARD = current report();

DASHBOARD << Save interactive HTML("file...");

DASHBOARD << close window;

This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .


Re: Save As HTML

As you discovered, the <<Report message does not work on a Dashboard.  JMP Applications in general can have multiple windows, though a Dashboard will generally only have one.  The <<Get Windows message is similar to <<Report, but it will return a list.  This would be an alternative to using Current Report(), with the assumption that there is only one window:

Open("$SAMPLE_DATA/Quality Control/Steam Turbine Historical.jmp");
app = JMP App();
app << Open File( "$SAMPLE_APPS/Instant App.jmpappsource" );
box = app << Run;
(app << Get Windows()) << Save interactive HTML("$TEMP/app.html");
Open("$TEMP/app.html");