<?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: Script to automatically save all data tables and reports in a JMP project to the contents in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Script-to-automatically-save-all-data-tables-and-reports-in-a/m-p/930775#M108769</link>
    <description>&lt;P&gt;And, for clarity, it does differentiate between them.&amp;nbsp; You can send the &amp;lt;&amp;lt;Get Window Title message to verify this.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Feb 2026 19:50:30 GMT</pubDate>
    <dc:creator>mmarchandFSLR</dc:creator>
    <dc:date>2026-02-12T19:50:30Z</dc:date>
    <item>
      <title>Script to automatically save all data tables and reports in a JMP project to the contents</title>
      <link>https://community.jmp.com/t5/Discussions/Script-to-automatically-save-all-data-tables-and-reports-in-a/m-p/930471#M108747</link>
      <description>&lt;P&gt;I currently have the below static script that saves specific reports and tables to the project contents by name. I'd like to generalize this to a script that will do this for any project, so names would have to be dynamically generated and passed through a save function. I've played around a bit and haven't gotten close yet - help is appreciated&lt;/P&gt;
&lt;P&gt;This is the script that currently works on fixed table names. It is run in a workflow embedded in the same project as all the tables and reports. For reports I would always want the embed to be set to 0:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;proj = Current Data Table() &amp;lt;&amp;lt; Get Project();

proj &amp;lt;&amp;lt; Run Script(
	
	Data Table("plate_data_long") &amp;lt;&amp;lt; Save As("$PROJECT/plate_data_long.jmp");
	Data Table("plate_data_wide") &amp;lt;&amp;lt; Save As("$PROJECT/plate_data_wide.jmp");
	Data Table("Summarized by PC Plate_well and Process") &amp;lt;&amp;lt; Save As("$PROJECT/Summarized by PC Plate_well and Process.jmp");
	Window ("Assay Plate Value Heatmap") &amp;lt;&amp;lt; Save Window Report( "$PROJECT/Assay Plate Value Heatmap.jrp", embed data( 0 ) );
	Window ("Controls and Parent QC") &amp;lt;&amp;lt; Save Window Report( "$PROJECT/Controls and Parent QC.jrp", embed data( 0 ) );
	Window ("Assay Plate Value Heatmap") &amp;lt;&amp;lt; Save Window Report( "$PROJECT/Assay Plate Value Heatmap.jrp", embed data( 0 ) )
	;
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Feb 2026 18:12:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-to-automatically-save-all-data-tables-and-reports-in-a/m-p/930471#M108747</guid>
      <dc:creator>Stefan_Moser</dc:creator>
      <dc:date>2026-02-11T18:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script to automatically save all data tables and reports in a JMP project to the contents</title>
      <link>https://community.jmp.com/t5/Discussions/Script-to-automatically-save-all-data-tables-and-reports-in-a/m-p/930527#M108750</link>
      <description>&lt;P&gt;You can get list of data table names by using Get Data Table List&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;tablenames = Get Data Table List() &amp;lt;&amp;lt; get name;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Report windows with Get Window List&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;reportwindows = Get&amp;nbsp;Window&amp;nbsp;List(Type("Reports"));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can then loop over them using For Each.&lt;/P&gt;
&lt;P&gt;Check both of those from Scripting Index as they support Project argument which you might have to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: fixed command or report windows&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 20:56:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-to-automatically-save-all-data-tables-and-reports-in-a/m-p/930527#M108750</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-02-11T20:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script to automatically save all data tables and reports in a JMP project to the contents</title>
      <link>https://community.jmp.com/t5/Discussions/Script-to-automatically-save-all-data-tables-and-reports-in-a/m-p/930728#M108764</link>
      <description>&lt;P&gt;Thanks Jarmo - any clue why the second function isn't actually returning the report I have in the project? The first function works as expected for the data tables.&lt;BR /&gt;&lt;BR /&gt;Snapshot of project windows:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stefan_Moser_1-1770919506613.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/93801i66025524AF9811FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Stefan_Moser_1-1770919506613.png" alt="Stefan_Moser_1-1770919506613.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Log showing that the below doesn't return the report&lt;/P&gt;
&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;reportwindows = Get Window List(Type("Reports"));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stefan_Moser_2-1770919621161.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/93802i2FEABB61B04F5FAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Stefan_Moser_2-1770919621161.png" alt="Stefan_Moser_2-1770919621161.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Adding a second report shows that the displaybox/headbox doesn't differentiate between multiple reports:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stefan_Moser_3-1770919711375.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/93803iD2F181FA72074E31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Stefan_Moser_3-1770919711375.png" alt="Stefan_Moser_3-1770919711375.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 18:08:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-to-automatically-save-all-data-tables-and-reports-in-a/m-p/930728#M108764</guid>
      <dc:creator>Stefan_Moser</dc:creator>
      <dc:date>2026-02-12T18:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script to automatically save all data tables and reports in a JMP project to the contents</title>
      <link>https://community.jmp.com/t5/Discussions/Script-to-automatically-save-all-data-tables-and-reports-in-a/m-p/930740#M108766</link>
      <description>&lt;P&gt;Those are the report windows.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 18:34:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-to-automatically-save-all-data-tables-and-reports-in-a/m-p/930740#M108766</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-02-12T18:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Script to automatically save all data tables and reports in a JMP project to the contents</title>
      <link>https://community.jmp.com/t5/Discussions/Script-to-automatically-save-all-data-tables-and-reports-in-a/m-p/930775#M108769</link>
      <description>&lt;P&gt;And, for clarity, it does differentiate between them.&amp;nbsp; You can send the &amp;lt;&amp;lt;Get Window Title message to verify this.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 19:50:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Script-to-automatically-save-all-data-tables-and-reports-in-a/m-p/930775#M108769</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2026-02-12T19:50:30Z</dc:date>
    </item>
  </channel>
</rss>

