<?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: How to Minimize data tables or put Data tables into a Tab Box, with the data tables created in a for loop in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-Minimize-data-tables-or-put-Data-tables-into-a-Tab-Box/m-p/420823#M66959</link>
    <description>&lt;P&gt;If you just make your subsetted data tables invisible, you can many times clean up your output.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;listDT = dt &amp;lt;&amp;lt; Subset( invisible,
		output table name( "Subset where category is " || vali ),
		Selected rows only ( 1 ),
		Selected columns only( 1 )
	);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 23 Sep 2021 22:30:31 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-09-23T22:30:31Z</dc:date>
    <item>
      <title>How to Minimize data tables or put Data tables into a Tab Box, with the data tables created in a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Minimize-data-tables-or-put-Data-tables-into-a-Tab-Box/m-p/420810#M66958</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having some trouble with the following. I have a group of custom output, grouped by a variable, that I need to be in a single report. I get the output that I need. However, I get so many subset data tables as a result of the for loop. I was reading about tab windows, but there is not much written online about putting multiple data tables into tabs. Is there such an option?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, then perhaps I can add an option to my JMP script that automatically minimizes the data tables being generated with the report.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is no such option mentioned above, would there be a way to use only the select where statement to select the rows of the data and then use those rows to generate custom and automatic output into a single report? I tried to use &lt;A href="https://community.jmp.com/t5/Discussions/lt-lt-Get-Values-from-a-Column-without-subsetting-each-set-of/td-p/9523" target="_self"&gt;this forum's methodology&lt;/A&gt;, but I wasn't getting any results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my current JMP script, along with the jmp file attached.&amp;nbsp;&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 );
dt = Current Data Table();

col9 = Column(dt, "category");
unique_category = Associative Array(col9) &amp;lt;&amp;lt; get keys;

nw= New Window("results",
    container = V List Box()
);

for (i = 1, i &amp;lt;= N Items(unique_category), i++,
	content = V List Box(
	vali = unique_category[i];
	dt &amp;lt;&amp;lt; Select Where(:category == vali);
	
	//subset the selected data
	listDT = dt &amp;lt;&amp;lt; Subset(
		output table name( "Subset where category is " || vali ),
		Selected rows only ( 1 ),
		Selected columns only( 1 )
	);
	
	//Get the measurment units formatted, if applicable
	col4 = Column( listDT, "Measurement Units");
	units = col4[1];
	units_formatted = If(Is Missing(units), "", Is String(units), " (" || units || ") ");
	
	//chart
	Oneway(SendToByGroup( {:category == vali}, 
	Y( :results ) ),
	SendToByGroup(
			{:category == vali},
			X( :name),
			Connect Means( 1 ),
			Grand Mean( 0 )
		), 
			SendToByGroup(
			{:category == vali},
			SendToReport(
				Dispatch(
					{},
					"2",
					ScaleBox,
					{Label Row( Set Font Size( 5 ) )}
				),
				Dispatch(
					{},
					"results",
					TextEditBox,
					{Set Text( vali || units_formatted )}
				),
				Dispatch(
					{},
					"Oneway Plot",
					FrameBox,
					{Frame Size( 1500, 300 ), DispatchSeg(
						CustomStreamSeg( 6 ),
						{Line Color( "Gray" )}
					), Row Legend(
						subcategory,
						Color( 1 ),
						Color Theme( "" ),
						Marker( 0 ),
						Marker Theme( "" ),
						Continuous Scale( 0 ),
						Reverse Scale( 0 ),
						Excluded Rows( 0 )
					)}
				)
			)
		)
	);
	);
	container &amp;lt;&amp;lt; Append(content)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:37:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Minimize-data-tables-or-put-Data-tables-into-a-Tab-Box/m-p/420810#M66958</guid>
      <dc:creator>kachveder</dc:creator>
      <dc:date>2023-06-10T23:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Minimize data tables or put Data tables into a Tab Box, with the data tables created in a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Minimize-data-tables-or-put-Data-tables-into-a-Tab-Box/m-p/420823#M66959</link>
      <description>&lt;P&gt;If you just make your subsetted data tables invisible, you can many times clean up your output.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;listDT = dt &amp;lt;&amp;lt; Subset( invisible,
		output table name( "Subset where category is " || vali ),
		Selected rows only ( 1 ),
		Selected columns only( 1 )
	);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Sep 2021 22:30:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Minimize-data-tables-or-put-Data-tables-into-a-Tab-Box/m-p/420823#M66959</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-09-23T22:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Minimize data tables or put Data tables into a Tab Box, with the data tables created in a for loop</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Minimize-data-tables-or-put-Data-tables-into-a-Tab-Box/m-p/420905#M66963</link>
      <description>&lt;P&gt;Thank you so much, Jim. That's exactly what I needed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 12:07:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Minimize-data-tables-or-put-Data-tables-into-a-Tab-Box/m-p/420905#M66963</guid>
      <dc:creator>kachveder</dc:creator>
      <dc:date>2021-09-24T12:07:03Z</dc:date>
    </item>
  </channel>
</rss>

