<?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: Closing a hidden data table when closing a figure in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Closing-a-hidden-data-table-when-closing-a-figure/m-p/304899#M56112</link>
    <description>&lt;P&gt;You can just use a On Close method like below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp",private );
obj = dt &amp;lt;&amp;lt; Bivariate( Y( :Weight ), X( :Height ) );
obj&amp;lt;&amp;lt;on close(close(dt,NoSave));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Sep 2020 21:27:03 GMT</pubDate>
    <dc:creator>jara95</dc:creator>
    <dc:date>2020-09-10T21:27:03Z</dc:date>
    <item>
      <title>Closing a hidden data table when closing a figure</title>
      <link>https://community.jmp.com/t5/Discussions/Closing-a-hidden-data-table-when-closing-a-figure/m-p/304876#M56110</link>
      <description>&lt;P&gt;I have a few hidden data tables that I only show to the user via some plots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As they are hidden, they accumulate in memory (as many times as the user calls the function in the toolbox).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to embed the JSL action (closing the invisible table) when the user closes the figure created?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:05:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Closing-a-hidden-data-table-when-closing-a-figure/m-p/304876#M56110</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2023-06-11T11:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Closing a hidden data table when closing a figure</title>
      <link>https://community.jmp.com/t5/Discussions/Closing-a-hidden-data-table-when-closing-a-figure/m-p/304899#M56112</link>
      <description>&lt;P&gt;You can just use a On Close method like below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp",private );
obj = dt &amp;lt;&amp;lt; Bivariate( Y( :Weight ), X( :Height ) );
obj&amp;lt;&amp;lt;on close(close(dt,NoSave));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Sep 2020 21:27:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Closing-a-hidden-data-table-when-closing-a-figure/m-p/304899#M56112</guid>
      <dc:creator>jara95</dc:creator>
      <dc:date>2020-09-10T21:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Closing a hidden data table when closing a figure</title>
      <link>https://community.jmp.com/t5/Discussions/Closing-a-hidden-data-table-when-closing-a-figure/m-p/305199#M56131</link>
      <description>&lt;P&gt;There is a problem with this approach.&amp;nbsp; Closing the bivariate window occurs after the script has finished execution.&amp;nbsp; At that point the variable 'dt' may or may not exist.&amp;nbsp; This is a more robust approach:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtName = dt &amp;lt;&amp;lt; Get Name;
rep = obj &amp;lt;&amp;lt; Report;
Eval(Parse(EvalInsert("\[ 	
	rep &amp;lt;&amp;lt; On Close(
		Close(DataTable("^dtName^"),NoSave)
	);
]\")));&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;</description>
      <pubDate>Fri, 11 Sep 2020 13:55:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Closing-a-hidden-data-table-when-closing-a-figure/m-p/305199#M56131</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2020-09-11T13:55:45Z</dc:date>
    </item>
  </channel>
</rss>

