cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
Choose Language Hide Translation Bar
Fiona_Baines
Level II

JMP 15: get function doesn't work with modal windows

If you try this script (obtained from the scripting index in JMP 15)

 

Names Default To Here( 1 );
New Window( "Example",
	<<modal,
	numbox = Number Edit Box( 0 )
);
Print( numbox << Get );

and edit the number box you get this error:

deleted object reference: numbox << Get in access or evaluation of 'Glue' , Names Default To Here( 1 ); /*###*/New Window( "Example",
	<<modal,
	numbox = Number Edit Box( 0 )
); /*###*/Print( numbox << Get ) /*###*/;

This used to work in JMP 13, how do you now get values from editable boxes in JMP 15?

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

Re: JMP 15: get function doesn't work with modal windows

Here is how you need to code your script in JMP 15

Names Default To Here( 1 );
New Window( "Example",
	<<modal,
	numbox =
	Number Edit Box(
		0,
		10,
		<<SetFunction(
			Function( {this},
				numbox = this << get
			)
		)
	)
);
Print( numbox );
Jim

View solution in original post

David_Burnham
Super User (Alumni)

Re: JMP 15: get function doesn't work with modal windows

Alternatively, use <<onClose to grab all your results from the window.  You can also use <<onOpen to intialise values and  <<onValidate to validate inputs.

 

NewWIndow("Example", <<modal,
    <<onClose(
        value = numbox << get;
    ),
    numbox = NumberEditBox(0)
);

 

-Dave

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: JMP 15: get function doesn't work with modal windows

Here is how you need to code your script in JMP 15

Names Default To Here( 1 );
New Window( "Example",
	<<modal,
	numbox =
	Number Edit Box(
		0,
		10,
		<<SetFunction(
			Function( {this},
				numbox = this << get
			)
		)
	)
);
Print( numbox );
Jim
vince_faller
Super User (Alumni)

Re: JMP 15: get function doesn't work with modal windows

Could also use the return results.  

 

 

Names default to here(1);
nw = New Window( "Example",
	<<modal,
	<<Return Result, 
	numbox = Number Edit Box( 0 )
);
//changed the numbox to 1 show(nw); // {numbox = 1, Button(1)}

 

 

 

 

Vince Faller - Predictum
David_Burnham
Super User (Alumni)

Re: JMP 15: get function doesn't work with modal windows

Alternatively, use <<onClose to grab all your results from the window.  You can also use <<onOpen to intialise values and  <<onValidate to validate inputs.

 

NewWIndow("Example", <<modal,
    <<onClose(
        value = numbox << get;
    ),
    numbox = NumberEditBox(0)
);

 

-Dave