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
mystylelife19
Level III

HOW TO PICK CERTAIN JMP SCRIPT?

Hi, right now i have 6 scripting JMP that i use randomly depend on situation failure of my product. So i have created an example button box that i want to pick certain scripting JMP without opening at file. 

 

My question is, can someone help me to open the script and the same time run the script using my button box?

mystylelife19_1-1661663751802.png

mystylelife19_2-1661664131650.png

User_Input = New Window( "JMP AUTOMATION", << modal(),
	hlistbox(
	),
	
	Button Box( "BiModal (IL_ALL)",
	),
	Button Box( "SBL Disposition",
	),
	Button Box( "Median Disposition",
	),
	Button Box( "Fit Y By X",
	),
	Button Box( "Time Plot",
	),
	Button Box( "DELETE UNROW COLUMNS",
	),
);
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: HOW TO PICK CERTAIN JMP SCRIPT?

First, you need to remove the Modal specification.  With the Modal specification, you will not be able to transfer control to your selected script, without closing your JMP AUTOMATION window.

Names Default To Here( 1 );
User_Input = New Window( "JMP AUTOMATION", //<< modal(),
	H List Box(),
	Button Box( "Confidence Intervals", 
		Include( "$SAMPLE_SCRIPTS/confidence.jsl" ) ),
	Button Box( "Collinearity", 
		Include( "$SAMPLE_SCRIPTS/democollinearity.jsl" ) )
);

The actual specification for the Button Box() is

y = Button Box( title, script )

See the Scripting Index for details and example.

Therefore, all you need to do is to add the script to Include the script you want to run.

 

 

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: HOW TO PICK CERTAIN JMP SCRIPT?

First, you need to remove the Modal specification.  With the Modal specification, you will not be able to transfer control to your selected script, without closing your JMP AUTOMATION window.

Names Default To Here( 1 );
User_Input = New Window( "JMP AUTOMATION", //<< modal(),
	H List Box(),
	Button Box( "Confidence Intervals", 
		Include( "$SAMPLE_SCRIPTS/confidence.jsl" ) ),
	Button Box( "Collinearity", 
		Include( "$SAMPLE_SCRIPTS/democollinearity.jsl" ) )
);

The actual specification for the Button Box() is

y = Button Box( title, script )

See the Scripting Index for details and example.

Therefore, all you need to do is to add the script to Include the script you want to run.

 

 

Jim
mystylelife19
Level III

Re: HOW TO PICK CERTAIN JMP SCRIPT?

great!, it works for me. Thankyou so much!!!