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. ET 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
tom_abramov
Level V

Check Display box existence by JSL

Hi,

Is there some function to check whether exists certain display box by number/title?

For instance:

 

dist = Distribution(Continuous Distribution( Column( :weight ) ));
Exists((dist<<report)[OutlineBox(10)])// will return return false
Exists((dist<<report)[OutlineBox("ABC")])// will return return false

 

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Check Display box existence by JSL

See this example for a user function.

Names Default to Here( 1 );

exists = Function( { db expr },
	Try(
		db expr;
		1,
		0
	);
);

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

biv = dt << Bivariate( Y( :weight ), X( :height ), Fit Line );

bivr = biv << Report;

If( exists( Expr( bivr[OutlineBox(1)] ) ), "I'm here!", "Where did I go?" );
If( exists( Expr( bivr[OutlineBox(100)] ) ), "I'm here!", "Where did I go?" );

View solution in original post

1 REPLY 1

Re: Check Display box existence by JSL

See this example for a user function.

Names Default to Here( 1 );

exists = Function( { db expr },
	Try(
		db expr;
		1,
		0
	);
);

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

biv = dt << Bivariate( Y( :weight ), X( :height ), Fit Line );

bivr = biv << Report;

If( exists( Expr( bivr[OutlineBox(1)] ) ), "I'm here!", "Where did I go?" );
If( exists( Expr( bivr[OutlineBox(100)] ) ), "I'm here!", "Where did I go?" );

Recommended Articles