cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • 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!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • 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
waltp
Level I

Dynamically adding a Table Box to an Outline Box

Hi,

 

I would like to add Table Boxes to an Outline box, but do this dynamically as the number and content of the Table Box contents change.  I tried the following script as a example but Table Boxes don't even appear plus there is an error message about the hb reference in the For loop that I don't understand.  Any sugestions?

 

Thanks,

 

Walt Paczkowski

================================================================

 

Names Default To Here( 1 );
tbLst = { Index( 1, 5 ), Index( 6, 10) };
//
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dtM = dt << Subset( Output Table( "x" ), Columns( :sex, :height ) );
//
for( i = 1, i <= 2, i++,
	dtM << Clear Select;
	dtM << Select Rows( Eval( tbLst[ i ] ) );
	//
	hb << Append( ( dtM << Get As Report ) );
);
//
New Window( "test", Outline Box( "X", hb = H List Box( ) ) );

 

1 ACCEPTED SOLUTION

Accepted Solutions
ian_jmp
Level X

Re: Dynamically adding a Table Box to an Outline Box

I think you are close. Is that what you want?

Names Default To Here( 1 );
tbLst = { Index( 1, 5 ), Index( 6, 10) };
//
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dtM = dt << Subset( Output Table( "x" ), Columns( :sex, :height ) );
//
hb = H List Box( );
for( i = 1, i <= 2, i++,
	dtM << Clear Select;
	dtM << Select Rows( Eval( tbLst[ i ] ) );
	//
	hb << Append( ( dtM << Get As Report ) );
);
//
New Window( "test", Outline Box( "X", hb ) );

View solution in original post

2 REPLIES 2
ian_jmp
Level X

Re: Dynamically adding a Table Box to an Outline Box

I think you are close. Is that what you want?

Names Default To Here( 1 );
tbLst = { Index( 1, 5 ), Index( 6, 10) };
//
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dtM = dt << Subset( Output Table( "x" ), Columns( :sex, :height ) );
//
hb = H List Box( );
for( i = 1, i <= 2, i++,
	dtM << Clear Select;
	dtM << Select Rows( Eval( tbLst[ i ] ) );
	//
	hb << Append( ( dtM << Get As Report ) );
);
//
New Window( "test", Outline Box( "X", hb ) );
waltp
Level I

Re: Dynamically adding a Table Box to an Outline Box

That's exactly it!! Thanks for the help.

Walt

Recommended Articles