cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

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

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;

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