<?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 append the chart into tabs in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38436#M22496</link>
    <description>&lt;P&gt;Yes, each chart needs to be defined as required.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2017 02:32:21 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-04-24T02:32:21Z</dc:date>
    <item>
      <title>How to append charts into a report with tabs</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38420#M22486</link>
      <description>&lt;P&gt;Hi, everyone&lt;/P&gt;
&lt;P&gt;I have face one problem here, how can i divide the the chart into different tab?&lt;BR /&gt;Now i have 5 tabs with different product names,and each of the product has its own chart.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;VC &amp;lt;&amp;lt; Variability chart(
    Y(:Name( "I_P3G_G_PSVT_0.6/0.06" ) ,:Name( "I_P3HG_G_PHVT_0.6/0.06" ),:Name("NEW_I_P3G_G_PSVT_0.6/0.06") , :Name("NEW_I_P3HG_G_PHVT_0.6/0.06"), :Name("Gross Yield") ),
	X( :Name( "Lot" ), :Name( "F_V_L " ) ),
	Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
	
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;On the above code, it will generate out 3 types of products(meant here 3 different product name) with 5 variability charts(all the charts are different from each other-data extract from dataset), so how can i append these 3 different types of product into 3 different tabs?How to divide each of the chart and then append into tabs?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the tabs that are already created:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;VariabilityWindow = New Window("Variability Chart",tb = Tab Box() );

For(i = 1, i &amp;lt;=Nrows(dt2), i++,
	tb &amp;lt;&amp;lt; insert(
		dt2: F D[i] || Char(i),
		V list Box(
			Button Box("Variability Chart #" || Char(i) ),
)
)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 12:37:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38420#M22486</guid>
      <dc:creator>blue1994</dc:creator>
      <dc:date>2018-07-11T12:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to append the chart into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38421#M22487</link>
      <description>&lt;P&gt;JMP allows one to append, prepend, sibappend, etc. to any other object. &amp;nbsp;All that has to be done, is to identify the object to be moved, and the object to be moved to, and then determine what placement (append, prepend, etc.) that provides the desired placement. &amp;nbsp;Here is an example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );

// Create a display window
nw = New Window( "test", tb = Tab Box( "tab 1", vlb1 = V List Box() ) );

// create a display
biv1 = bivariate( x( :height ), y( :weight ), invisible );

// Move the chart to the tab box
vlb1 &amp;lt;&amp;lt; append( Report( biv1 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Apr 2017 14:52:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38421#M22487</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-04-23T14:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to append the chart into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38430#M22491</link>
      <description>&lt;P&gt;cool...hadn't thought about using invisible that way.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2017 16:58:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38430#M22491</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2017-04-23T16:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to append the chart into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38435#M22495</link>
      <description>Hi,&lt;BR /&gt;What i trouble now is when i run the script, it automatic generate out 3 of the charts of 3 different products due to they use the same parameters list from my data table.&lt;BR /&gt;So for my case, I need to separate it one by one? After that just append into each tab?</description>
      <pubDate>Mon, 24 Apr 2017 02:21:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38435#M22495</guid>
      <dc:creator>blue1994</dc:creator>
      <dc:date>2017-04-24T02:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to append the chart into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38436#M22496</link>
      <description>&lt;P&gt;Yes, each chart needs to be defined as required.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 02:32:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38436#M22496</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-04-24T02:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to append the chart into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38438#M22498</link>
      <description>is there any alternative ways to do it?&lt;BR /&gt;Can you give me some hints, what functions can be apply to separate the chart?&lt;BR /&gt;I have try using the locate items in a list, then try to append into the tabs, but it seems cannot function.&lt;BR /&gt;It still generate out all the 3 charts together when i run the script.&lt;BR /&gt;Can you share with me some hints?&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 24 Apr 2017 08:53:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38438#M22498</guid>
      <dc:creator>blue1994</dc:creator>
      <dc:date>2017-04-24T08:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to append the chart into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38439#M22499</link>
      <description>&lt;P&gt;Not sure if this gives further help or not. But building on Jim's example above:&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" );

xList = {:height, :weight};
yList = {:height, :weight};

// Create a display window
nw = New Window( "test", tb = Tab Box());

// Loop over the lists
for(x = 1, x &amp;lt;= NItems(xList), x++,
	for(y = 1, y &amp;lt;= NItems(yList), y++,
		// Make a tab box in thw window
		tb &amp;lt;&amp;lt; Append("Tab "||Char(x)||Char(y), vlb = VListBox());
		// Create an invisible display
		biv = bivariate( x( xList[x] ), y( yList[y] ), invisible );
		// Move the chart to the tab box
		vlb &amp;lt;&amp;lt; append( Report( biv ) );
		// Close the invisible display
		Report(biv) &amp;lt;&amp;lt; closeWindow;
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Apr 2017 09:17:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/38439#M22499</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-04-24T09:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to append the chart into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/54848#M31006</link>
      <description>&lt;P&gt;When I use this approach the plots are no longer interactive, e.g. I cannot select data points or filter the data with a local data filter. Is this related to report()? Is there another way to append the charts? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 19:05:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/54848#M31006</guid>
      <dc:creator>ausername</dc:creator>
      <dc:date>2018-04-11T19:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to append the chart into tabs</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/54885#M31031</link>
      <description>&lt;P&gt;Now I see why I hadn't used the "invisible" trick. It really does make a window, and the report attaches to the window. Try this instead:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\big class.jmp" );

xList = {:height, :weight};
yList = {:height, :weight};

// Create a display window
nw = New Window( "test", tb = Tab Box() );

// Loop over the lists
For( x = 1, x &amp;lt;= N Items( xList ), x++,
	For( y = 1, y &amp;lt;= N Items( yList ), y++, 
		// Make a tab box in the window
		tb &amp;lt;&amp;lt; Append(
			"Tab " || Char( x ) || Char( y ),
			V List Box( bivariate( x( xList[x] ), y( yList[y] ) ) )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When a report is created, it "looks around" to see what it should attach itself to. Usually it doesn't find anything and it makes a new report window and attaches itself to that. "invisible" only makes the window be hidden...it is still being created to anchor the report. Later, the append command looks at the display box (that is anchored in a hidden window) and makes a clone of it, since the same box can't be in two places. Clones are disconnected from the table (and that's how journals are made so they don't depend on a data table). But in this example, the bivariate report looks around and sees it is being created inside a VListBox and doesn't need to make a window. Append then looks at the VListBox and sees it is not attached to anything else and uses it without making a clone. So you wind up with 4 tabs of live reports.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Selection works on live report" style="width: 407px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10326i65017F11A6178AB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Selection works on live report" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Selection works on live report&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 10:52:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-append-charts-into-a-report-with-tabs/m-p/54885#M31031</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2018-04-12T10:52:47Z</dc:date>
    </item>
  </channel>
</rss>

