Subscribe Bookmark RSS Feed

OnRecalc()

tom_abramov

Community Trekker

Joined:

Oct 13, 2015

Hello,

Is there some way to run "OnRecalc()" method as OnClose() of the window platform.

For example, I run bivariate with AutoRecalc=on and I would like every time the user excludes some observation to run some code.

Thank you.

 

Code example - I would like to open/close correlation outline depends on the r value:

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
win = New Window("",
obj = Bivariate( Y( :Weight ), X( :Height ),
Density Ellipse( 0.95, {Line Color( {213, 72, 87} )} ),
Automatic Recalc(1) ));
rep = obj << report;
r_value = rep[NumberColBox("Correlation")][1];
if(r_value>0.75,rep[OutlineBox(2)]<<Close(0),rep[OutlineBox(2)]<<Close(1));

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson

Super User

Joined:

Jun 22, 2012

Solution

You can use "Make Row State Handler" to add code either to the data table or to the Frame Box(), which will execute whenever there is a change to row selection, exclusion, etc.

Jim
1 REPLY
txnelson

Super User

Joined:

Jun 22, 2012

Solution

You can use "Make Row State Handler" to add code either to the data table or to the Frame Box(), which will execute whenever there is a change to row selection, exclusion, etc.

Jim