<?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: How do I get only the rows of a data table (without headers) into a journal with JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-get-only-the-rows-of-a-data-table-without-headers-into/m-p/623841#M82272</link>
    <description>&lt;P&gt;This bit of code will do it, but is there a more elegant solution? It makes the header dissapear only on the last table in the journal.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;current data table() &amp;lt;&amp;lt; journal;
current data table() &amp;lt;&amp;lt; journal;
current data table() &amp;lt;&amp;lt; journal;
TableNumber = n items(Current Journal() &amp;lt;&amp;lt;xpath("//TableBox"));
boxes = Current Journal()[TableBox(TableNumber)] &amp;lt;&amp;lt;xpath("//StringColBox");
For(i=1, i&amp;lt;= nitems(boxes), i++,
	boxes[i] &amp;lt;&amp;lt; set heading("")
);
boxes = Current Journal()[TableBox(TableNumber)] &amp;lt;&amp;lt;xpath("//NumberColBox");
For(i=1, i&amp;lt;= nitems(boxes), i++,
	boxes[i] &amp;lt;&amp;lt; set heading("")
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 13:21:52 GMT</pubDate>
    <dc:creator>pauldeen</dc:creator>
    <dc:date>2023-04-19T13:21:52Z</dc:date>
    <item>
      <title>How do I get only the rows of a data table (without headers) into a journal with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-only-the-rows-of-a-data-table-without-headers-into/m-p/623840#M82271</link>
      <description>&lt;P&gt;At the end of a scripted analysis I would like to get my datatable into the journal. Since it is a template file import from excel, the column names are meaningless so I would like to not see those in the journal. Any way to dump just the rows and column contents, without the column names into the journal?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:08:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-only-the-rows-of-a-data-table-without-headers-into/m-p/623840#M82271</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2023-06-09T16:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get only the rows of a data table (without headers) into a journal with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-only-the-rows-of-a-data-table-without-headers-into/m-p/623841#M82272</link>
      <description>&lt;P&gt;This bit of code will do it, but is there a more elegant solution? It makes the header dissapear only on the last table in the journal.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;current data table() &amp;lt;&amp;lt; journal;
current data table() &amp;lt;&amp;lt; journal;
current data table() &amp;lt;&amp;lt; journal;
TableNumber = n items(Current Journal() &amp;lt;&amp;lt;xpath("//TableBox"));
boxes = Current Journal()[TableBox(TableNumber)] &amp;lt;&amp;lt;xpath("//StringColBox");
For(i=1, i&amp;lt;= nitems(boxes), i++,
	boxes[i] &amp;lt;&amp;lt; set heading("")
);
boxes = Current Journal()[TableBox(TableNumber)] &amp;lt;&amp;lt;xpath("//NumberColBox");
For(i=1, i&amp;lt;= nitems(boxes), i++,
	boxes[i] &amp;lt;&amp;lt; set heading("")
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 13:21:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-only-the-rows-of-a-data-table-without-headers-into/m-p/623841#M82272</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2023-04-19T13:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get only the rows of a data table (without headers) into a journal with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-only-the-rows-of-a-data-table-without-headers-into/m-p/623885#M82276</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$sample_data/big class.jmp" );
table = dt &amp;lt;&amp;lt; GetAsReport;
(table &amp;lt;&amp;lt; XPath( "//TableBox/*" )) &amp;lt;&amp;lt; SetHeading( "" );
table &amp;lt;&amp;lt; Journal;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Extending your idea: Use GetAsReport to operate on the tree before journaling it. Then broadcast the SetHeading to all the table box children that XPath returns. Table is a display box tree that can be used in a NewWindow(...) or journaled.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Add a table to a journal without the column headers." style="width: 277px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52089i36D990E4F89500F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="Add a table to a journal without the column headers." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Add a table to a journal without the column headers.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 14:44:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-only-the-rows-of-a-data-table-without-headers-into/m-p/623885#M82276</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-04-19T14:44:34Z</dc:date>
    </item>
  </channel>
</rss>

