cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

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