cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • We’re improving the Learn JMP page, and want your feedback! Take the survey
  • JMP monthly Newswire gives user tips and learning events. Subscribe
Choose Language Hide Translation Bar
lala
Level VIII

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

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 VIII

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

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

colScript = col << Get Script;

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