cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • 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!
  • 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
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