Scripting Guide > Scripting Platforms > Enable User Input in JMP Platforms
发布日期: 09/18/2023

Enable User Input in JMP Platforms

When you use the Action() function in a JMP platform, it evaluates an expression. For example, use Action messages when you want the launch window to appear. A user chooses columns in the launch window and the script continues running after the user runs the analysis.

The following example launches four platforms: Distribution, Bivariate, Oneway, and Contingency. The launch window for each platform appears, and the user chooses the analysis columns and clicks OK. The report window for each analysis appears, and then the next platform launch window comes up, until all platforms have been launched.

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Distribution( Action( doit ) );
doit = Expr(
	New Window( "Bivariate", Bivariate( Action( doit2 ) ) )
);
doit2 = Expr(
	New Window( "Oneway", Oneway( Action( doit3 ) ) )
);
doit3 = Expr(
	New Window( "Contingency", Contingency( Action( doit4 ) ) )
);
doit4 = Expr();
需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).