<?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: using the same script in multiple data tables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261699#M51248</link>
    <description>&lt;P&gt;So you have let say data table A, and you run a graph on it.&lt;/P&gt;
&lt;P&gt;You then copy and save that script to a different data table, lets say is called data table B, and you run it from the new data table, and you say that it goes back to data table A to get the data for the latest graph?&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2020 20:41:37 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-04-27T20:41:37Z</dc:date>
    <item>
      <title>using the same script in multiple data tables</title>
      <link>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261657#M51240</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am relatively new to JMP and have a "is this possible" question. I have 10 data tables that are identical in terms of columns and type of data, but have different values in each column as they are sorted by staff member. For the first person, I used graph builder to create 9 graphs. I saved the script to the data table as well as to the script window. My question is, since the columns are identical in each of the 10 data tables, can I run the script from the first data table to automatically create the same 9 graphs in the other 9 data tables? Or, do I need to rebuild the 9 graphs in each of the data tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 19:24:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261657#M51240</guid>
      <dc:creator>mhd7</dc:creator>
      <dc:date>2020-04-27T19:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: using the same script in multiple data tables</title>
      <link>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261663#M51242</link>
      <description>&lt;P&gt;Yes, this is possible. You could make one of the new tables the "active" table and run the script from the script editor window.&lt;/P&gt;
&lt;P&gt;Or you could copy the saved script from the data table and paste them into the new data tables and run that way.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 19:57:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261663#M51242</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2020-04-27T19:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: using the same script in multiple data tables</title>
      <link>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261687#M51244</link>
      <description>&lt;P&gt;You could also edit the table script, and put a very simple dialog box, that asks the users what data table to run the script on.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 20:10:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261687#M51244</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-27T20:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: using the same script in multiple data tables</title>
      <link>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261696#M51247</link>
      <description>&lt;P&gt;Thank you very much for your fast reply. When I copy the script for a graph and paste in "new script" it wants to pull from the original sheet. How do I tell it to run the variables within the current source and not from another table?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 20:28:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261696#M51247</guid>
      <dc:creator>mhd7</dc:creator>
      <dc:date>2020-04-27T20:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: using the same script in multiple data tables</title>
      <link>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261699#M51248</link>
      <description>&lt;P&gt;So you have let say data table A, and you run a graph on it.&lt;/P&gt;
&lt;P&gt;You then copy and save that script to a different data table, lets say is called data table B, and you run it from the new data table, and you say that it goes back to data table A to get the data for the latest graph?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 20:41:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261699#M51248</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-27T20:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: using the same script in multiple data tables</title>
      <link>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261700#M51249</link>
      <description>&lt;P&gt;Exactly!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 20:44:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261700#M51249</guid>
      <dc:creator>mhd7</dc:creator>
      <dc:date>2020-04-27T20:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: using the same script in multiple data tables</title>
      <link>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261704#M51250</link>
      <description>&lt;P&gt;Might need some more details then. Let me show you how/what I would do. I have two tables, Untitled and Untitled 2. Both tables have two columns named X and Y.&lt;/P&gt;
&lt;P&gt;In the Untitled table I created an analysis using Fit Y by X and saved the script to a data table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 409px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23509i98EDC7BA89ECB7E1/image-dimensions/409x368?v=v2" width="409" height="368" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;There should be nothing in this script that is specific to the data table.&lt;/P&gt;
&lt;P&gt;Now I right-click on the script in the table panel and choose copy.&lt;/P&gt;
&lt;P&gt;Switch over to Untitled 2. Go to the table panel, right-click and choose Paste.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 449px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23510i6623AAB933105AFB/image-dimensions/449x405?v=v2" width="449" height="405" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Clicking the green "run" triangle will provide the same graph on this new data table.&lt;/P&gt;
&lt;P&gt;So in order to best help, perhaps we will need to know about the script you are using since there must be SOMETHING that refers to that specific data table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 20:48:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261704#M51250</guid>
      <dc:creator>Dan_Obermiller</dc:creator>
      <dc:date>2020-04-27T20:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: using the same script in multiple data tables</title>
      <link>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261705#M51251</link>
      <description>please post the script so we can see what is in the data table that may be forcing it back to the original table</description>
      <pubDate>Mon, 27 Apr 2020 20:48:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261705#M51251</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-27T20:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: using the same script in multiple data tables</title>
      <link>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261711#M51252</link>
      <description>&lt;P&gt;Your example makes sense and it is what I would think would happen. I'll post the script below and some screen shots. Question: Does the source matter - can the two sheets come from different locations or should they all be in the same location(folder)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am copying script for "Training session by species" from "Kate" and pasting it to "Danielle":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mhd7_0-1588020865854.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23511iF1D6E811F8A0E1A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mhd7_0-1588020865854.png" alt="mhd7_0-1588020865854.png" /&gt;&lt;/span&gt;&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;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mhd7_2-1588021012325.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23515iB394357CAD4B5E65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mhd7_2-1588021012325.png" alt="mhd7_2-1588021012325.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it is showing up but when I hit "run" nothing happens (at least this time it did not take me back to "Kate's" sheet)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 20:58:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261711#M51252</guid>
      <dc:creator>mhd7</dc:creator>
      <dc:date>2020-04-27T20:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: using the same script in multiple data tables</title>
      <link>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261728#M51255</link>
      <description>&lt;P&gt;So, I just closed everything down, brought up the two reports and tried again - and it worked!! I guess I will have to blame this one on the computer this time around- though it is generally operator error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so very much for your fast responses!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 21:25:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/using-the-same-script-in-multiple-data-tables/m-p/261728#M51255</guid>
      <dc:creator>mhd7</dc:creator>
      <dc:date>2020-04-27T21:25:03Z</dc:date>
    </item>
  </channel>
</rss>

