<?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: Is there a refresh option to update data table in JMP 13.2.1 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/48135#M27409</link>
    <description>&lt;P&gt;OK, so when you click Tables/Update, you see a list of all the current tables that are open.&lt;/P&gt;
&lt;P&gt;Update is essentially an inner join.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What ever is the current active table is the table that you can update with a selected table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If no other tables are open.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next, I open the excel table in JMP, add scripts, color the rows, and do anything except change the column names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my main table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, I open the new version of the excel table. Outside of JMP this table has been edited or changed or updated somehow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do the Tables/Update operation:&lt;/P&gt;
&lt;P&gt;Select the first table (remember there are only two tables open at this point, the main table and the new copy)&lt;/P&gt;
&lt;P&gt;Tables/update.&lt;/P&gt;
&lt;P&gt;Select the new copy in the dialog.&lt;/P&gt;
&lt;P&gt;Pick the columns to match.&lt;/P&gt;
&lt;P&gt;Click OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now the data from the new table will over write the data in the Main table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The new copy does not need to be a complete table. It might only contain a few rows, or only a few columns. Either way it updates to the Main table.&lt;/P&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>Mon, 04 Dec 2017 20:31:04 GMT</pubDate>
    <dc:creator>Byron_JMP</dc:creator>
    <dc:date>2017-12-04T20:31:04Z</dc:date>
    <item>
      <title>Is there a refresh option to update data table in JMP 13.2.1</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/47951#M27299</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imported some data from Excel into a data table in JMP 13.2.1. Now, some of the cells have been updated in the Excel file and I wonder if it is possible to import the data from the Excel file which now contains updated cells (something like refereshing the data in the JMP data table). Note that the number of rows or columns nor the column headings have been changed; just the numbers are different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 15:02:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/47951#M27299</guid>
      <dc:creator>abdul_saqib</dc:creator>
      <dc:date>2017-11-30T15:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a refresh option to update data table in JMP 13.2.1</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/47953#M27300</link>
      <description>Hi,&lt;BR /&gt;If you open the Excel file from JMP using the Excel Import Wizard you get a source script in the data table. Try that. It might help.&lt;BR /&gt;Regards,&lt;BR /&gt;Phil</description>
      <pubDate>Thu, 30 Nov 2017 15:14:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/47953#M27300</guid>
      <dc:creator>Phil_Kay</dc:creator>
      <dc:date>2017-11-30T15:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a refresh option to update data table in JMP 13.2.1</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/47959#M27303</link>
      <description>&lt;P&gt;I right clicked on the 'Source' in the JMP data table and chose 'Run', it created a new data table which did not have the settings I had created in the first data table (row colours by column and data type etc).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 15:48:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/47959#M27303</guid>
      <dc:creator>abdul_saqib</dc:creator>
      <dc:date>2017-11-30T15:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a refresh option to update data table in JMP 13.2.1</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/47962#M27304</link>
      <description>&lt;P&gt;Yes, I would expect that. The source script repeats the import into a JMP table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you would have to script the further data pre-process steps. E.g:&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" );
Wait( 2 );
dt:Age &amp;lt;&amp;lt; Data Type( "Character" );
dt:Height &amp;lt;&amp;lt; Data Type( Numeric, 2 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Also:&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; Color or Mark by Column( :Age );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Nov 2017 15:59:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/47962#M27304</guid>
      <dc:creator>Phil_Kay</dc:creator>
      <dc:date>2017-11-30T15:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a refresh option to update data table in JMP 13.2.1</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/48048#M27349</link>
      <description>&lt;P&gt;I would take Phil's advice but go in a slightly different direction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lets say you already have the first table (dt1) all formatted and set up.&lt;/P&gt;
&lt;P&gt;The you can use the Source script that pulls a new "fresh" copy of the raw excel table (dt2)&lt;/P&gt;
&lt;P&gt;Now update table 1 with table 2.&amp;nbsp; (tables menu, Update)&amp;nbsp; or use a script like this.&lt;/P&gt;
&lt;P&gt;note: you can use multiple columns to define a uniqe identifier for each row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1 &amp;lt;&amp;lt; Update(
	With(dt2 ),
	Match Columns( :Unique = :Unique )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Dec 2017 19:18:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/48048#M27349</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2017-12-01T19:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a refresh option to update data table in JMP 13.2.1</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/48099#M27387</link>
      <description>&lt;P&gt;Thanks Byron. Table &amp;gt; Update menu sounds promising. When I clicked on the Table &amp;gt; Update menu in the dt to be updated. It opened the 'Update' dialogue box, however in the 'Update dt.. with data from' section of the dialogue box, JMP showed some file (data tables?) names which did not have relevance to the current dt (not sure how/why JMP chose those files to be shown). I couldn't find a way to locate the updated Excel file to pull the updated data from. Any idea how to choose the updated Excel file to pull the data from, please?&amp;nbsp;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 09:35:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/48099#M27387</guid>
      <dc:creator>abdul_saqib</dc:creator>
      <dc:date>2017-12-04T09:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a refresh option to update data table in JMP 13.2.1</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/48135#M27409</link>
      <description>&lt;P&gt;OK, so when you click Tables/Update, you see a list of all the current tables that are open.&lt;/P&gt;
&lt;P&gt;Update is essentially an inner join.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What ever is the current active table is the table that you can update with a selected table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If no other tables are open.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next, I open the excel table in JMP, add scripts, color the rows, and do anything except change the column names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my main table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, I open the new version of the excel table. Outside of JMP this table has been edited or changed or updated somehow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do the Tables/Update operation:&lt;/P&gt;
&lt;P&gt;Select the first table (remember there are only two tables open at this point, the main table and the new copy)&lt;/P&gt;
&lt;P&gt;Tables/update.&lt;/P&gt;
&lt;P&gt;Select the new copy in the dialog.&lt;/P&gt;
&lt;P&gt;Pick the columns to match.&lt;/P&gt;
&lt;P&gt;Click OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now the data from the new table will over write the data in the Main table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The new copy does not need to be a complete table. It might only contain a few rows, or only a few columns. Either way it updates to the Main table.&lt;/P&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>Mon, 04 Dec 2017 20:31:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/48135#M27409</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2017-12-04T20:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a refresh option to update data table in JMP 13.2.1</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/48161#M27427</link>
      <description>&lt;P&gt;Thanks for the detailed reply Byron.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is that I cannot see the Excel file listed in the Update Table dialogue box, even when only the JMP dt and the Excel (updated) file are open. JMP still shows 3 file names with no relevance + they are not opened on the computer right now (please see the enclosed screenshot). Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Updated Table.JPG" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8576i191BEBF00A081DF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Updated Table.JPG" alt="Updated Table.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 14:11:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/48161#M27427</guid>
      <dc:creator>abdul_saqib</dc:creator>
      <dc:date>2017-12-05T14:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a refresh option to update data table in JMP 13.2.1</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/48162#M27428</link>
      <description>Hi,&lt;BR /&gt;It is not clear to me if you have the Excel file open as a JMP table. It will need to be open as a JMP table for you to select it in the Update Table dialogue.&lt;BR /&gt;Regards,&lt;BR /&gt;Phil</description>
      <pubDate>Tue, 05 Dec 2017 09:46:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/48162#M27428</guid>
      <dc:creator>Phil_Kay</dc:creator>
      <dc:date>2017-12-05T09:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a refresh option to update data table in JMP 13.2.1</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/48164#M27430</link>
      <description>&lt;P&gt;Thanks Phil. It works now. Previously, I missed the point that the Excel sheet needs to be opened as a JMP dt.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 10:46:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/48164#M27430</guid>
      <dc:creator>abdul_saqib</dc:creator>
      <dc:date>2017-12-05T10:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a refresh option to update data table in JMP 13.2.1</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/191272#M41035</link>
      <description>&lt;P&gt;This script will help in a slightly different scenario (need to change "Wetterdaten.jmp" with the appropriate one as well the settings, best use the source script for the initial report):&lt;/P&gt;
&lt;P&gt;If you update your table like Byron suggested you will keep the table properties but you will overwrite any data cleaning steps, like recoded (overwritten) columns, or filled missing values, .... They will be overwritten by the Update table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Getting first the number of rows of the current table, and delete them from the imported one, then concatenate the final new table will avoid that painful awakening "all your work has been destroyed through the update.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Define current data table (current data)
dt1 = Current Data Table();

// Check number of rows in actual data table (current recorded and cleaned data)
n_rows = NRows();

// Open Excel file to read new data -&amp;gt; will open a new data table with the same name and all the previous and new data
dt2 = Open("Wetterdaten.xlsx",
	Worksheets( {"Import Data"} ),
	Use for all sheets( 1 ),
	Concatenate Worksheets( 1 ),
	Create Concatenation Column( 0 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 1 ),
		Data Starts on Row( 2 ),
		Data Starts on Column( 1 ),
		Data Ends on Row( 0 ),
		Data Ends on Column( 0 ),
		Replicated Spanned Rows( 1 ),
		Suppress Hidden Rows( 1 ),
		Suppress Hidden Columns( 1 ),
		Suppress Empty Columns( 1 ),
		Treat as Hierarchy( 0 )
	)
);

// Delete in dt2 all previous worked on data using the n_rows information
dt2 &amp;lt;&amp;lt; DeleteRows(1::n_rows);

// Concatenate tables: dt2 appended to dt1, so you avoid creating a new table
dt1 &amp;lt;&amp;lt; Concatenate  (dt2, Append to first table);

// Close support table dt2
Close(dt2);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Of course you can feel free to further customize this script. E.g. I would go for a general import routine, where I chenge the setting for the Excel Import to the original number + the current number of rows already beeing imported. With this you can directly go to concatenate without the need for deleting rows. And I do not like hardcoded tablenames, so I would first check the table name and use this as table name in the Excel Import.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just few thoughts ... :)&lt;/img&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;excelFile = "Wetterdaten.xlsx";

cdt = Current Data Table();
cdtName = cdt &amp;lt;&amp;lt; get name();
n_Rows = NRows();

dtHelp = Open(
	excelFile,
	Worksheets( {eval(cdtName)} ),
	Use for all sheets( 1 ),
	Concatenate Worksheets( 1 ),
	Create Concatenation Column( 0 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 1 ),
		Data Starts on Row( 2+ n_Rows ),
		Data Starts on Column( 1 ),
		Data Ends on Row( 0 ),
		Data Ends on Column( 0 ),
		Replicated Spanned Rows( 1 ),
		Suppress Hidden Rows( 1 ),
		Suppress Hidden Columns( 1 ),
		Suppress Empty Columns( 1 ),
		Treat as Hierarchy( 0 )
	), Invisible
);

cdt &amp;lt;&amp;lt; Concatenate  (dtHelp, Append to first table);

Close(dtHelp);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 14:33:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-refresh-option-to-update-data-table-in-JMP-13-2-1/m-p/191272#M41035</guid>
      <dc:creator>martindemel</dc:creator>
      <dc:date>2019-04-04T14:33:25Z</dc:date>
    </item>
  </channel>
</rss>

