<?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: save New Window scripts into data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/save-New-Window-scripts-into-data-table/m-p/210249#M42109</link>
    <description>&lt;P&gt;While&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8582"&gt;@cwillden&lt;/a&gt; code will save the script for the New Window(), the unfortunate item is that there are issues with the script created in JMP from a New Window().&lt;/P&gt;
&lt;P&gt;I have been more successful in creating in the JSL, an expression of&amp;nbsp; the script I am going to create, and then running the sc&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ript from the expression, and then secondly, converting the literal string and saving it as a script to the data table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

x = Expr(
	win = New Window( "y vs x",
		V List Box(
			Fit Group( Bivariate( Y( :height ), X( :weight ) ) )
		)
	)
);
Eval( x );
Eval(
	Substitute(
			Expr(
				dt &amp;lt;&amp;lt; New Script( "y vs x", __x__ )
			),
		Expr( __x__ ), Eval Expr( x )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 22:45:59 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2019-05-22T22:45:59Z</dc:date>
    <item>
      <title>save New Window scripts into data table</title>
      <link>https://community.jmp.com/t5/Discussions/save-New-Window-scripts-into-data-table/m-p/210197#M42099</link>
      <description>&lt;P&gt;I have a lengthy new window script generated by Fit Y by X. It looks like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "y vs x",
V List Box(
Fit Group(
Bivariate(
Y( :yy ),
X( :xx ),
.......&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;I tried to save the new window script in the data table using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;win =&amp;nbsp;New Window( "y vs x",
V List Box(
Fit Group(
Bivariate(
Y( :yy ),
X( :xx ),
.......

dt &amp;lt;&amp;lt; New Table Script( "y vs x", win&amp;lt;&amp;lt;get script() );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But that didn't work.&lt;/P&gt;
&lt;P&gt;Instead of copying the whole script into the jsl_expression in the&amp;nbsp;New Table Script I'm looking for something that's more concise.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for any help!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 21:59:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/save-New-Window-scripts-into-data-table/m-p/210197#M42099</guid>
      <dc:creator>midori555</dc:creator>
      <dc:date>2019-05-23T21:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: save New Window scripts into data table</title>
      <link>https://community.jmp.com/t5/Discussions/save-New-Window-scripts-into-data-table/m-p/210247#M42107</link>
      <description>&lt;P&gt;The problem is the table will literally contain the script "win &amp;lt;&amp;lt; get script()" so that script will no longer work once that window named "win" has been closed.&amp;nbsp; Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval(
	Parse(
		Eval Insert( "\[dt &amp;lt;&amp;lt; New Table Script("y vs. x", ^win &amp;lt;&amp;lt; get script^)]\" )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 May 2019 22:21:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/save-New-Window-scripts-into-data-table/m-p/210247#M42107</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2019-05-22T22:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: save New Window scripts into data table</title>
      <link>https://community.jmp.com/t5/Discussions/save-New-Window-scripts-into-data-table/m-p/210249#M42109</link>
      <description>&lt;P&gt;While&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8582"&gt;@cwillden&lt;/a&gt; code will save the script for the New Window(), the unfortunate item is that there are issues with the script created in JMP from a New Window().&lt;/P&gt;
&lt;P&gt;I have been more successful in creating in the JSL, an expression of&amp;nbsp; the script I am going to create, and then running the sc&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;ript from the expression, and then secondly, converting the literal string and saving it as a script to the data table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

x = Expr(
	win = New Window( "y vs x",
		V List Box(
			Fit Group( Bivariate( Y( :height ), X( :weight ) ) )
		)
	)
);
Eval( x );
Eval(
	Substitute(
			Expr(
				dt &amp;lt;&amp;lt; New Script( "y vs x", __x__ )
			),
		Expr( __x__ ), Eval Expr( x )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 22:45:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/save-New-Window-scripts-into-data-table/m-p/210249#M42109</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-05-22T22:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: save New Window scripts into data table</title>
      <link>https://community.jmp.com/t5/Discussions/save-New-Window-scripts-into-data-table/m-p/210251#M42110</link>
      <description>Thanks Jim. It works!</description>
      <pubDate>Wed, 22 May 2019 23:21:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/save-New-Window-scripts-into-data-table/m-p/210251#M42110</guid>
      <dc:creator>midori555</dc:creator>
      <dc:date>2019-05-22T23:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: save New Window scripts into data table</title>
      <link>https://community.jmp.com/t5/Discussions/save-New-Window-scripts-into-data-table/m-p/719473#M90204</link>
      <description>&lt;P&gt;Am I able to apply this to a plot window I already made?&amp;nbsp; If I just want to extract the script for the plots from another script without manually doing it is that possible?&amp;nbsp; I've seen examples where this can be done with graph builder but I can't seem to apply that to a series of X-Y plots.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 19:29:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/save-New-Window-scripts-into-data-table/m-p/719473#M90204</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2024-01-29T19:29:45Z</dc:date>
    </item>
  </channel>
</rss>

