cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

In JSL, is it possible to identify a selected (or clicked-on) box in a diagram?

Hi,

I click on a box in a hierarchical diagram.

How can I know (using JSL) which box has been selected?

Thanks.

Shaul. 

 

11 REPLIES 11
shaultz
Level II

Re: In JSL, is it possible to identify a selected (or clicked-on) box in a diagram?

Ok... It seems to be an elegant solution to the lack of an inherent open/close possibility. I got it and will try it and will inform asap.

As I mentioned before, the need is to manipulate the visibility of parts of a diagram.

Thanks again.

shaultz
Level II

Re: In JSL, is it possible to identify a selected (or clicked-on) box in a diagram?

OK! it works. Thanks a lot. Here's the JSL that swiches "h2" on and off.

namesdefaulttohere(1);
shw2=1;
w=newwindow("w",
	h1=hierbox("h1",
		b2=buttonbox("b2",
				shw2=1-shw2;
				h2<<visibility(
					if(shw2==0,
						"hidden",
						"visible"	
					)
				)
					
		),
		h2=hierbox("h2",
			h3=hierbox("h3")
		)
	)
);
h1<<ChangeType("hierarchy");

Recommended Articles