cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
miguello
Level VI

Example of a script to make dialogue window to cast columns in different roles

I need to script something like a Join or Update dialog window, with all the Clear, Recall, Remove buttons etc. Basically, I will be choosing what columns to work with (like casting columns in different roles) and, for instance, matching two columns for further use etc. I hope there is an example script for that somewhere. Does anybody know?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
miguello
Level VI

Re: Example of a script to make dialogue window to cast columns in different roles

2 REPLIES 2
miguello
Level VI

Re: Example of a script to make dialogue window to cast columns in different roles

Byron_JMP
Staff

Re: Example of a script to make dialogue window to cast columns in different roles

@miguello That's a pretty good example (kudo).

 

I like this one from the scripting index. Help>Scripting Index, search for "column dialog"

 

Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Consumer Preferences.jmp" );
Column Dialog(
	ex y = ColList( "Y", Min Col( 1 ), Max Col( 2 ), Data Type( "Numeric" ) ),
	ex x = ColList( "X",
		Max Col( 1 ),
		Modeling Type( {"Continuous", "Multiple Response"} )
	),
	Line Up( 2,
		Text Box( "Alpha" ), ex = EditNumber( .05 ),
		Text Box( "Beta" ), ey = EditText( "xyz" )
	),
	HList( cb = Check Box( "check", 1 ) ),
	HList( combo = Combo Box( "option1", "option2" ) ),
	HList( rb = RadioButtons( "a", "b" ) )
);
JMP Systems Engineer, Health and Life Sciences (Pharma)