<?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 Datatable script to get data on the original datatable in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Datatable-script-to-get-data-on-the-original-datatable/m-p/410509#M66021</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created an empty datatable and a script in it. The script gets data from the database, but it will open a new datatable for the data.&lt;/P&gt;&lt;P&gt;Is it possible and how to open the data in the original datatable which has the script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The JMP version used 15.2 is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:35:40 GMT</pubDate>
    <dc:creator>jueefo</dc:creator>
    <dc:date>2023-06-10T23:35:40Z</dc:date>
    <item>
      <title>Datatable script to get data on the original datatable</title>
      <link>https://community.jmp.com/t5/Discussions/Datatable-script-to-get-data-on-the-original-datatable/m-p/410509#M66021</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created an empty datatable and a script in it. The script gets data from the database, but it will open a new datatable for the data.&lt;/P&gt;&lt;P&gt;Is it possible and how to open the data in the original datatable which has the script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The JMP version used 15.2 is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:35:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Datatable-script-to-get-data-on-the-original-datatable/m-p/410509#M66021</guid>
      <dc:creator>jueefo</dc:creator>
      <dc:date>2023-06-10T23:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Datatable script to get data on the original datatable</title>
      <link>https://community.jmp.com/t5/Discussions/Datatable-script-to-get-data-on-the-original-datatable/m-p/410675#M66034</link>
      <description>&lt;P&gt;Is there a reason you want the original script in a datatable?&amp;nbsp; You could save your script as a .jsl file and have that open the new data and add any new columns/scripts to it.&amp;nbsp; You can also have the script run automatically and close itself after the table is created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is another reason to run it from a table, you can concatenate or join the new data back to your original table.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtCurrent = Current Data Table();

dtNew = Open( .. some database query ..);

dtCurrent &amp;lt;&amp;lt; Concatenate( dtNew, Append to first table );

dtNew&amp;nbsp;&amp;lt;&amp;lt; Close&amp;nbsp;Window;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Aug 2021 20:19:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Datatable-script-to-get-data-on-the-original-datatable/m-p/410675#M66034</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-08-17T20:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Datatable script to get data on the original datatable</title>
      <link>https://community.jmp.com/t5/Discussions/Datatable-script-to-get-data-on-the-original-datatable/m-p/410747#M66040</link>
      <description>&lt;P&gt;Thanks, that works!&lt;BR /&gt;&lt;BR /&gt;The question why to use a datatable instead of the .jsl file is very good. And I do not have a good answer. I am just starting with jsl-scripts, so I might be using not so good methods. I will rethink how to do this.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 05:03:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Datatable-script-to-get-data-on-the-original-datatable/m-p/410747#M66040</guid>
      <dc:creator>jueefo</dc:creator>
      <dc:date>2021-08-18T05:03:41Z</dc:date>
    </item>
  </channel>
</rss>

