<?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: get main data table() in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774529#M95641</link>
    <description>&lt;P&gt;Ah, one can &lt;LI-MESSAGE title="talk to enhanced log" uid="774358" url="https://community.jmp.com/t5/Discussions/talk-to-enhanced-log/m-p/774358#U774358" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp; and ask there ...&lt;BR /&gt;Thanks,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;: )&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Anyway, a JSL function would be nice ...&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2024 10:44:55 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-07-22T10:44:55Z</dc:date>
    <item>
      <title>get main data table()</title>
      <link>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774346#M95603</link>
      <description>&lt;P&gt;For linked data tables (either summary tables or linked subsets), &amp;nbsp;&lt;STRONG&gt;CTRL + ALT + D&lt;/STRONG&gt;&amp;nbsp; or a click on&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1721487935404.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66340i26950A647BC5BAEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1721487935404.png" alt="hogi_0-1721487935404.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;will take me to the "main" table&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is very convenient. Great that JMP is willing to share this knowledge.&lt;BR /&gt;To make the most of it:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Is there a JSL function to get the main table?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As of JMP18, there is a new function called&lt;FONT face="courier new,courier"&gt; is linked subset()&lt;/FONT&gt; that can be used to check if a data table is a linked subset.&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/619442/highlight/true#M81884" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/619442/highlight/true#M81884&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to the fact that this function is brand new, I am afraid that the answer to the posted question is:&lt;/P&gt;&lt;P&gt;No ...&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Application Case:&lt;/STRONG&gt;&lt;BR /&gt;Just imagine how often you generate a report from a summary table - and then face the difficulty how to save the script.&lt;BR /&gt;Actually, it's just a combination of&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) the source script for the summary table&lt;/P&gt;&lt;P&gt;b) the source script of the report&lt;BR /&gt;but it requires ~ 20 mouse clicks to save the combined script to the main table.&lt;BR /&gt;&lt;BR /&gt;If there is a way to get the main table - all this could be triggered by a single click on a toolbar. cool!&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jul 2024 15:53:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774346#M95603</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-07-20T15:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: get main data table()</title>
      <link>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774369#M95605</link>
      <description>&lt;P&gt;If you are scripting you should know the references, there is also &amp;lt;&amp;lt; Get Data Table() for reports.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
gb = Graph Builder(
	Variables(X(:height), Y(:weight)),
	Elements(Points(X, Y), Smoother(X, Y))
);

dt_ref = gb &amp;lt;&amp;lt; get data table();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you wish to have the script in the original data table, you would use Save Script to Source Table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1721490087159.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66343i134BE778BF222A9B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1721490087159.png" alt="jthi_0-1721490087159.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jul 2024 15:41:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774369#M95605</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-20T15:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: get main data table()</title>
      <link>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774371#M95607</link>
      <description>&lt;P&gt;Hm,&lt;BR /&gt;unfortunately, &lt;FONT face="courier new,courier"&gt;&amp;lt;&amp;lt; get data table()&lt;/FONT&gt; just seem to work for reports (like you say) , but not for linked summary tables and subsets (what I need) :&lt;/P&gt;&lt;P&gt;same mouse click on the GUI , but JSL is not 1:1:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dtsummary = dt &amp;lt;&amp;lt; Summary(Group( :height ));
dtsub = dt&amp;lt;&amp;lt; Subset( All rows, Selected columns only( 0 ) );

maintable = dtsummary &amp;lt;&amp;lt; get data table(); // doesn't work
maintable = dtsub &amp;lt;&amp;lt; get data table(); // doesn't work&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;CODE class=" language-jsl"&gt;so:&amp;nbsp;no?&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jul 2024 15:49:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774371#M95607</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-07-20T15:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: get main data table()</title>
      <link>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774435#M95621</link>
      <description>&lt;P&gt;For interactive usage you would use Workflow builder (or enhanced log) to make it fairly simple. For scripting, currently, you would have to parse Source Script or Linked Subset table variable (doesn't exist for Summary) if you don't want to utilize references. There should be &amp;lt;&amp;lt; Get Original Data Table (should have been added when &amp;lt;&amp;lt; Is Linked Subset was added) but currently we don't have one.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2024 15:55:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774435#M95621</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-21T15:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: get main data table()</title>
      <link>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774436#M95622</link>
      <description>&lt;P&gt;Agree, here is the wish:&amp;nbsp;&lt;LI-MESSAGE title="message: get data table() ... for linked summary and subset tables" uid="774375" url="https://community.jmp.com/t5/JMP-Wish-List/message-get-data-table-for-linked-summary-and-subset-tables/m-p/774375#U774375" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, maybe: "get original data table". Let's see which name developers will pick ...&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2024 17:29:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774436#M95622</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-07-21T17:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: get main data table()</title>
      <link>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774438#M95623</link>
      <description>&lt;P&gt;Original Data Table is the name which is used in both Summary and Subset platforms as the named parameter is "Link to original data table", so I think it would be nice to have some consistency (main data table could be other option but then all the original data tables should be updated), but we will see.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/create-a-subset-data-table.shtml" target="_blank"&gt;https://www.jmp.com/support/help/en/18.0/#page/jmp/create-a-subset-data-table.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_0-1721583498111.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66352i8039588D6BBC4ED3/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1721583498111.png" alt="jthi_0-1721583498111.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2024 17:39:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774438#M95623</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-21T17:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: get main data table()</title>
      <link>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774529#M95641</link>
      <description>&lt;P&gt;Ah, one can &lt;LI-MESSAGE title="talk to enhanced log" uid="774358" url="https://community.jmp.com/t5/Discussions/talk-to-enhanced-log/m-p/774358#U774358" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp; and ask there ...&lt;BR /&gt;Thanks,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;: )&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Anyway, a JSL function would be nice ...&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 10:44:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/get-main-data-table/m-p/774529#M95641</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-07-22T10:44:55Z</dc:date>
    </item>
  </channel>
</rss>

