cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
hcarr01
Level VI

Save As HTML

Bonjour à tous,

 

j’ai une question sur JMP, je construis un dashboard à l’aide de différentes tables.
J’essaye d’automatiser l’enregistrement avec un html interactif.
Voici le code que j’utilise mais rien ne s’enregistre dans mon dossier.

 

dashboard = JMP App(); //dashboard

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

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

Je ne comprends pas pourquoi cela fonctionne pas !

 

Merci pour votre aide !

1 ACCEPTED SOLUTION

Accepted Solutions
hcarr01
Level VI

Re: Save As HTML

J’ai trouvé la solution :

 

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

DASHBOARD = current report();

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

DASHBOARD << close window;

View solution in original post

2 REPLIES 2
hcarr01
Level VI

Re: Save As HTML

J’ai trouvé la solution :

 

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

DASHBOARD = current report();

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

DASHBOARD << close window;

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");