<?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: JSL - Adding a Table to a Journal in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/29257#M19338</link>
    <description>&lt;P&gt;Here is a very simple script that does what you want:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

nw = New Window( "sample journal",
	&amp;lt;&amp;lt;journal, 

	ob = Outline Box( "Selection 1",
		Text Box( "this is some description", Markup( 1 ) ),
		dt &amp;lt;&amp;lt; New Data Box()
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 16 Nov 2016 17:50:21 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2016-11-16T17:50:21Z</dc:date>
    <item>
      <title>JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/29255#M19336</link>
      <description>&lt;P&gt;Another JSL question, I'm trying to put a table in Journal using JSL.&amp;nbsp; Here is what I am trying to do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;current_data_table &amp;lt;&amp;lt; New Data View;

// Creating the Journal

nw = New Window("Journal Right Here", &amp;lt;&amp;lt;Journal,
	ob = Outline Box("Section 1",
        Text Box("Some description that we need here.", &amp;lt;&amp;lt; Markup),
        Current Journal()[TableBox(current_data_table)]
    )
);&lt;/PRE&gt;&lt;P&gt;Everything seems to be working but the TableBox code... I am sure it is something easy but it is stumping me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 17:24:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/29255#M19336</guid>
      <dc:creator>drblove</dc:creator>
      <dc:date>2016-11-16T17:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/29257#M19338</link>
      <description>&lt;P&gt;Here is a very simple script that does what you want:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

nw = New Window( "sample journal",
	&amp;lt;&amp;lt;journal, 

	ob = Outline Box( "Selection 1",
		Text Box( "this is some description", Markup( 1 ) ),
		dt &amp;lt;&amp;lt; New Data Box()
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Nov 2016 17:50:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/29257#M19338</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-11-16T17:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/29259#M19340</link>
      <description>&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response. It works great.&amp;nbsp; Quick question through, when I go to the Journal is shows the table with rows and columns&amp;nbsp; that are completely empty (like an Excel spreadhseet) versus just the rows and column with headers.&amp;nbsp; Any solutions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 18:04:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/29259#M19340</guid>
      <dc:creator>drblove</dc:creator>
      <dc:date>2016-11-16T18:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/29260#M19341</link>
      <description>&lt;P&gt;The reason it displays empty cells, is because it is a view into an existing data table.&amp;nbsp; Here is another script that just adds a visual copy.&amp;nbsp; The script has to be a little tricky in it's method to place the data table view under the outline box.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

nw = New Window( "sample journal",
	&amp;lt;&amp;lt;journal, 

	ob = Outline Box( "Selection 1", 
		Text Box( "this is some description", Markup( 1 ) ), 
		hlb = H List Box() 
	)
);
xx = New Window( "xxx", &amp;lt;&amp;lt;journal );
dt &amp;lt;&amp;lt; journal;
hlb &amp;lt;&amp;lt; append( xx );
xx &amp;lt;&amp;lt; close window;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Nov 2016 18:21:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/29260#M19341</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-11-16T18:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/29264#M19344</link>
      <description>&lt;P&gt;Awesome!&amp;nbsp; Thank you so much for taking the time to reply, completely works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 18:43:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/29264#M19344</guid>
      <dc:creator>drblove</dc:creator>
      <dc:date>2016-11-16T18:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75508#M35937</link>
      <description>&lt;P&gt;Thanks for those last 4 lines.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 13:54:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75508#M35937</guid>
      <dc:creator>mann</dc:creator>
      <dc:date>2018-09-24T13:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75763#M35980</link>
      <description>Is it possible to append matrix to a display box without any for loop etc?</description>
      <pubDate>Tue, 25 Sep 2018 20:12:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75763#M35980</guid>
      <dc:creator>ram</dc:creator>
      <dc:date>2018-09-25T20:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75774#M35983</link>
      <description>&lt;P&gt;Append a matrix???&lt;/P&gt;
&lt;P&gt;A mathematical matrix....... a = [1,2,3 4,5,6] ?&lt;/P&gt;
&lt;P&gt;A matrix of text boxes?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 20:41:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75774#M35983</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-09-25T20:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75775#M35984</link>
      <description>Yes, A 2D matrix of numbers. I was thinking if it can be converted as a table, can it be directly append to a display box?&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 25 Sep 2018 20:56:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75775#M35984</guid>
      <dc:creator>ram</dc:creator>
      <dc:date>2018-09-25T20:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75797#M35989</link>
      <description>&lt;P&gt;This might work for you&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
myMatrix = [1 2 3, 4 5 6, 7 8 9];
nw=new window("test", vlb=vlistbox());
vlb&amp;lt;&amp;lt;append((as table(myMatrix))&amp;lt;&amp;lt; get as report);
close(current data table(), nosave);
(nw&amp;lt;&amp;lt;xpath("//NumberColBox"))&amp;lt;&amp;lt;set heading("");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Sep 2018 00:09:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75797#M35989</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-09-26T00:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75860#M36003</link>
      <description>&lt;P&gt;Actually, there is the matrix display box, too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
myMatrix = [1 2 3, 4 5 6, 7 8 9];
nw = New Window( "test", vlb = V List Box() );
vlb &amp;lt;&amp;lt; Append( Matrix Box( myMatrix ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Sep 2018 14:22:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75860#M36003</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-09-26T14:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75880#M36008</link>
      <description>Thank you</description>
      <pubDate>Wed, 26 Sep 2018 15:05:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75880#M36008</guid>
      <dc:creator>ram</dc:creator>
      <dc:date>2018-09-26T15:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75975#M36031</link>
      <description>Thank you</description>
      <pubDate>Wed, 26 Sep 2018 21:24:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/75975#M36031</guid>
      <dc:creator>ram</dc:creator>
      <dc:date>2018-09-26T21:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/215000#M42986</link>
      <description>&lt;P&gt;Is it possible to change font size for the table?&lt;/P&gt;&lt;P&gt;Here are my attempts but I can't seem to be able to have it actually make a change.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);

dt = Open("$sample_data/Big Class.jmp");

nw = New Window("Tables", &amp;lt;&amp;lt;Journal);


// Attempt 1
/*tableVBox = V List Box(&amp;lt;&amp;lt; Append (Data Table Box (dt) ));
tableVBox &amp;lt;&amp;lt; font("Times New Roman", 50);

nw &amp;lt;&amp;lt; Append ( Outline Box( "Big Class Table", tableBox ));*/


// Attempt 2
tableDTB = Data Table Box (dt);
tableDTB &amp;lt;&amp;lt; Optimize Display;

nw &amp;lt;&amp;lt; Append ( Outline Box( "Big Class Table", V List Box(&amp;lt;&amp;lt; Append (tableDTB )) ));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jun 2019 13:28:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/215000#M42986</guid>
      <dc:creator>Herrera5238</dc:creator>
      <dc:date>2019-06-27T13:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - Adding a Table to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/215003#M42989</link>
      <description>&lt;P&gt;The data table, when moved into a journal, is convered into a TableBox().&amp;nbsp; The only way that I know of to change the text size in a table box, is in the JMP Preferences.&amp;nbsp; However, that will change the text size for all areas within JMP, not just the table box.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 14:10:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Adding-a-Table-to-a-Journal/m-p/215003#M42989</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-06-27T14:10:01Z</dc:date>
    </item>
  </channel>
</rss>

