- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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?" );
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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?" );