<?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 How to collapse a outline box in a tab page in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-collapse-a-outline-box-in-a-tab-page/m-p/81061#M36932</link>
    <description>&lt;P&gt;Hi all , i am very new to jsl programming , want to ask&amp;nbsp; ,how can i collapse a outline box in a tab page&amp;nbsp; ?&lt;/P&gt;&lt;PRE&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );


win = New Window( "Tab Box",
	tb = Tab Box(
		Tab Page Box( // tab contents
			Title( "First Step" ),
			 OutlineBox( "Summary", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex ))),
			 OutlineBox( "Pareto plot", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			  OutlineBox( "Control chart", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			
		),
		Tab Page Box( // tab contents
			Title( "Second Step" ),
			 OutlineBox( "Summary", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			 OutlineBox( "Pareto plot", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			  OutlineBox( "Control chart", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			
			
		)
	)
);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2018 16:05:15 GMT</pubDate>
    <dc:creator>kuannygoh</dc:creator>
    <dc:date>2018-10-25T16:05:15Z</dc:date>
    <item>
      <title>How to collapse a outline box in a tab page</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-collapse-a-outline-box-in-a-tab-page/m-p/81061#M36932</link>
      <description>&lt;P&gt;Hi all , i am very new to jsl programming , want to ask&amp;nbsp; ,how can i collapse a outline box in a tab page&amp;nbsp; ?&lt;/P&gt;&lt;PRE&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );


win = New Window( "Tab Box",
	tb = Tab Box(
		Tab Page Box( // tab contents
			Title( "First Step" ),
			 OutlineBox( "Summary", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex ))),
			 OutlineBox( "Pareto plot", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			  OutlineBox( "Control chart", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			
		),
		Tab Page Box( // tab contents
			Title( "Second Step" ),
			 OutlineBox( "Summary", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			 OutlineBox( "Pareto plot", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			  OutlineBox( "Control chart", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			
			
		)
	)
);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 16:05:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-collapse-a-outline-box-in-a-tab-page/m-p/81061#M36932</guid>
      <dc:creator>kuannygoh</dc:creator>
      <dc:date>2018-10-25T16:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to collapse a outline box in a tab page</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-collapse-a-outline-box-in-a-tab-page/m-p/81449#M36948</link>
      <description>&lt;P&gt;You can either set pointers to the Outline Box()s and close them individually, or use XPath() and find all of them and operate on all Outline Box()s together....see below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );


win = New Window( "Tab Box",
	tb = Tab Box(
		Tab Page Box( // tab contents
			Title( "First Step" ),
			 ob1=OutlineBox( "Summary", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex ))),
			 ob2=OutlineBox( "Pareto plot", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			  ob3=OutlineBox( "Control chart", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			
		),
		Tab Page Box( // tab contents
			Title( "Second Step" ),
			 ob4=OutlineBox( "Summary", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			 ob5=OutlineBox( "Pareto plot", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			  ob6=OutlineBox( "Control chart", dt &amp;lt;&amp;lt;Distribution( Column( :Height, :Weight ), By( :sex )) ),
			
			
		)
	)
);
ob1&amp;lt;&amp;lt;close;
ob2&amp;lt;&amp;lt;close;
ob3&amp;lt;&amp;lt;close;
ob4&amp;lt;&amp;lt;close;
ob5&amp;lt;&amp;lt;close;
ob6&amp;lt;&amp;lt;close;

// or
//(win &amp;lt;&amp;lt; xpath( "//OutlineBox" )) &amp;lt;&amp;lt; close;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Oct 2018 00:14:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-collapse-a-outline-box-in-a-tab-page/m-p/81449#M36948</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-10-26T00:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to collapse a outline box in a tab page</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-collapse-a-outline-box-in-a-tab-page/m-p/81708#M36980</link>
      <description>&lt;P&gt;You can also use the in-line message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Outline Box( "Summary",
	dt &amp;lt;&amp;lt; Distribution( Column( :Height, :Weight ), By( :sex ) ),
	&amp;lt;&amp;lt;Close( 1 )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Oct 2018 13:39:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-collapse-a-outline-box-in-a-tab-page/m-p/81708#M36980</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-10-27T13:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to collapse a outline box in a tab page</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-collapse-a-outline-box-in-a-tab-page/m-p/698094#M88361</link>
      <description>&lt;P&gt;Just found and used this solution this morning with a journal created in a script - still works great!&lt;/P&gt;&lt;P&gt;Wanted to add that (at least in the journal context) using the XPath approach above also closes all children outline boxes - i.e., it acts like "Close All Below" instead of just "Close".&lt;/P&gt;&lt;P&gt;I had to add the line below to subsequently "silently" open associated children outline boxes, so that the parent outline boxes are all initially collapsed, but the children outline boxes are immediately visible when you toggle individual parent outline boxes.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(win &amp;lt;&amp;lt; XPath( "//OutlineBox//OutlineBox" )) &amp;lt;&amp;lt; Open All Below;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Nov 2023 21:24:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-collapse-a-outline-box-in-a-tab-page/m-p/698094#M88361</guid>
      <dc:creator>jc510_2</dc:creator>
      <dc:date>2023-11-14T21:24:05Z</dc:date>
    </item>
  </channel>
</rss>

