<?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 tables without saving in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Closing-tables-without-saving/m-p/382506#M63313</link>
    <description>Try the File &amp;gt; Close Multiple option from the file menu. You will be presented with a dialog window that lets you pick all or selected files to close. Those that potential need saving have a * and you have options to review or not review.</description>
    <pubDate>Wed, 05 May 2021 15:34:46 GMT</pubDate>
    <dc:creator>KarenC</dc:creator>
    <dc:date>2021-05-05T15:34:46Z</dc:date>
    <item>
      <title>Closing tables without saving</title>
      <link>https://community.jmp.com/t5/Discussions/Closing-tables-without-saving/m-p/382087#M63273</link>
      <description>&lt;P&gt;I have a couple of frustrations with closing data tables.&lt;/P&gt;&lt;P&gt;1) if I try to close tables from the taskbar, JMP will ask every time if I want to Hide Data Table, or just close all the associated charts and reports, then separately ask if i &lt;EM&gt;&lt;STRONG&gt;really&lt;/STRONG&gt; &lt;/EM&gt;want to close the table without saving. is there any option to get rid of either of these dialogs? I understand that a program would want to warn a user before they close a data table without saving, but I open dozens of tables every day and don't need to save any of them. They open via a jsl script, so if I can add something to the script to not ask when I close them, that's great, but I am not closing them with a script so "Close( dt, No Save)" is sadly not the only answer I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) If I select the tables I want to close from the Home window, I can close them all and Save None, which is great, but then all the charts, reports, and graphs associated with them will stay open, orphaned, which seems like it would be a bug. Does anyone know a workaround for this one, aside from clicking on all the graphs in addition to the tables?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:44:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Closing-tables-without-saving/m-p/382087#M63273</guid>
      <dc:creator>alanpaone</dc:creator>
      <dc:date>2023-06-10T20:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Closing tables without saving</title>
      <link>https://community.jmp.com/t5/Discussions/Closing-tables-without-saving/m-p/382109#M63279</link>
      <description>&lt;P&gt;If you're opening the tables with a script, you can add the following OnClose function to the tables.&amp;nbsp; Here I open a builtin table and add an on-close statement to close the table without saving -- you should be able to add this to your script without any issues.&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/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column( "a new column here", "Character" );
dt &amp;lt;&amp;lt; On Close(
	window = Current Window();
	table = wnd[Data Browser Box( 1 )] &amp;lt;&amp;lt; Get Data Table;
	(table &amp;lt;&amp;lt; Get Windows()) &amp;lt;&amp;lt; Close Window();
	Close( table, No Save );
	1
)&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;There is probably a way to have the window / table variable give a list of attached windows (the charts and such) that you can then close, but I didn't check.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 03:47:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Closing-tables-without-saving/m-p/382109#M63279</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2021-05-04T03:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Closing tables without saving</title>
      <link>https://community.jmp.com/t5/Discussions/Closing-tables-without-saving/m-p/382112#M63280</link>
      <description>&lt;P&gt;Sorry, typo in the script above, and this only works if closing a window directly, but you may be able to modify it to work in all cases.&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/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column( "a new column here", "Character" );
dt &amp;lt;&amp;lt; On Close(
	window = Current Window();
	table = window[Data Browser Box( 1 )] &amp;lt;&amp;lt; Get Data Table;
	(table &amp;lt;&amp;lt; Get Windows()) &amp;lt;&amp;lt; Close Window();
	Close( table, No Save );
	1
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 May 2021 03:50:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Closing-tables-without-saving/m-p/382112#M63280</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2021-05-04T03:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Closing tables without saving</title>
      <link>https://community.jmp.com/t5/Discussions/Closing-tables-without-saving/m-p/382248#M63297</link>
      <description>&lt;P&gt;Another option is to save a script to close the data table when you open it:&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/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Script( "Close without save",
	current data table() &amp;lt;&amp;lt; Close Window;
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ih_0-1620141798019.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32588iE3D5FB31F8D267B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ih_0-1620141798019.png" alt="ih_0-1620141798019.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 15:23:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Closing-tables-without-saving/m-p/382248#M63297</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-05-04T15:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Closing tables without saving</title>
      <link>https://community.jmp.com/t5/Discussions/Closing-tables-without-saving/m-p/382506#M63313</link>
      <description>Try the File &amp;gt; Close Multiple option from the file menu. You will be presented with a dialog window that lets you pick all or selected files to close. Those that potential need saving have a * and you have options to review or not review.</description>
      <pubDate>Wed, 05 May 2021 15:34:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Closing-tables-without-saving/m-p/382506#M63313</guid>
      <dc:creator>KarenC</dc:creator>
      <dc:date>2021-05-05T15:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Closing tables without saving</title>
      <link>https://community.jmp.com/t5/Discussions/Closing-tables-without-saving/m-p/383295#M63390</link>
      <description>&lt;P&gt;This works perfectly, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 17:07:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Closing-tables-without-saving/m-p/383295#M63390</guid>
      <dc:creator>alanpaone</dc:creator>
      <dc:date>2021-05-07T17:07:22Z</dc:date>
    </item>
  </channel>
</rss>

