JMP App

Item Messages

Combine Windows

Syntax: obj << Combine Windows( {list of reports or data tables}, {...} )

Description: Combine the given list of platform reports or data tables into a new module. The application must not be currently running or in an edit state.


dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dist = Distribution(
    Continuous Distribution( Column( :weight ) ),
    Nominal Distribution( Column( :age ) )
);
biv = Bivariate( Y( :weight ), X( :height ) );
app = JMP App();
app << Set Name( "Instant App" );
app << Combine Windows( {dist << Report, biv << Report} );
(app << Get Modules)[1] << Set Window Title( "My Report" );
app << Run;

Debug

Syntax: obj << Debug

Description: Run the application in the debugger.


app = JMP App();
app << Open File( "$SAMPLE_APPS/Launcher with Report.jmpappsource" );
app << Debug;

Edit

Syntax: obj << Edit

Description: Edit the application or dashboard in the builder.


app = JMP App();
app << Open File( "$SAMPLE_APPS/Instant App.jmpappsource" );
app << Edit;

Get Modules

Syntax: list = obj << Get Modules

Description: Get a list of the modules defined in the application.


app = JMP App();
app << Open File( "$SAMPLE_APPS/Instant App.jmpappsource" );
app << Edit Application;
app << Get Modules();

Get Namespace

Syntax: obj << Get Namespace

Description: Get the namespace for the module instance.


app = JMP App();
(app << Get Namespace) << Show Contents;

Get Windows

Syntax: obj << Get Windows

Description: Returns a list of open windows created as instances of application modules. Note that other windows created by application scripts, using New Window() or other functions, will not be included.

JMP Version Added: 14

Example 1


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

Example 2


app = JMP App();
app << Open File( "$SAMPLE_APPS/Graph Launcher.jmpappsource" );
app << Run;
launcher = (app << Get Windows())[1];
launcher[Button Box( 1 )] << Click;
launcher[Button Box( 1 )] << Click;
app << Get Windows();

Open File

Syntax: obj << Open File( <path> )

Description: Load the application from the given file.


app = JMP App();
app << Open File( "$SAMPLE_APPS/Instant App.jmpappsource" );
box = app << Edit Application;

Relaunch Analysis

Syntax: obj << Relaunch Analysis

Description: Relaunches the Dashboard or Application, creating a new running copy of the Application.


app = JMP App();
app << Open File( "$SAMPLE_APPS/Instant App.jmpappsource" );
app << Edit;
app << Relaunch Analysis;

Run

Syntax: obj << Run

Description: Run the application or dashboard.


app = JMP App();
app << Open File( "$SAMPLE_APPS/Instant App.jmpappsource" );
app << Run;

Save Script for All Objects

Syntax: obj << Save Script for All Objects

Description: Save a New Window() script


app = Include( "$SAMPLE_DASHBOARDS/Six Quality Graphs Dashboard.jmpappsource" );
app << Run;
app << Save Script for All Objects;

Save Script to Add-In

Syntax: obj << Save Script to Add-In

Description: Create a script (JSL) to produce this analysis, and load it into the Add-in Builder


app = JMP App();
app << Open File( "$SAMPLE_APPS/Instant App.jmpappsource" );
app << Edit;
app << "Save Script to Add-In";

Save Script to Data Table

Syntax: app << Save Script to Data Table( <name>, < <<Prompt(0|1)>, < <<Replace(0|1)> );

Description: Create a JSL script to produce this analysis, and save it as a table property in the data table.


app = JMP App();
app << Open File( "$SAMPLE_APPS/Instant App.jmpappsource" );
app << Edit;
app << Save Script to Data Table;

Save Script to Journal

Syntax: obj << Save Script to Journal

Description: Create a JSL script to produce this analysis, and add a Button to the journal containing this script.


app = JMP App();
app << Open File( "$SAMPLE_APPS/Instant App.jmpappsource" );
app << Edit;
app << Save Script to Journal;

Save Script to Script Window

Syntax: obj << Save Script to Script Window

Description: Create a JSL script to produce this analysis, and append it to the current Script text window.


app = JMP App();
app << Open File( "$SAMPLE_APPS/Instant App.jmpappsource" );
app << Edit;
app << Save Script to Script Window;