<?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 display the last tab in the window by using the Tab Box? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-display-the-last-tab-in-the-window-by-using-the-Tab-Box/m-p/336258#M58364</link>
    <description>&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;I have the following issue: I am creating a series of tabs within the &lt;STRONG&gt;&lt;EM&gt;Param_Overview&lt;/EM&gt;&lt;/STRONG&gt; window. Those tabs are generated in "for" loop. After the last tab, however, I would like to create one more tab created outside the for loop. The generation of tabs from the "for" loop works well but the addition of the last one does not. If I select by hand the code of the last tab and execute it, then the desired tab shows up in the windows as well. For creating the tabs in "for" loop the data table &lt;STRONG&gt;dt_run&lt;/STRONG&gt; is used. For creating the last tab another table is used: &lt;STRONG&gt;zuv_data&lt;/STRONG&gt;. How to activate the generation of the last tab? I would appreciate for hints and suggestions how to do that.&amp;nbsp;I removed the content how each graph is created in order to simplify the code structure.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Param_Overview", tb = Tab Box() );

For( iRun = 1, nitems(run_list), iRun++,
	tb &amp;lt;&amp;lt; Add(		
		//todo		
		Lineup Box( N Col( 1 ),
			Outline Box( "Graph1",
				H List Box(
					dt_run &amp;lt;&amp;lt; Graph Builder(
						// todo
						)
					),					
					dt_run &amp;lt;&amp;lt; Graph Builder(
						// todo
						)
					)
				)
			),
			Outline Box( "Graph2",
				hlistbox = H List Box(
					dt_run &amp;lt;&amp;lt; Graph Builder(
						// todo
						)
					),					
					dt_run &amp;lt;&amp;lt; Tabulate(
						// todo
					)
				)
			)
		)
	)	
);
	
// the last tab
tb &amp;lt;&amp;lt; Add("last tab",   //add one more tab
	Outline Box( "Last_Graph",
	H List Box(
	zuv_data &amp;lt;&amp;lt; Graph Builder(
		// todo
		)
	)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:08:21 GMT</pubDate>
    <dc:creator>lukasz</dc:creator>
    <dc:date>2023-06-11T11:08:21Z</dc:date>
    <item>
      <title>How to display the last tab in the window by using the Tab Box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-display-the-last-tab-in-the-window-by-using-the-Tab-Box/m-p/336258#M58364</link>
      <description>&lt;P&gt;Hello Everybody,&lt;/P&gt;&lt;P&gt;I have the following issue: I am creating a series of tabs within the &lt;STRONG&gt;&lt;EM&gt;Param_Overview&lt;/EM&gt;&lt;/STRONG&gt; window. Those tabs are generated in "for" loop. After the last tab, however, I would like to create one more tab created outside the for loop. The generation of tabs from the "for" loop works well but the addition of the last one does not. If I select by hand the code of the last tab and execute it, then the desired tab shows up in the windows as well. For creating the tabs in "for" loop the data table &lt;STRONG&gt;dt_run&lt;/STRONG&gt; is used. For creating the last tab another table is used: &lt;STRONG&gt;zuv_data&lt;/STRONG&gt;. How to activate the generation of the last tab? I would appreciate for hints and suggestions how to do that.&amp;nbsp;I removed the content how each graph is created in order to simplify the code structure.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Param_Overview", tb = Tab Box() );

For( iRun = 1, nitems(run_list), iRun++,
	tb &amp;lt;&amp;lt; Add(		
		//todo		
		Lineup Box( N Col( 1 ),
			Outline Box( "Graph1",
				H List Box(
					dt_run &amp;lt;&amp;lt; Graph Builder(
						// todo
						)
					),					
					dt_run &amp;lt;&amp;lt; Graph Builder(
						// todo
						)
					)
				)
			),
			Outline Box( "Graph2",
				hlistbox = H List Box(
					dt_run &amp;lt;&amp;lt; Graph Builder(
						// todo
						)
					),					
					dt_run &amp;lt;&amp;lt; Tabulate(
						// todo
					)
				)
			)
		)
	)	
);
	
// the last tab
tb &amp;lt;&amp;lt; Add("last tab",   //add one more tab
	Outline Box( "Last_Graph",
	H List Box(
	zuv_data &amp;lt;&amp;lt; Graph Builder(
		// todo
		)
	)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:08:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-display-the-last-tab-in-the-window-by-using-the-Tab-Box/m-p/336258#M58364</guid>
      <dc:creator>lukasz</dc:creator>
      <dc:date>2023-06-11T11:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the last tab in the window by using the Tab Box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-display-the-last-tab-in-the-window-by-using-the-Tab-Box/m-p/336300#M58368</link>
      <description>&lt;P&gt;I filled out your example script, and corrected a couple syntax issues, and the code runs without error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Errors&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Your For() loop is an infinite loop.&amp;nbsp; Your code's ending element is never reached.&amp;nbsp;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( iRun = 1, nitems(run_list), iRun++,&lt;/CODE&gt;&lt;/PRE&gt;
It needs to be
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( iRun = 1, iRun &amp;lt;= nitems(run_list), iRun++,&lt;/CODE&gt;&lt;/PRE&gt;
&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;There was an issue with having matching ")" in the For Loop&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Here is my rework of the code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt_run = open("$SAMPLE_DATA/big class.jmp");
zuv_data = open("$SAMPLE_DATAbig class families.jmp");

run_list = {a, b};

New Window( "Param_Overview", tb = Tab Box() );

For( iRun = 1, iRun &amp;lt;= N Items( run_list ), iRun++,
	tb &amp;lt;&amp;lt; Add(		
		//todo		
		Lineup Box( N Col( 1 ),
			Outline Box( "Graph1",
				H List Box(
					dt_run &amp;lt;&amp;lt; Graph Builder(
						Size( 528, 450 ),
						Show Control Panel( 0 ),
						Variables( X( :age ), Y( :height ) ),
						Elements( Points( X, Y, Legend( 3 ) ) )
					)
				),
				dt_run &amp;lt;&amp;lt; Graph Builder(
					Size( 528, 450 ),
					Show Control Panel( 0 ),
					Variables( X( :age ), Y( :height ) ),
					Elements( Points( X, Y, Legend( 3 ) ) )
				)
			)
		),
		Outline Box( "Graph2",
			hlistbox = H List Box(
				dt_run &amp;lt;&amp;lt; Graph Builder(
					Size( 528, 450 ),
					Show Control Panel( 0 ),
					Variables( X( :age ), Y( :height ) ),
					Elements( Points( X, Y, Legend( 3 ) ) )
				)
			),
			dt_run &amp;lt;&amp;lt; Tabulate(
				Show Control Panel( 0 ),
				Add Table(
					Column Table( Analysis Columns( :height, :weight ), Statistics( Mean ) ),
					Row Table( Grouping Columns( :age ) )
				)
			)
		)
	)
);
	
// the last tab
tb &amp;lt;&amp;lt; Add(
	"last tab",   //add one more tab
	Outline Box( "Last_Graph",
		H List Box(
			zuv_data &amp;lt;&amp;lt; Tabulate(
				Show Control Panel( 0 ),
				Add Table(
					Column Table( Analysis Columns( :height, :weight ), Statistics( Mean ) ),
					Row Table( Grouping Columns( :age ) )
				)
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 22 Nov 2020 22:14:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-display-the-last-tab-in-the-window-by-using-the-Tab-Box/m-p/336300#M58368</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-11-22T22:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to display the last tab in the window by using the Tab Box?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-display-the-last-tab-in-the-window-by-using-the-Tab-Box/m-p/336541#M58392</link>
      <description>&lt;P&gt;Thank you!, it is working. I completely did not notice the error in For() loop. That is why it was not able to display the last tab. Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 14:30:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-display-the-last-tab-in-the-window-by-using-the-Tab-Box/m-p/336541#M58392</guid>
      <dc:creator>lukasz</dc:creator>
      <dc:date>2020-11-23T14:30:10Z</dc:date>
    </item>
  </channel>
</rss>

