When a value is selected in a graph that is displaying individual data points, JMP's default action is to set the row(s) in the data table that for that data point to have a Row State value of Selected. If a Row Stat Handler has been applied to the data table, using a Make Row State Handler() function, then the above change in the Row State for a column will trigger the function referenced in the Make Row State Handler.
Here is an obsurd example to illustrate how it works. It opens up the Big Class data table, and displayes a Bivariate Plot. If you select a data point in the displayed graph, a new data table will be created. The new data table will contain the data from the row the selected data point is from.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
f = Function( {a},
If( N Rows( dt << get selected rows ) > 0,
dt << subset( selected rows( 1 ), selected columns( 0 ) );
Current Data Table( dt );
dt << bring to front;
)
);
rs = dt << make row state handler( f );
biv = dt << Bivariate( Y( :height ), X( :weight ) );
;
Jim