<?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: Help with script to rename data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/729985#M91272</link>
    <description>&lt;P&gt;Here is an example using set name&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Nonlinear Examples/Bioassay.jmp");

fc = dt &amp;lt;&amp;lt; Fit Curve(
	Y(:Toxicity),
	X(:log Conc),
	Group(:formulation),
	Fit Logistic 4P(Test Parallelism),
	SendToReport(Dispatch({"Logistic 4P"}, "Plot", OutlineBox, {Close(1)}))	
);

dt_logistics = Report(fc)["Fit Curve", "Logistic 4P", "Group Summary", Table Box(1)] &amp;lt;&amp;lt; Make Into Data Table;
fc &amp;lt;&amp;lt; Close Window;

dt_logistics &amp;lt;&amp;lt; Set Name("4PL");&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 Mar 2024 13:29:46 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-03-05T13:29:46Z</dc:date>
    <item>
      <title>Help with script to rename data table</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/729974#M91270</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to streamline some analysis and am dipping my toes into JSL.&amp;nbsp; In the current case I'm running a 4PL fit of some data then generating a table of the curve parameter summaries.&amp;nbsp; I'm able to make the new table but it will be named by default "Untitled X" (where x is just an iteration of numbers...).&amp;nbsp; I can manually rename to "4PL"...which my follow on tasks will point to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'd like to do is have the original script make the new table and set the name to "4PL".&amp;nbsp; I've searched the archives and tried the Set Name function...but I think I'm not getting the syntax correct.&amp;nbsp; Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the script I'm running (without the Set Name function):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Names Default To Here( 1 );&lt;BR /&gt;rpt = New Window( "RM Tracking- CV - Fit Curve of Avg Response by log(Conc)",&lt;BR /&gt;Data Table( "RM Tracking- CV" ) &amp;lt;&amp;lt; Fit Curve(&lt;BR /&gt;Y( :Avg Response ),&lt;BR /&gt;X( :"log(Conc)"n ),&lt;BR /&gt;Group( :Individual Curve with Lot# ),&lt;BR /&gt;Fit Logistic 4P( Test Parallelism ),&lt;BR /&gt;SendToReport(&lt;BR /&gt;Dispatch( {"Logistic 4P"}, "Plot", OutlineBox, {Close( 1 )} )&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;);&lt;BR /&gt;Wait( 0 );&lt;BR /&gt;rpt["Fit Curve", "Logistic 4P", "Group Summary", Table Box( 1 )] &amp;lt;&amp;lt;&lt;BR /&gt;Make Into Data Table;&lt;BR /&gt;rpt &amp;lt;&amp;lt; Close Window;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much for your help!&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 13:04:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/729974#M91270</guid>
      <dc:creator>ClusterFerret68</dc:creator>
      <dc:date>2024-03-05T13:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script to rename data table</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/729985#M91272</link>
      <description>&lt;P&gt;Here is an example using set name&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Nonlinear Examples/Bioassay.jmp");

fc = dt &amp;lt;&amp;lt; Fit Curve(
	Y(:Toxicity),
	X(:log Conc),
	Group(:formulation),
	Fit Logistic 4P(Test Parallelism),
	SendToReport(Dispatch({"Logistic 4P"}, "Plot", OutlineBox, {Close(1)}))	
);

dt_logistics = Report(fc)["Fit Curve", "Logistic 4P", "Group Summary", Table Box(1)] &amp;lt;&amp;lt; Make Into Data Table;
fc &amp;lt;&amp;lt; Close Window;

dt_logistics &amp;lt;&amp;lt; Set Name("4PL");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Mar 2024 13:29:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/729985#M91272</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-03-05T13:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script to rename data table</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730000#M91275</link>
      <description>&lt;P&gt;Hi Jarmo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response.&amp;nbsp; I've used the following for my case (data table is contained within a project file):&lt;/P&gt;&lt;DIV&gt;Names Default To Here(1);&lt;/DIV&gt;&lt;DIV&gt;dt = Open("jmpprj://contents/Test File.jmp");&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;fc = dt &amp;lt;&amp;lt; Fit Curve(&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Y(:Avg Response),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;X(:"log Conc"n),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Group(:Individual Curve with Lot#),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Fit Logistic 4P(Test Parallelism),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SendToReport(Dispatch({"Logistic 4P"}, "Plot", OutlineBox, {Close(1)})) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;dt_logistics = Report(fc)["Fit Curve", "Logistic 4P", "Group Summary", Table Box(1)] &amp;lt;&amp;lt; Make Into Data Table;&lt;/DIV&gt;&lt;DIV&gt;fc &amp;lt;&amp;lt; Close Window;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;dt_logistics &amp;lt;&amp;lt; Set Name("4PL");&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When I run the script I get the following:&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ClusterFerret68_0-1709649683302.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61827iBE8C04322AD729F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ClusterFerret68_0-1709649683302.png" alt="ClusterFerret68_0-1709649683302.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Mar 2024 14:41:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730000#M91275</guid>
      <dc:creator>ClusterFerret68</dc:creator>
      <dc:date>2024-03-05T14:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script to rename data table</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730027#M91277</link>
      <description>&lt;P&gt;My guess is that the Fit Curve is failing, and therefore, "fc" is not getting populated.&amp;nbsp; One item that could cause this is that either your X or Y columns are not set as Continuous.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 16:31:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730027#M91277</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-03-05T16:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script to rename data table</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730028#M91278</link>
      <description>&lt;P&gt;thanks Jim.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both are continuous and the 4PL fit works if I do it independently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 16:39:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730028#M91278</guid>
      <dc:creator>ClusterFerret68</dc:creator>
      <dc:date>2024-03-05T16:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script to rename data table</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730034#M91279</link>
      <description>&lt;P&gt;Remove the&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;fc &amp;lt;&amp;lt; close window;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then run the script again.&amp;nbsp; The error message is indicating the display output window can not be found.&amp;nbsp; If the window is closing faster than the Make Into Data Table, there could be an issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you need to use the JSL icon at the top of the Preview window when entering JSL into your question, or responses.&amp;nbsp; It allows the reader to more easily examine your scripts.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 17:22:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730034#M91279</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-03-05T17:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script to rename data table</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730037#M91281</link>
      <description>&lt;P&gt;Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again...and thanks for your patience as I work to figure this out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried your suggestion to no avail; still getting the same error msg.&lt;/P&gt;&lt;P&gt;FYI - I can run the following and it does the analysis and makes the Data Table...just doesn't rename it:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
rpt = New Window( "RM Tracking- CV - Fit Curve of Avg Response by log(Conc)",
	Data Table( "RM Tracking- CV" ) &amp;lt;&amp;lt; Fit Curve(
		Y( :Avg Response ),
		X( :"log(Conc)"n ),
		Group( :Individual Curve with Lot# ),
		Fit Logistic 4P( Test Parallelism ),
		SendToReport(
			Dispatch( {"Logistic 4P"}, "Plot", OutlineBox, {Close( 1 )} )
		)
	)
);
Wait( 0 );
rpt["Fit Curve", "Logistic 4P", "Group Summary", Table Box( 1 )] &amp;lt;&amp;lt;
Make Into Data Table;
rpt &amp;lt;&amp;lt; Set Name("4PL");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 17:42:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730037#M91281</guid>
      <dc:creator>ClusterFerret68</dc:creator>
      <dc:date>2024-03-05T17:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script to rename data table</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730038#M91282</link>
      <description>&lt;P&gt;try&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;current data table() &amp;lt;&amp;lt; set name("4PL");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Mar 2024 17:45:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730038#M91282</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-03-05T17:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with script to rename data table</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730355#M91311</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = rpt["Fit Curve", "Logistic 4P", "Group Summary", Table Box( 1 )] &amp;lt;&amp;lt;
Make Into Data Table;
dt &amp;lt;&amp;lt; Set Name("4PL");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Mar 2024 16:46:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-script-to-rename-data-table/m-p/730355#M91311</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2024-03-06T16:46:53Z</dc:date>
    </item>
  </channel>
</rss>

