<?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 How to change table/report style in my JSL scripts? I know how to do it in JMP Preference settings. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/74957#M35884</link>
    <description>&lt;P&gt;How to change table/report style in my JSL scripts? I know how to do it in JMP Preference settings: File-Preference-Style. But I need to change the preference settings within my own JSL scripts. Is it possible? For example, I like to change&amp;nbsp;Shade Alternate Table Rows( 0 ) to&amp;nbsp;Shade Alternate Table Rows( 1 ), how to do it in JSL?&lt;/P&gt;</description>
    <pubDate>Fri, 21 Sep 2018 19:22:21 GMT</pubDate>
    <dc:creator>zxu11</dc:creator>
    <dc:date>2018-09-21T19:22:21Z</dc:date>
    <item>
      <title>How to change table/report style in my JSL scripts? I know how to do it in JMP Preference settings.</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/74957#M35884</link>
      <description>&lt;P&gt;How to change table/report style in my JSL scripts? I know how to do it in JMP Preference settings: File-Preference-Style. But I need to change the preference settings within my own JSL scripts. Is it possible? For example, I like to change&amp;nbsp;Shade Alternate Table Rows( 0 ) to&amp;nbsp;Shade Alternate Table Rows( 1 ), how to do it in JSL?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 19:22:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/74957#M35884</guid>
      <dc:creator>zxu11</dc:creator>
      <dc:date>2018-09-21T19:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to change table/report style in my JSL scripts? I know how to do it in JMP Preference settin</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/74993#M35889</link>
      <description>&lt;P&gt;The answer to this is found in the Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index==&amp;gt;Table Box&lt;/P&gt;
&lt;P&gt;Here is the example from the entry for the message, "Set Shade Alternate Rows"&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Mountains",
	tb = Table Box(
		String Col Box( "Mountain",
			{"K2", "Delphi", "Kilimanjaro",
			"Grand Teton"}
		),
		Number Col Box( "Elevation (meters)",
			{8611, 681, 5895, 4199}
		),
		Plot Col Box( "", {8611, 681, 5895, 4199} )
	)
);
tb &amp;lt;&amp;lt; Set Shade Alternate Rows( 1 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Sep 2018 22:11:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/74993#M35889</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-09-21T22:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to change table/report style in my JSL scripts? I know how to do it in JMP Preference settin</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/75125#M35899</link>
      <description>&lt;P&gt;It seems not working for me. Here is my script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dt=current data table();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rpt=dt&amp;lt;&amp;lt;get as report;&lt;/P&gt;&lt;P&gt;rpt&amp;lt;&amp;lt; Set Shade Alternate Table Rows(1);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rpt output table has nothing changed in its style.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 05:23:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/75125#M35899</guid>
      <dc:creator>zxu11</dc:creator>
      <dc:date>2018-09-22T05:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to change table/report style in my JSL scripts? I know how to do it in JMP Preference settin</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/75151#M35902</link>
      <description>&lt;P&gt;The "&amp;lt;&amp;lt; set shade alternate rows( 1 )" message, needs to be pointed at a specific Table Box().&amp;nbsp; In your script you could specify to change the first table box in the report output with the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rpt[Tablebox(1)]&amp;lt;&amp;lt; Set Shade Alternate  Rows(1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Using this method, you can selectively choose which tables to change.&lt;/P&gt;
&lt;P&gt;If you want all tables in the report output to be changed, you can use the Xpath fuction to find all Table Box()s and then apply the change&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;( rep &amp;lt;&amp;lt; xpath(  "//TableBox" ) ) &amp;lt;&amp;lt; Set Shade Alternate Rows( 1 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Sep 2018 13:07:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/75151#M35902</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-09-22T13:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to change table/report style in my JSL scripts? I know how to do it in JMP Preference settin</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/75228#M35907</link>
      <description>&lt;P&gt;Both ways:&lt;/P&gt;&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;rpt&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Tablebox&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt; Set Shade Alternate  Rows&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; rep &lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt; xpath&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;  &lt;SPAN class="token string"&gt;"//TableBox"&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt; Set Shade Alternate Rows&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;don't work neither (the report output is just blank/empty). When in JMP, after the report/layout table is generated, I can just right click anywhere inside the tabl, then select which table style(s) to use. But I just don't know how to do it in JSL.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 21:50:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/75228#M35907</guid>
      <dc:creator>zxu11</dc:creator>
      <dc:date>2018-09-22T21:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to change table/report style in my JSL scripts? I know how to do it in JMP Preference settin</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/75271#M35909</link>
      <description>&lt;P&gt;Here is an example with the addition of the suggested line of code, that shows what I am talking about.&amp;nbsp; Does this help you at all?&amp;nbsp; If not, can you share your script so I can better see what you are doing.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
jmp_report =
New Window( "Big Class",
	Text Box( "Big Class" ),
	H List Box(
		Outline Box( "Big Class",
			rpt = dt &amp;lt;&amp;lt; Get As Report
		)
	),

);
rpt[Tablebox(1)]&amp;lt;&amp;lt; Set Shade Alternate  Rows(1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 02:35:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/75271#M35909</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-09-23T02:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to change table/report style in my JSL scripts? I know how to do it in JMP Preference settin</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/75584#M35950</link>
      <description>&lt;P&gt;It works perfectly! Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 17:23:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-change-table-report-style-in-my-JSL-scripts-I-know-how-to/m-p/75584#M35950</guid>
      <dc:creator>zxu11</dc:creator>
      <dc:date>2018-09-24T17:23:55Z</dc:date>
    </item>
  </channel>
</rss>

