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 !
J’ai trouvé la solution :
dashboard = JMP App();
dashboard << Run;
DASHBOARD = current report();
DASHBOARD << Save interactive HTML("file...");
DASHBOARD << close window;
J’ai trouvé la solution :
dashboard = JMP App();
dashboard << Run;
DASHBOARD = current report();
DASHBOARD << Save interactive HTML("file...");
DASHBOARD << close window;
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");