Include
Include using Save Window Report
Example 1
Summary: Loads and saves a Six Quality Graphs Dashboard in JMP, including embedding data and closing the window.
Code:
Open("data_table.jmp");
app = Include( "$SAMPLE_DASHBOARDS/Six Quality Graphs Dashboard.jmpappsource" ) << Run;
win = (app << Get Windows)[1];
win << Save Window Report( "$TEMP/dashboard.jrp", embed data( 0 ) );
win << Close Window;
Code Explanation:
- Open data table;
- Load Six Quality Graphs Dashboard.
- Run the dashboard application.
- Retrieve the first window.
- Save window report to dashboard.jrp.
- Embed data in the report.
- Close the window.
Example 2
Summary: Opens and saves a dashboard report, including running a Six Quality Graphs Dashboard application.
Code:
dt = Open("data_table.jmp");
app = Include( "$SAMPLE_DASHBOARDS/Six Quality Graphs Dashboard.jmpappsource" ) << Run;
win = (app << Get Windows)[1];
win << Save Window Report( "$TEMP/dashboard.jrp", embed data( 0 ) );
win << Close Window;
Open( "$TEMP/dashboard.jrp" );
Code Explanation:
- Open data table;
- Include Six Quality Graphs Dashboard.
- Run the dashboard application.
- Get the first window from the app.
- Save the window report as dashboard.jrp.
- Embed data set to 0.
- Close the window.
- Open the saved dashboard report.