<?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: JSL: Save report by group into tabs in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/244343#M48144</link>
    <description>&lt;P&gt;After running the script, i can not find analysis output in Tab2. Can you let me know why? Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2020 04:08:02 GMT</pubDate>
    <dc:creator>ask</dc:creator>
    <dc:date>2020-01-31T04:08:02Z</dc:date>
    <item>
      <title>JSL: Save report by group into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/183955#M40318</link>
      <description>&lt;P&gt;I am trying write a script that saves a report by groups into tabs. As an example let's consider a bivariate analysis of height vs weight in the Big Class example data set. I would like to carry out that analysis by column sex and output the analysis for :sex == "F" in one tab and :sex == "M" in another. Now this should of course work with any number of value levels in the groupby column. The only thing I can think of doing is to subset the datatable but then I end up with a bunch of data tables that I cannot close without loosing my report. Any suggestions on how to do this without subsetting?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 15:36:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/183955#M40318</guid>
      <dc:creator>JPKO</dc:creator>
      <dc:date>2019-03-05T15:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Save report by group into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/183999#M40321</link>
      <description>&lt;P&gt;Here is one way of doing it&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tab.PNG" style="width: 440px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15935i08EC12311BEE071E/image-size/large?v=v2&amp;amp;px=999" role="button" title="tab.PNG" alt="tab.PNG" /&gt;&lt;/span&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);
dt=open("$SAMPLE_DATA/big class.jmp");

// Generate the output in an invisible space
biv = dt &amp;lt;&amp;lt; Bivariate( invisible, Y( :height ), X( :weight ), By( :sex ) );

// Create the window, with the first tab
nw=New Window("Tabs", text box("here are the tabs"), tb = Tab Box((report(biv[1])[outlinebox(1)])&amp;lt;&amp;lt;get title ,report(biv[1])));

// Generate the remaining tabs
For( i = 2, i &amp;lt;= N Items( biv ), i++,
	tb &amp;lt;&amp;lt; Insert( i, (report(biv[i])[outlinebox(1)])&amp;lt;&amp;lt;get title, Report( biv[i] ) )
);

// Close the invisible output
biv&amp;lt;&amp;lt;close window;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Mar 2019 16:34:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/183999#M40321</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-03-05T16:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Save report by group into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/184045#M40325</link>
      <description>&lt;P&gt;When you create a By() group, JMP is creating a set of subset tables for you automatically.&amp;nbsp; You can also do this on a level-by-level basis by using Where() clauses instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a script that creates tabs per level, and as a bonus they are moveable and dockable, so they behave like a JMP Dashboard and can be rearranged in a variety of ways.&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 = Open( "$SAMPLE_DATA/Big Class.jmp" );

//get the unique levels
Summarize( dt, unique_values = by( :sex ) );

// Create the window with an empty tab list
nw = New Window( "Tabs", tb = Tab Box( &amp;lt;&amp;lt;Dockable( 1 ) ) );

// Generate tabs, one per level
For( i = 1, i &amp;lt;= N Items( unique_values ), i++,
	tb &amp;lt;&amp;lt; Append(
		Tab Page Box(
			Title( ":sex = " || unique_values[i] ),
			dt &amp;lt;&amp;lt; Bivariate( invisible, Y( :height ), X( :weight ), Where( :sex == unique_values[i] ) ),
			&amp;lt;&amp;lt;Moveable( 1 ),
			&amp;lt;&amp;lt;Closeable( 1 )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Mar 2019 19:13:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/184045#M40325</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2019-03-05T19:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Save report by group into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/184106#M40329</link>
      <description>&lt;P&gt;Thanks, both of you! Both solutions worked like a charm.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 06:54:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/184106#M40329</guid>
      <dc:creator>JPKO</dc:creator>
      <dc:date>2019-03-06T06:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Save report by group into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/241888#M47786</link>
      <description>&lt;P&gt;I was successfully able to create a report with tabs with some of the code provided by TxNelson (Thank you Tx !)&lt;/P&gt;
&lt;P&gt;Unfortunately when I save the report as an HTML file the tabs are not saved (nor are spacer boxes)&lt;/P&gt;
&lt;P&gt;In the case below, I am not getting anything in the html file... Any suggestions are appreciated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "Example",
	tb = Tab Box(
		Tab Page Box( "First Tab", Tip( "First Tab Tooltip" ), Button Box( "Press One" ) ),
		Tab Page Box( "Second Tab", Closeable( 1 ), Button Box( "Press Two" ) ),
		Tab Page Box( "Third Tab", Icon( "Nominal" ), Button Box( "Press Three" ) )
	)
);
Wait( 1 );
tb &amp;lt;&amp;lt; Add( "Fourth Tab", Button Box( "Press Four" ) );
nw &amp;lt;&amp;lt; Journal;
Current Journal() &amp;lt;&amp;lt; Save HTML( "C:\_Jens\Test Report.html" );

Web( "C:\_Jens\Test Report.html" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 13:10:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/241888#M47786</guid>
      <dc:creator>JensRiege</dc:creator>
      <dc:date>2020-01-20T13:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Save report by group into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/241924#M47789</link>
      <description>&lt;P&gt;From my experience, you will only get the tabs if you save window as an Interactive HTML.&amp;nbsp; In turn that requires the display not be saved from a journal, since journals do not have the Save Interactive HTML capability&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 13:38:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/241924#M47789</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-01-20T13:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Save report by group into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/242740#M47914</link>
      <description>That did the trick. Did not see this explanation in the documentation.&lt;BR /&gt;Thank you for clarifying.</description>
      <pubDate>Thu, 23 Jan 2020 23:25:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/242740#M47914</guid>
      <dc:creator>JensRiege</dc:creator>
      <dc:date>2020-01-23T23:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Save report by group into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/244343#M48144</link>
      <description>&lt;P&gt;After running the script, i can not find analysis output in Tab2. Can you let me know why? Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 04:08:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/244343#M48144</guid>
      <dc:creator>ask</dc:creator>
      <dc:date>2020-01-31T04:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Save report by group into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/465998#M70980</link>
      <description>&lt;P&gt;Jim, Thank you for your script. I used your jsl as is, I am able to create the tabs , but my 2nd tab is blank. Do you have any idea why this might be happening? Any help will be appreciated&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sac_0-1646169741645.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40417iE876F57411B3690C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sac_0-1646169741645.png" alt="sac_0-1646169741645.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 21:22:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/465998#M70980</guid>
      <dc:creator>sac</dc:creator>
      <dc:date>2022-03-01T21:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Save report by group into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/465999#M70981</link>
      <description>&lt;P&gt;I suspect you are running JMP 13 or earlier.&amp;nbsp; The code only works for JMP 14 or above.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 22:00:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Save-report-by-group-into-tabs/m-p/465999#M70981</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-03-01T22:00:59Z</dc:date>
    </item>
  </channel>
</rss>

