cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
lala
Level IX

How to use JSL to determine whether a column has event handlers?

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
:height << Add Column Properties(
	Set Property(
		"Event Handler",
		Event Handler( Click( JSL Quote(Function( {thisTable, thisColumn, iRow}, {},  ab=(dt<<get selected rows)[1]; );) ) )
	)
);

Thanks Experts!

1 ACCEPTED SOLUTION

Accepted Solutions
mmarchandFSLR
Level VI

Re: How to use JSL to determine whether a column has event handlers?

Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
has_handler =  !Is Empty( dt:height << Get Property( "Event Handler" ) );

View solution in original post

2 REPLIES 2
lala
Level IX

回复: How to use JSL to determine whether a column has event handlers?

dt = Current Data Table();
col = Column(dt, "height");

colScript = col << Get Script;

mmarchandFSLR
Level VI

Re: How to use JSL to determine whether a column has event handlers?

Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
has_handler =  !Is Empty( dt:height << Get Property( "Event Handler" ) );

Recommended Articles