<?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: JMP 18 new Update Table script overwrites table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-18-new-Update-Table-script-overwrites-table/m-p/808707#M98828</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/19220"&gt;@Ake&lt;/a&gt;, the idea of update at the moment: replace the existing data with the new data from the input file.&lt;/P&gt;&lt;P&gt;As you describe - this is quite destructive.&lt;/P&gt;&lt;P&gt;The idea behind it might be something like:&lt;/P&gt;&lt;P&gt;One cannot guarantee that existing values in additional columns match the newly imported data - so better delete them. Hm, for columns with formulas, I don't see any reason why such columns should be deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much better than the Update Script:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
dtnew = dt &amp;lt;&amp;lt; Run Script( "Source" );
dt &amp;lt;&amp;lt; Select All Rows &amp;lt;&amp;lt; Delete Rows;
dt &amp;lt;&amp;lt; Concatenate( dtnew, Append to first table );
Close( dtnew, NoSave );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It will still delete manually added values, but it keeps formula columns : )&lt;/P&gt;&lt;P&gt;The drawback: it relies on the source script - which is also very fragile :&lt;LI-MESSAGE title="Update &amp;amp;amp; Concatenate: source script collision" uid="590519" url="https://community.jmp.com/t5/JMP-Wish-List/Update-amp-Concatenate-source-script-collision/m-p/590519#U590519" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Alternatively, you could have a look at&amp;nbsp;&lt;LI-MESSAGE title="Join, Concat and Update" uid="555726" url="https://community.jmp.com/t5/JMP-Wish-List/Join-Concat-and-Update/m-p/555726#U555726" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2024 05:28:58 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-10-29T05:28:58Z</dc:date>
    <item>
      <title>JMP 18 new Update Table script overwrites table</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-18-new-Update-Table-script-overwrites-table/m-p/808658#M98818</link>
      <description>&lt;P&gt;When importing Excel tables into JMP 18 I get two scripts 'Source' and 'Update Table' script, only difference seems to the an 'Update Table (1)' command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second script performs an update from the Excel file, and overwrites any columns created after import. Is there a way to make it leave new columns alone when updating? Did not find anything in the Scripting Index.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 15:25:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-18-new-Update-Table-script-overwrites-table/m-p/808658#M98818</guid>
      <dc:creator>Ake</dc:creator>
      <dc:date>2024-10-28T15:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: JMP 18 new Update Table script overwrites table</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-18-new-Update-Table-script-overwrites-table/m-p/808707#M98828</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/19220"&gt;@Ake&lt;/a&gt;, the idea of update at the moment: replace the existing data with the new data from the input file.&lt;/P&gt;&lt;P&gt;As you describe - this is quite destructive.&lt;/P&gt;&lt;P&gt;The idea behind it might be something like:&lt;/P&gt;&lt;P&gt;One cannot guarantee that existing values in additional columns match the newly imported data - so better delete them. Hm, for columns with formulas, I don't see any reason why such columns should be deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much better than the Update Script:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
dtnew = dt &amp;lt;&amp;lt; Run Script( "Source" );
dt &amp;lt;&amp;lt; Select All Rows &amp;lt;&amp;lt; Delete Rows;
dt &amp;lt;&amp;lt; Concatenate( dtnew, Append to first table );
Close( dtnew, NoSave );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It will still delete manually added values, but it keeps formula columns : )&lt;/P&gt;&lt;P&gt;The drawback: it relies on the source script - which is also very fragile :&lt;LI-MESSAGE title="Update &amp;amp;amp; Concatenate: source script collision" uid="590519" url="https://community.jmp.com/t5/JMP-Wish-List/Update-amp-Concatenate-source-script-collision/m-p/590519#U590519" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Alternatively, you could have a look at&amp;nbsp;&lt;LI-MESSAGE title="Join, Concat and Update" uid="555726" url="https://community.jmp.com/t5/JMP-Wish-List/Join-Concat-and-Update/m-p/555726#U555726" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 05:28:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-18-new-Update-Table-script-overwrites-table/m-p/808707#M98828</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-29T05:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: JMP 18 new Update Table script overwrites table</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-18-new-Update-Table-script-overwrites-table/m-p/809348#M98925</link>
      <description>&lt;P&gt;Thanks! If I just copy the source script into your script&amp;nbsp; it gets less fragile.&lt;/P&gt;&lt;P&gt;I have been using a more complicated method, adding required number of rows and then updating. Your script is cleaner.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Compare and add number of rows if needed
nrows1 = N Rows( dt1 );
nrows2 = N Rows( dt2 );
If( nrows2 &amp;lt; nrows1,
	dt2 &amp;lt;&amp;lt; Add Rows( nrows1 - nrows2 )
);

// Update dt2
Data Table( dt2 ) &amp;lt;&amp;lt; Update( With( Data Table( dt1 ) ) );
Close( dt1 );

dt2 &amp;lt;&amp;lt; save();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Oct 2024 12:22:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-18-new-Update-Table-script-overwrites-table/m-p/809348#M98925</guid>
      <dc:creator>Ake</dc:creator>
      <dc:date>2024-10-31T12:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: JMP 18 new Update Table script overwrites table</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-18-new-Update-Table-script-overwrites-table/m-p/915938#M107632</link>
      <description>&lt;P&gt;the danger of this script: it's inherited via concatenate:&lt;/P&gt;
&lt;P&gt;user A: imports an Excel file&lt;/P&gt;
&lt;P&gt;user B: concatenates 2 files&lt;/P&gt;
&lt;P&gt;user C: wonders about missing data - and tries "Update Table"&lt;/P&gt;
&lt;P&gt;from&amp;nbsp;&lt;LI-MESSAGE title="Disable &amp;amp;quot;Update Table&amp;amp;quot; script?" uid="887849" url="https://community.jmp.com/t5/Discussions/Disable-quot-Update-Table-quot-script/m-p/887849#U887849" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;please vote here:&amp;nbsp;&lt;LI-MESSAGE title="Option to disable creation of &amp;amp;quot;Update Table&amp;amp;quot; Script" uid="887911" url="https://community.jmp.com/t5/JMP-Wish-List/Option-to-disable-creation-of-quot-Update-Table-quot-Script/m-p/887911#U887911" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Nov 2025 15:46:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-18-new-Update-Table-script-overwrites-table/m-p/915938#M107632</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-11-29T15:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: JMP 18 new Update Table script overwrites table</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-18-new-Update-Table-script-overwrites-table/m-p/934858#M109066</link>
      <description>&lt;P&gt;Hello, I like this fix a lot, one question though - when I update table with this script it automatically adds the generic update table script which that can then break the formula columns. Is there a way to disable to automatic generation of the new "update table" script that is added to the jmp table?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 18:02:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-18-new-Update-Table-script-overwrites-table/m-p/934858#M109066</guid>
      <dc:creator>LambdaErmine807</dc:creator>
      <dc:date>2026-03-11T18:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: JMP 18 new Update Table script overwrites table</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-18-new-Update-Table-script-overwrites-table/m-p/934886#M109068</link>
      <description>&lt;P&gt;You can avoid that by deleting or overwriting the "Update Table" script within the script.&amp;nbsp; Here's one way, if your custom "Update Table" script is named "Update Table."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
update_script = dt &amp;lt;&amp;lt; Get Script( "Update Table" );
dt &amp;lt;&amp;lt; Delete Scripts( {"Update Table"} );
dtnew = dt &amp;lt;&amp;lt; Run Script( "Source" );
dt &amp;lt;&amp;lt; Select All Rows &amp;lt;&amp;lt; Delete Rows;
dt &amp;lt;&amp;lt; Concatenate( dtnew, Append to first table );
Close( dtnew, NoSave );
Eval(
	Substitute(
			Expr(
				dt &amp;lt;&amp;lt; Set Property( "Update Table", __update_script__ )
			),
		Expr( __update_script__ ), Name Expr( update_script )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you can name your script something else ("Update") and just include a line that removes "Update Table" after the update.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
dtnew = dt &amp;lt;&amp;lt; Run Script( "Source" );
dt &amp;lt;&amp;lt; Select All Rows &amp;lt;&amp;lt; Delete Rows;
dt &amp;lt;&amp;lt; Concatenate( dtnew, Append to first table );
Close( dtnew, NoSave );
dt &amp;lt;&amp;lt; Delete Scripts( {"Update Table"} );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 21:05:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-18-new-Update-Table-script-overwrites-table/m-p/934886#M109068</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2026-03-11T21:05:53Z</dc:date>
    </item>
  </channel>
</rss>

