<?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: How to save a summary table (and scripts within) back to the original table? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262977#M51422</link>
    <description>&lt;P&gt;Great! That's exactly what I was looking for&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2020 22:21:04 GMT</pubDate>
    <dc:creator>shasheminassab</dc:creator>
    <dc:date>2020-04-30T22:21:04Z</dc:date>
    <item>
      <title>How to save a summary table (and scripts within) back to the original table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262515#M51364</link>
      <description>&lt;P&gt;I make a summary table from an original table and within the summary table I create a bunch of graphs which I save their scripts to the table. Now how can I save this entire summary table (and scrips within) back to the original data table? I know it can be done with JSL but I'm not very familiar with scripting.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 01:12:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262515#M51364</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2020-04-30T01:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a summary table (and scripts within) back to the original table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262545#M51367</link>
      <description>&lt;P&gt;I am assuming that you want to save the summary table and all of the scripts that you saved to the summary table, back to the original table, as a new table script for the original table.&amp;nbsp; This is an easy process.&amp;nbsp; Once you have run all of the graphs from the summary table, and save the scripts from those graphs back to the summary table, all you have to do, is to capture the script for the whole summary table, and then save it to the original table.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to the Table Panel in the summary table and click on the red triangle and select Copy Table Script&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="save1.PNG" style="width: 308px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23608iCA49568FE5978F8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="save1.PNG" alt="save1.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Then go to the original data table's Table Panel and select New Script&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="save2.PNG" style="width: 477px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23609iD551193701725267/image-size/large?v=v2&amp;amp;px=999" role="button" title="save2.PNG" alt="save2.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Now, in the dialog box that pops up, paste in the data table script, and give the script a catchy name and you are complete &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="save3.PNG" style="width: 0px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23610iAEE26C770B169F48/image-size/small?v=v2&amp;amp;px=200" width="0" height="0" role="button" title="save3.PNG" alt="save3.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 30 Apr 2020 03:12:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262545#M51367</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-30T03:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a summary table (and scripts within) back to the original table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262590#M51370</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;.&amp;nbsp;But when I update the original table with some new data and run the saved script (the one you just described), I get the old results. How to address this issue?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 04:28:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262590#M51370</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2020-04-30T04:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a summary table (and scripts within) back to the original table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262646#M51372</link>
      <description>&lt;P&gt;Well, then what you seem to want is to not save the complete data table script, but to rather, save the script that reruns the summary table, and then runs the scripts that create the graphs.&amp;nbsp; Basically, all you need to do is to open a script window, and save the script that creates the summary table, and each of the scripts from each of the graphs, and then save that script to the original data table.&amp;nbsp; The script that creates the summary table, is available in the Source entry in the tables panel of the summary table.&amp;nbsp; Take that and save it to a script window.&amp;nbsp; Then rather than saving the scripts from each of the graphs you can specify to save to a script window.&amp;nbsp; Once the script is built, you simply save it as a new table script to the original data table.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 05:41:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262646#M51372</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-30T05:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a summary table (and scripts within) back to the original table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262811#M51387</link>
      <description>&lt;P&gt;I know that this suggestion is not a direct answer to your original question, but it might offer a new direction that suits your needs. Take a look at JMP Projects. This framework allows you to simultaneously work with more than one data table and many projects in a very smooth way.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 12:51:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262811#M51387</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-04-30T12:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a summary table (and scripts within) back to the original table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262905#M51401</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;. Very helpful. I followed the steps you described and saved the complied scripts (see below) in the original table. When I run it, it opens the summary table and ALL the graphs therein. Is there any way to control that? In other words, when i run the script I only want the summary table to open and then I open the graphs that I want in the summary table. Thanks again.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "Beijing PM2.5" ) &amp;lt;&amp;lt; Summary(
	Group(
		Transform Column(
			"Date[Date (LT)]",
			Format( "d/m/y", 22 ),
			Formula( Floor( :Name( "Date (LT)" ) / 86400 ) * 86400 )
		)
	),
	Mean( :Raw Conc. ),
	Freq( "None" ),
	Weight( "None" )
);

Graph Builder(
	Size( 514, 444 ),
	Show Control Panel( 0 ),
	Level Spacing Color( "White" ),
	Level Underline( 1 ),
	Page Level Fill Color( "Medium Light Gray" ),
	Page Level Frame Color( "Black" ),
	Page Level Underline( 0 ),
	Variables( X( :Name( "Date[Date (LT)]" ) ), Y( :Name( "Mean(Raw Conc.)" ) ) ),
	Elements( Bar( X, Y, Legend( 5 ) ) )
);

Graph Builder(
	Size( 514, 444 ),
	Show Control Panel( 0 ),
	Level Spacing Color( "White" ),
	Level Underline( 1 ),
	Page Level Fill Color( "Medium Light Gray" ),
	Page Level Frame Color( "Black" ),
	Page Level Underline( 0 ),
	Variables(
		X(
			Transform Column(
				"Year[Date[Date (LT)]]",
				Formula( Year( :Name( "Date[Date (LT)]" ) ) )
			)
		),
		Y( :Name( "Mean(Raw Conc.)" ) )
	),
	Elements( Bar( X, Y, Legend( 5 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Apr 2020 18:50:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262905#M51401</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2020-04-30T18:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a summary table (and scripts within) back to the original table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262910#M51403</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;.&amp;nbsp;I actually do use Project and I find it very helpful. However, I want to minimize the number of files that I save (in Project I need to save all of the tables separately if i want to use them later; let me know if there is a better way to handle it), that's why I was thinking about embedding the scripts into the original table so I save only one file instead of saving both the original and summary tables.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 18:55:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262910#M51403</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2020-04-30T18:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a summary table (and scripts within) back to the original table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262938#M51413</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/16275"&gt;@shasheminassab&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what i would do is give a name to the subset in the script, then send the graphs to the table as scripts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;subdt = Data Table( "Beijing PM2.5" ) &amp;lt;&amp;lt; Summary(
	Group(
		Transform Column(
			"Date[Date (LT)]",
			Format( "d/m/y", 22 ),
			Formula( Floor( :Name( "Date (LT)" ) / 86400 ) * 86400 )
		)
	),
	Mean( :Raw Conc. ),
	Freq( "None" ),
	Weight( "None" )
);

subdt &amp;lt;&amp;lt; new script ("Graph builder 1",
Graph Builder(
	Size( 514, 444 ),
	Show Control Panel( 0 ),
	Level Spacing Color( "White" ),
	Level Underline( 1 ),
	Page Level Fill Color( "Medium Light Gray" ),
	Page Level Frame Color( "Black" ),
	Page Level Underline( 0 ),
	Variables( X( :Name( "Date[Date (LT)]" ) ), Y( :Name( "Mean(Raw Conc.)" ) ) ),
	Elements( Bar( X, Y, Legend( 5 ) ) )
)
);
subdt &amp;lt;&amp;lt; new script ("Graph builder 2",
Graph Builder(
	Size( 514, 444 ),
	Show Control Panel( 0 ),
	Level Spacing Color( "White" ),
	Level Underline( 1 ),
	Page Level Fill Color( "Medium Light Gray" ),
	Page Level Frame Color( "Black" ),
	Page Level Underline( 0 ),
	Variables(
		X(
			Transform Column(
				"Year[Date[Date (LT)]]",
				Formula( Year( :Name( "Date[Date (LT)]" ) ) )
			)
		),
		Y( :Name( "Mean(Raw Conc.)" ) )
	),
	Elements( Bar( X, Y, Legend( 5 ) ) )
)
);


&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 19:56:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262938#M51413</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2020-04-30T19:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to save a summary table (and scripts within) back to the original table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262977#M51422</link>
      <description>&lt;P&gt;Great! That's exactly what I was looking for&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 22:21:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-a-summary-table-and-scripts-within-back-to-the/m-p/262977#M51422</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2020-04-30T22:21:04Z</dc:date>
    </item>
  </channel>
</rss>

