<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dynamically adding a Table Box to an Outline Box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Dynamically-adding-a-Table-Box-to-an-Outline-Box/m-p/41720#M24324</link>
    <description>&lt;P&gt;I think you are close. Is that what you want?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
tbLst = { Index( 1, 5 ), Index( 6, 10) };
//
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dtM = dt &amp;lt;&amp;lt; Subset( Output Table( "x" ), Columns( :sex, :height ) );
//
hb = H List Box( );
for( i = 1, i &amp;lt;= 2, i++,
	dtM &amp;lt;&amp;lt; Clear Select;
	dtM &amp;lt;&amp;lt; Select Rows( Eval( tbLst[ i ] ) );
	//
	hb &amp;lt;&amp;lt; Append( ( dtM &amp;lt;&amp;lt; Get As Report ) );
);
//
New Window( "test", Outline Box( "X", hb ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 10 Jul 2017 16:09:40 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2017-07-10T16:09:40Z</dc:date>
    <item>
      <title>Dynamically adding a Table Box to an Outline Box</title>
      <link>https://community.jmp.com/t5/Discussions/Dynamically-adding-a-Table-Box-to-an-Outline-Box/m-p/41719#M24323</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; 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.&amp;nbsp; Any sugestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Walt Paczkowski&lt;/P&gt;&lt;P&gt;================================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
tbLst = { Index( 1, 5 ), Index( 6, 10) };
//
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dtM = dt &amp;lt;&amp;lt; Subset( Output Table( "x" ), Columns( :sex, :height ) );
//
for( i = 1, i &amp;lt;= 2, i++,
	dtM &amp;lt;&amp;lt; Clear Select;
	dtM &amp;lt;&amp;lt; Select Rows( Eval( tbLst[ i ] ) );
	//
	hb &amp;lt;&amp;lt; Append( ( dtM &amp;lt;&amp;lt; Get As Report ) );
);
//
New Window( "test", Outline Box( "X", hb = H List Box( ) ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 15:08:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Dynamically-adding-a-Table-Box-to-an-Outline-Box/m-p/41719#M24323</guid>
      <dc:creator>waltp</dc:creator>
      <dc:date>2017-07-10T15:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically adding a Table Box to an Outline Box</title>
      <link>https://community.jmp.com/t5/Discussions/Dynamically-adding-a-Table-Box-to-an-Outline-Box/m-p/41720#M24324</link>
      <description>&lt;P&gt;I think you are close. Is that what you want?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
tbLst = { Index( 1, 5 ), Index( 6, 10) };
//
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dtM = dt &amp;lt;&amp;lt; Subset( Output Table( "x" ), Columns( :sex, :height ) );
//
hb = H List Box( );
for( i = 1, i &amp;lt;= 2, i++,
	dtM &amp;lt;&amp;lt; Clear Select;
	dtM &amp;lt;&amp;lt; Select Rows( Eval( tbLst[ i ] ) );
	//
	hb &amp;lt;&amp;lt; Append( ( dtM &amp;lt;&amp;lt; Get As Report ) );
);
//
New Window( "test", Outline Box( "X", hb ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Jul 2017 16:09:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Dynamically-adding-a-Table-Box-to-an-Outline-Box/m-p/41720#M24324</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-07-10T16:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically adding a Table Box to an Outline Box</title>
      <link>https://community.jmp.com/t5/Discussions/Dynamically-adding-a-Table-Box-to-an-Outline-Box/m-p/41721#M24325</link>
      <description>That's exactly it!! Thanks for the help.&lt;BR /&gt;&lt;BR /&gt;Walt</description>
      <pubDate>Mon, 10 Jul 2017 16:18:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Dynamically-adding-a-Table-Box-to-an-Outline-Box/m-p/41721#M24325</guid>
      <dc:creator>waltp</dc:creator>
      <dc:date>2017-07-10T16:18:05Z</dc:date>
    </item>
  </channel>
</rss>

