- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
JSL: Save dashboard as interactive html
I built a dashboard from a script and want to save it as an interactive html and close it afterwards. The script runs fine, but the saving and closing doesn't.
I tried it with something similar than this, but it doesn't work.
Help is appreciated! Thanks in advance!
Markus
Names Default To Here( 1 );
Open("$SAMPLE_DATA/Quality Control/Steam Turbine Historical.jmp");
app = JMP App();
app << Open File( "$SAMPLE_DASHBOARDS/Instant Dashboard.jmpappsource" );
box = app << Run;
box << save html("C:\Users\Markus\Desktop\test.htm");
close(box);
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JSL: Save dashboard as interactive html
I think the run application command gave a different type than you expected,
try the attached script.
Names Default To Here( 1 );
tmp_path = Substitute( Right( Convert File Path( "$TEMP" ), Length( Convert File Path( "$TEMP" ) ) - 1 ), "/", "\" );
Open( "$SAMPLE_DATA/Quality Control/Steam Turbine Historical.jmp" );
app = JMP App();
app << Open File( "$SAMPLE_DASHBOARDS/Instant Dashboard.jmpappsource" );
box = app << Run;
Show Properties( box );
Show( box );
(box << get windows)[1] << save html( "$TEMP\test.htm" );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JSL: Save dashboard as interactive html
For Interactive HTML, you should use
Save Interactive HTML
instead of 'save HTML'
- John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JSL: Save dashboard as interactive html
I think the run application command gave a different type than you expected,
try the attached script.
Names Default To Here( 1 );
tmp_path = Substitute( Right( Convert File Path( "$TEMP" ), Length( Convert File Path( "$TEMP" ) ) - 1 ), "/", "\" );
Open( "$SAMPLE_DATA/Quality Control/Steam Turbine Historical.jmp" );
app = JMP App();
app << Open File( "$SAMPLE_DASHBOARDS/Instant Dashboard.jmpappsource" );
box = app << Run;
Show Properties( box );
Show( box );
(box << get windows)[1] << save html( "$TEMP\test.htm" );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JSL: Save dashboard as interactive html
Hi Georg,
thanks for the advice. You are write. It is working now.
Do you have also an idea to save it as an interactive (html5) file, too?
Regards
Markus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JSL: Save dashboard as interactive html
PS: The example I have taken from the community and added the saving part. In reality I build a skript which looks like this (abreviated (...) because it is very long).
HTL = JMP App( ... );
box = htl << run;
Show Properties( box );
Show( box );
(box << get windows)[1] << html save( "C:\...\name.htm" );
Close( box );
I have introduced your suggestions, but it is not running. Where is the mistake?
Thanks in advance
Markus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JSL: Save dashboard as interactive html
I found the mistake:
my command line said: << html save ()
correct it should be: << save html ()
With this it worked.
So there is still the question for the interactive html version.
Markus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JSL: Save dashboard as interactive html
For Interactive HTML, you should use
Save Interactive HTML
instead of 'save HTML'
- John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JSL: Save dashboard as interactive html
Thanks to both of you John and George!
Now the script works fine!
Best Regards
Markus