<?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: Lineup box disappears upon Save as Report MyReport.jrp in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Lineup-box-disappears-upon-Save-as-Report-MyReport-jrp/m-p/356599#M60653</link>
    <description>&lt;P&gt;I think this is a bug, you might consider sending this to &lt;A href="mailto:support@jmp.com" target="_blank"&gt;support@jmp.com&lt;/A&gt;.&amp;nbsp; Note that without saving as a report, if you select Save Script &amp;gt; To Script Window (All Objects) you also get tab boxes instead of lineup boxes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, a work around might be to distribute a script file instead of the report file.&amp;nbsp; In the data table, you can select copy table script from the red triangle above the column list, and then paste that into your script.&amp;nbsp; Include '//!' on the first line of the script so it automatically executes, and then save that as a .jsl file (file size should jrp file, they both save the table as text).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make it act more like a report, you could open the table as invisible or private, and then close it automatically when the window closes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example, save this as a .jsl file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//!
Names default to here(1);

dt = New Table( "Subset of Big Class 2",
	Add Rows( 18 ),
	New Column(
		["en" =&amp;gt; "age", "ja" =&amp;gt; "年齢", "x-id" =&amp;gt; "S_age_Col", "zh-CN" =&amp;gt; "年龄"],
		Numeric, "Ordinal", Format( "Fixed Dec", 5, 0 ),
		Set Values(
			[12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, 17, 17, 17]
		),
		Set Display Width( 0 )
	),
	New Column(
		["en" =&amp;gt; "height",
		"ja" =&amp;gt; "身長(インチ)",
		"x-id" =&amp;gt; "S_height_Col",
		"zh-CN" =&amp;gt; "身高"],
		Numeric, "Continuous", Format( "Fixed Dec", 5, 0 ),
		Set Values(
			[61, 66, 51, 61, 65, 58, 63, 63, 64, 62, 64, 67, 65, 60, 68, 62, 68, 70]
		),
		Set Display Width( 0 )
	),
	New Column(
		["en" =&amp;gt; "weight",
		"ja" =&amp;gt; "体重(ポンド)",
		"x-id" =&amp;gt; "S_Big_Class_weight_Col",
		"zh-CN" =&amp;gt; "体重"],
		Numeric, "Continuous", Format( "Fixed Dec", 5, 0 ),
		Set Values(
			[123, 145, 79, 107, 98, 95, 84, 93, 99, 92, 112, 128, 112, 115, 128, 116,
			134, 172]
		),
		Set Display Width( 0 )
	),
	Invisible
);

nw = New Window( "Win1", tbox = Tab Box(Tab Page Box("Age", vlb = Lineup Box( N Col( 2 )) )) );

nw &amp;lt;&amp;lt; On close( try( Close( dt, "nosave" ) ) );

ages = associative array(dt:age) &amp;lt;&amp;lt; get keys;

for(i=1, i&amp;lt;= n items(ages), i++,
	Eval( Eval Expr( 
		vlb &amp;lt;&amp;lt; Append(   
			Graph Builder(
				Size( 534, 456 ),
				Show Control Panel( 0 ),
				Variables(
					X( :height ),
					Y( :weight ),
					Overlay( Transform Column( "Is " || char( ages[i] ) , Nominal, Formula( :age == Expr( ages[i] ) ) ) )
				),
				Elements( Points( X, Y, Legend( 7 ) ) ),
				SendToReport(
					Dispatch( {}, "graph title", TextEditBox, {Set Text( "Hight and Weight" )} )
				)
			)
		)
	) )
);&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, 05 Feb 2021 23:07:48 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2021-02-05T23:07:48Z</dc:date>
    <item>
      <title>Lineup box disappears upon Save as Report MyReport.jrp</title>
      <link>https://community.jmp.com/t5/Discussions/Lineup-box-disappears-upon-Save-as-Report-MyReport-jrp/m-p/349351#M59995</link>
      <description>&lt;P&gt;I have a script that creates a window with three tabs.&amp;nbsp; The first tab has a Lineup Box with two columns and 6 Graph Builder graphs created with a loop.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "Win1", tbox = Tab Box(Tab Page Box("Age", vlb = Lineup Box( N Col( 2 )) )) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;All the graphs generated by the loop are appended with:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;vlb &amp;lt;&amp;lt; Append(   
    Graph Builder("graph stuff here");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;At the end everything looks as expected two graphs per row (two columns).&lt;/P&gt;&lt;P&gt;However, when I save it as a “Report” (with an embedded table) the Lineup box disappears from the code!&lt;/P&gt;&lt;P&gt;And I get:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "Win1",
	Tab Box(
		Tab Page Box(
			"Age",
			Graph Builder("graph stuff here");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there a way to preserve the original arrangement of the graphs in two columns? Is this a property or a lack of property&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;of the type of “boxes” that I am using ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I will appreciate some suggestions to try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:10:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Lineup-box-disappears-upon-Save-as-Report-MyReport-jrp/m-p/349351#M59995</guid>
      <dc:creator>ALopez</dc:creator>
      <dc:date>2023-06-11T11:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lineup box disappears upon Save as Report MyReport.jrp</title>
      <link>https://community.jmp.com/t5/Discussions/Lineup-box-disappears-upon-Save-as-Report-MyReport-jrp/m-p/356599#M60653</link>
      <description>&lt;P&gt;I think this is a bug, you might consider sending this to &lt;A href="mailto:support@jmp.com" target="_blank"&gt;support@jmp.com&lt;/A&gt;.&amp;nbsp; Note that without saving as a report, if you select Save Script &amp;gt; To Script Window (All Objects) you also get tab boxes instead of lineup boxes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, a work around might be to distribute a script file instead of the report file.&amp;nbsp; In the data table, you can select copy table script from the red triangle above the column list, and then paste that into your script.&amp;nbsp; Include '//!' on the first line of the script so it automatically executes, and then save that as a .jsl file (file size should jrp file, they both save the table as text).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make it act more like a report, you could open the table as invisible or private, and then close it automatically when the window closes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example, save this as a .jsl file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//!
Names default to here(1);

dt = New Table( "Subset of Big Class 2",
	Add Rows( 18 ),
	New Column(
		["en" =&amp;gt; "age", "ja" =&amp;gt; "年齢", "x-id" =&amp;gt; "S_age_Col", "zh-CN" =&amp;gt; "年龄"],
		Numeric, "Ordinal", Format( "Fixed Dec", 5, 0 ),
		Set Values(
			[12, 12, 12, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, 17, 17, 17]
		),
		Set Display Width( 0 )
	),
	New Column(
		["en" =&amp;gt; "height",
		"ja" =&amp;gt; "身長(インチ)",
		"x-id" =&amp;gt; "S_height_Col",
		"zh-CN" =&amp;gt; "身高"],
		Numeric, "Continuous", Format( "Fixed Dec", 5, 0 ),
		Set Values(
			[61, 66, 51, 61, 65, 58, 63, 63, 64, 62, 64, 67, 65, 60, 68, 62, 68, 70]
		),
		Set Display Width( 0 )
	),
	New Column(
		["en" =&amp;gt; "weight",
		"ja" =&amp;gt; "体重(ポンド)",
		"x-id" =&amp;gt; "S_Big_Class_weight_Col",
		"zh-CN" =&amp;gt; "体重"],
		Numeric, "Continuous", Format( "Fixed Dec", 5, 0 ),
		Set Values(
			[123, 145, 79, 107, 98, 95, 84, 93, 99, 92, 112, 128, 112, 115, 128, 116,
			134, 172]
		),
		Set Display Width( 0 )
	),
	Invisible
);

nw = New Window( "Win1", tbox = Tab Box(Tab Page Box("Age", vlb = Lineup Box( N Col( 2 )) )) );

nw &amp;lt;&amp;lt; On close( try( Close( dt, "nosave" ) ) );

ages = associative array(dt:age) &amp;lt;&amp;lt; get keys;

for(i=1, i&amp;lt;= n items(ages), i++,
	Eval( Eval Expr( 
		vlb &amp;lt;&amp;lt; Append(   
			Graph Builder(
				Size( 534, 456 ),
				Show Control Panel( 0 ),
				Variables(
					X( :height ),
					Y( :weight ),
					Overlay( Transform Column( "Is " || char( ages[i] ) , Nominal, Formula( :age == Expr( ages[i] ) ) ) )
				),
				Elements( Points( X, Y, Legend( 7 ) ) ),
				SendToReport(
					Dispatch( {}, "graph title", TextEditBox, {Set Text( "Hight and Weight" )} )
				)
			)
		)
	) )
);&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, 05 Feb 2021 23:07:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Lineup-box-disappears-upon-Save-as-Report-MyReport-jrp/m-p/356599#M60653</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-02-05T23:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lineup box disappears upon Save as Report MyReport.jrp</title>
      <link>https://community.jmp.com/t5/Discussions/Lineup-box-disappears-upon-Save-as-Report-MyReport-jrp/m-p/357921#M60805</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6657"&gt;@ih&lt;/a&gt;&amp;nbsp;, thank you very much for your response, unfortunately your approach will not work because I am using scripts that call "functions" scripts and other ancillary scripts that process the data before generating the data table for the graphs.&lt;/P&gt;&lt;P&gt;I will follow up with support and add any solutions/comments I may get from them.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 19:01:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Lineup-box-disappears-upon-Save-as-Report-MyReport-jrp/m-p/357921#M60805</guid>
      <dc:creator>ALopez</dc:creator>
      <dc:date>2021-02-10T19:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lineup box disappears upon Save as Report MyReport.jrp</title>
      <link>https://community.jmp.com/t5/Discussions/Lineup-box-disappears-upon-Save-as-Report-MyReport-jrp/m-p/357924#M60806</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/20396"&gt;@ALopez&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The .jrp file actually saves a script to create the the data table exactly as it is used in the graph (try changing the extension from .jrp to .jsl and open it up to see).&amp;nbsp; If a .jrp file servers your needs I believe you could copy and paste the same data table into a .jsl file with your pre-processing already done.&amp;nbsp; But, this is certainly more complex than just saving the report.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 19:18:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Lineup-box-disappears-upon-Save-as-Report-MyReport-jrp/m-p/357924#M60806</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-02-10T19:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Lineup box disappears upon Save as Report MyReport.jrp</title>
      <link>https://community.jmp.com/t5/Discussions/Lineup-box-disappears-upon-Save-as-Report-MyReport-jrp/m-p/357934#M60808</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6657"&gt;@ih&lt;/a&gt;, You are right: anything that is more complex than saving the report is a No-No for the users that belong to the "what button do I press" crowd.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 20:25:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Lineup-box-disappears-upon-Save-as-Report-MyReport-jrp/m-p/357934#M60808</guid>
      <dc:creator>ALopez</dc:creator>
      <dc:date>2021-02-10T20:25:37Z</dc:date>
    </item>
  </channel>
</rss>

