<?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: On Open script to save file in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/On-Open-script-to-save-file/m-p/796835#M97280</link>
    <description>&lt;P&gt;You could have a script which does all this, so no need to utilize On Open&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Open your table&lt;/LI&gt;
&lt;LI&gt;perform sql query&lt;/LI&gt;
&lt;LI&gt;Update the table&lt;/LI&gt;
&lt;LI&gt;create charts&lt;/LI&gt;
&lt;LI&gt;save charts&lt;/LI&gt;
&lt;LI&gt;and close everything&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You can have JSL script which auto-executes if you start it with //!&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/run-a-script.shtml" target="_blank"&gt;https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/run-a-script.shtml&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Sun, 08 Sep 2024 15:07:01 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-09-08T15:07:01Z</dc:date>
    <item>
      <title>On Open script to save file</title>
      <link>https://community.jmp.com/t5/Discussions/On-Open-script-to-save-file/m-p/796549#M97269</link>
      <description>&lt;P&gt;I'm pretty new to JMP scripting.&amp;nbsp; Here's what I'm attempting to do.&lt;BR /&gt;When I open a .jmp file, I have an On Open script.&amp;nbsp; This opens a datatable, generates a control chart, and saves the chart to an HTML file.&lt;BR /&gt;&lt;BR /&gt;I'm getting this message.&amp;nbsp; Is there any way to bypass this message?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-09-07 142605.png" style="width: 363px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68020iAB30AD41D1365137/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-09-07 142605.png" alt="Screenshot 2024-09-07 142605.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2024 18:29:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/On-Open-script-to-save-file/m-p/796549#M97269</guid>
      <dc:creator>MartinFletcher</dc:creator>
      <dc:date>2024-09-07T18:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: On Open script to save file</title>
      <link>https://community.jmp.com/t5/Discussions/On-Open-script-to-save-file/m-p/796561#M97270</link>
      <description>&lt;P&gt;Is there some specific reason why the control chart is saved with On Open script instead of when the table is created/updated?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Tables there is Evaluate OnOpen Script preference you could change but I would &lt;STRONG&gt;NEVER&lt;/STRONG&gt; set it to Always instead of Prompt (I think it should even be set as Never) as there could be pretty bad issues caused by it&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1725734740700.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68021i610091A47A27EB34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1725734740700.png" alt="jthi_0-1725734740700.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/preferences-for-data-tables.shtml" target="_blank"&gt;https://www.jmp.com/support/help/en/18.0/#page/jmp/preferences-for-data-tables.shtml&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1725734835373.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/68022i9378A6F6DA3B5901/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_1-1725734835373.png" alt="jthi_1-1725734835373.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2024 18:48:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/On-Open-script-to-save-file/m-p/796561#M97270</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-07T18:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: On Open script to save file</title>
      <link>https://community.jmp.com/t5/Discussions/On-Open-script-to-save-file/m-p/796562#M97271</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; I tried this, same results :(&lt;/img&gt;&lt;BR /&gt;As for the reason, I'm trying to automate generating many of these where the chart output file will be presented on display boards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end I want the On Open script connect to an SQL database, pull the new values into the datatable, create the charts, save the chart to file, close all automatically by just launching the jmp file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there is a better way?&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2024 19:04:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/On-Open-script-to-save-file/m-p/796562#M97271</guid>
      <dc:creator>MartinFletcher</dc:creator>
      <dc:date>2024-09-07T19:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: On Open script to save file</title>
      <link>https://community.jmp.com/t5/Discussions/On-Open-script-to-save-file/m-p/796835#M97280</link>
      <description>&lt;P&gt;You could have a script which does all this, so no need to utilize On Open&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Open your table&lt;/LI&gt;
&lt;LI&gt;perform sql query&lt;/LI&gt;
&lt;LI&gt;Update the table&lt;/LI&gt;
&lt;LI&gt;create charts&lt;/LI&gt;
&lt;LI&gt;save charts&lt;/LI&gt;
&lt;LI&gt;and close everything&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You can have JSL script which auto-executes if you start it with //!&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/run-a-script.shtml" target="_blank"&gt;https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/run-a-script.shtml&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2024 15:07:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/On-Open-script-to-save-file/m-p/796835#M97280</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-09-08T15:07:01Z</dc:date>
    </item>
  </channel>
</rss>

