<?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: Question on windows and reports in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Question-on-windows-and-reports/m-p/38394#M22469</link>
    <description>&lt;P&gt;I will add - ...append do different things and it being live. Previously it was either live and I couldn't append it, or it was "reported", I caould append it, but it wasn't live.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2017 23:44:02 GMT</pubDate>
    <dc:creator>miguello</dc:creator>
    <dc:date>2017-04-21T23:44:02Z</dc:date>
    <item>
      <title>Question on windows and reports</title>
      <link>https://community.jmp.com/t5/Discussions/Question-on-windows-and-reports/m-p/38391#M22466</link>
      <description>&lt;P&gt;All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a problem that probably originates from lack of understanding how things work in JSL.&lt;/P&gt;
&lt;P&gt;So, here it is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an app that plots some graphs through Graph Builder and puts them in new window that has several tabs on them.&lt;/P&gt;
&lt;P&gt;No, I have to do the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Plot Graph Builder:&lt;BR /&gt;
&lt;PRE&gt;GrBld = Graph Builder(
blah-blah-blah
);&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Then I have to get a report reference:&lt;BR /&gt;
&lt;PRE&gt;reportGrBld = GrBld&amp;lt;&amp;lt;Report();&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Then only I can start assembling my tabbed window:&lt;BR /&gt;
&lt;PRE&gt;tabPlot1 = Tab Page Box("GraphBuilder plot", reportGrBld);
tabPlot2 = Tab Page Box("Something else", someOtherReport);
tabPlot3...
...
tabbedResults = Tab Box(tabPlot1, tabPlot2, tabPlot3, tabPlot4);
New Window("Results", tabbedResults);&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;It all works fine, with one exception - the plots become static. So, I cannot use all the perks of GraphBuilder or any other graphing platform - i.e. if I click an item in Legend, it won't highlight those points on the plot. If this report is Tabulate - table will be static, all filters that I have scripted won't show, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can click red triangle and select "re-run script" and all that stuff appears, but not in the assembled tabbed window.&lt;/P&gt;
&lt;P&gt;Now, if I just say:&lt;/P&gt;
&lt;PRE&gt;tabPlot1 = Tab Page Box("GraphBuilder plot", &lt;STRONG&gt;GrBld&lt;/STRONG&gt;);
tabPlot2 = Tab Page Box("Something else", someOtherReport);
tabPlot3...
...
tabbedResults = Tab Box(tabPlot1, tabPlot2, tabPlot3, tabPlot4);
New Window("Results", tabbedResults);&lt;/PRE&gt;
&lt;P&gt;it won't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question - how to construct a tabbed window with all your results, and have a live GraphBuilder or any other platform with all their interactive features, not a static, "dead" report version of it?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 21:23:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Question-on-windows-and-reports/m-p/38391#M22466</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2017-04-21T21:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Question on windows and reports</title>
      <link>https://community.jmp.com/t5/Discussions/Question-on-windows-and-reports/m-p/38392#M22467</link>
      <description>&lt;P&gt;You don't want to use Report() in this case. I find Report useful when you need a reference to a platform's output to be able to mine the results displayed (through displaybox scripting). This is quickly seen in the example below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that both biv and bivRpt both produce output but are different object types. biv is "Bivariate[]" and bivRpt is "DisplayBox"&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;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );&lt;BR /&gt;
biv = Bivariate( Y( :weight ), X( :height ), Fit Line );&lt;BR /&gt;
&lt;BR /&gt;biv &amp;lt;&amp;lt; LocalDataFilter(&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;Add Filter(&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;columns( :age, :sex ),&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;Where( :age == {13, 14, 15, 16} ),&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;Where( :sex == "M" ),&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;Display( :age, Size( 160, 90 ), List Display )&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;)&lt;BR /&gt;&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
bivRpt = Report(
	Bivariate( Y( :weight ), X( :height ), Fit Line )
);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bivRpt &amp;lt;&amp;lt; showTreeStructure;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NewWindow("Biv's Report", bivRpt);&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For what you want to do, which is the&amp;nbsp;custom arrangement of live charts and analysis, I would do the following:&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/Profit by Product.jmp" );


gb1 = Expr(
	Graph Builder(
		Show Control Panel( 0 ),
		Variables(
			X( :Quarter ),
			Y( :Revenue ),
			Y( :Product Cost, Position( 1 ) ),
			Y( :Profit, Position( 1 ) ),
			Wrap( :Product Line )
		),
		Elements( BoxPlot( X, Y( 1 ), Y( 2 ), Y( 3 ), Legend( 6 ) ) )
	)
);



gb2 = Expr(
Graph Builder(
	Show Control Panel( 0 ),
	Variables(
		X( :Quarter ),
		Y( :Revenue ),
		Y( :Product Cost, Position( 1 ) ),
		Y( :Customer Service Cost, Position( 1 ) )
	),
	Elements(
		Line( X, Y( 1 ), Y( 2 ), Y( 3 ), Legend( 6 ) ),
		Points( X, Y( 1 ), Y( 2 ), Y( 3 ), Legend( 6 ) )
	)
)
);


New Window( "", &lt;BR /&gt;&lt;BR /&gt;Tab Box( Tab Page Box( "Graph1", gb1 ),&lt;BR /&gt;&lt;BR /&gt;Tab Page Box( "Graph2", gb2 )&lt;BR /&gt;&lt;BR /&gt; ) );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 23:41:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Question-on-windows-and-reports/m-p/38392#M22467</guid>
      <dc:creator>Phil_Brown</dc:creator>
      <dc:date>2017-04-21T23:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Question on windows and reports</title>
      <link>https://community.jmp.com/t5/Discussions/Question-on-windows-and-reports/m-p/38393#M22468</link>
      <description>&lt;P&gt;Looks like the key was to use this:&lt;/P&gt;
&lt;PRE&gt;GrBld = dt1 &amp;lt;&amp;lt; Graph Builder(nada-nada-nada);&lt;/PRE&gt;
&lt;P&gt;which would produce a different type of object (display box?). At least "Graph Builder" words changed color and I can now append GrBld to different things.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 23:42:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Question-on-windows-and-reports/m-p/38393#M22468</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2017-04-21T23:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question on windows and reports</title>
      <link>https://community.jmp.com/t5/Discussions/Question-on-windows-and-reports/m-p/38394#M22469</link>
      <description>&lt;P&gt;I will add - ...append do different things and it being live. Previously it was either live and I couldn't append it, or it was "reported", I caould append it, but it wasn't live.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 23:44:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Question-on-windows-and-reports/m-p/38394#M22469</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2017-04-21T23:44:02Z</dc:date>
    </item>
  </channel>
</rss>

