<?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 Row Color in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Row-Color/m-p/593629#M79755</link>
    <description>&lt;P&gt;Thank you for your assistance&lt;/P&gt;&lt;P&gt;Actually, this is a perfect way for what I wanted to do.&lt;/P&gt;&lt;P&gt;But I want to color all rows as I have shown in the first print screen&lt;/P&gt;&lt;P&gt;Can you tell me how I can do it by script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Table("BIN PARETO") &amp;lt;&amp;lt; Select Rows &amp;lt;&amp;lt; Select where (:"SOFT_BIN" &amp;lt; 3) &amp;lt;&amp;lt; Colors("Light YellowGreen");&lt;BR /&gt;Data Table("BIN PARETO") &amp;lt;&amp;lt; Select Rows &amp;lt;&amp;lt; Select where (:"SOFT_BIN" &amp;gt; 2) &amp;lt;&amp;lt; Colors("Light Red");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dennisbur_0-1674752267708.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49470iF34CA21ED51394E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dennisbur_0-1674752267708.png" alt="Dennisbur_0-1674752267708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 17:01:06 GMT</pubDate>
    <dc:creator>Dennisbur</dc:creator>
    <dc:date>2023-01-26T17:01:06Z</dc:date>
    <item>
      <title>JSL Row Color</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Row-Color/m-p/593569#M79748</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have written the script in JSL, and the last point is to color row by&amp;nbsp;SOFT_BIN&lt;/P&gt;&lt;P&gt;IF&amp;nbsp;SOFT_BIN = 1 OR 2 &amp;gt;&amp;gt; Color all rows in Green&lt;/P&gt;&lt;P&gt;OTHER rows &amp;gt;&amp;gt; Color in Red&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dennisbur_0-1674745938869.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49462iE525AF1DB29F4E33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dennisbur_0-1674745938869.png" alt="Dennisbur_0-1674745938869.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the second question is,&lt;/P&gt;&lt;P&gt;It's not exactly Red or Green color&lt;/P&gt;&lt;P&gt;I have attached the print screen where I chose the colors,&lt;/P&gt;&lt;P&gt;but how I can know the index of this color and use the shade of color it in the script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dennisbur_1-1674746150685.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49463i6310D30411D7E978/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dennisbur_1-1674746150685.png" alt="Dennisbur_1-1674746150685.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:40:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Row-Color/m-p/593569#M79748</guid>
      <dc:creator>Dennisbur</dc:creator>
      <dc:date>2023-06-08T16:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Row Color</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Row-Color/m-p/593600#M79751</link>
      <description>&lt;P&gt;There are quite a few different options, but one quick one is to color the rows by selecting some of the rows and right clicking on row number&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1674748051741.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49464iEDDD4149C5EBBEDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1674748051741.png" alt="jthi_0-1674748051741.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then select the color you are interested in. If you have JMP16+ and Enhanced Log enabled you can find the color there&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Set selected rows' colors
Data Table("Big Class") &amp;lt;&amp;lt; Clear Select &amp;lt;&amp;lt; Select Rows([1, 2]) &amp;lt;&amp;lt;
Colors("Light YellowGreen");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could also set the same color as Value Colors column property and get it from enhanced log OR by copying column properties&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1674748263853.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49466i580CA3E6CFA862A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1674748263853.png" alt="jthi_1-1674748263853.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Add Column Properties(
	Set Property("Notes", "Explore data adventurously"),
	Set Property("Value Colors", {"F" = 76, "M" = -4354269})
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This can also be helpful &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/row-states.shtml" target="_self"&gt; Scripting Guide &amp;gt; Data Tables &amp;gt; Work with Rows &amp;gt; Row States&lt;/A&gt; (see Colors and Markers part) and Mark's &lt;LI-MESSAGE title="Utility to Explore JMP Color Values" uid="24149" url="https://community.jmp.com/t5/JMP-Scripts/Utility-to-Explore-JMP-Color-Values/m-p/24149#U24149" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 15:52:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Row-Color/m-p/593600#M79751</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-01-26T15:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Row Color</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Row-Color/m-p/593629#M79755</link>
      <description>&lt;P&gt;Thank you for your assistance&lt;/P&gt;&lt;P&gt;Actually, this is a perfect way for what I wanted to do.&lt;/P&gt;&lt;P&gt;But I want to color all rows as I have shown in the first print screen&lt;/P&gt;&lt;P&gt;Can you tell me how I can do it by script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Table("BIN PARETO") &amp;lt;&amp;lt; Select Rows &amp;lt;&amp;lt; Select where (:"SOFT_BIN" &amp;lt; 3) &amp;lt;&amp;lt; Colors("Light YellowGreen");&lt;BR /&gt;Data Table("BIN PARETO") &amp;lt;&amp;lt; Select Rows &amp;lt;&amp;lt; Select where (:"SOFT_BIN" &amp;gt; 2) &amp;lt;&amp;lt; Colors("Light Red");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dennisbur_0-1674752267708.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49470iF34CA21ED51394E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dennisbur_0-1674752267708.png" alt="Dennisbur_0-1674752267708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 17:01:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Row-Color/m-p/593629#M79755</guid>
      <dc:creator>Dennisbur</dc:creator>
      <dc:date>2023-01-26T17:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Row Color</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Row-Color/m-p/593876#M79774</link>
      <description>&lt;P&gt;Coloring cells seems to be bit more work as you might have to loop over all columns, but this should work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

m_rows = dt &amp;lt;&amp;lt; Get Rows Where(:sex == "M");
f_rows = dt &amp;lt;&amp;lt; Get Rows Where(:sex == "F");

For Each({col}, dt &amp;lt;&amp;lt; Get Column Names("String"),
	Column(dt, col) &amp;lt;&amp;lt; Color Cells({{"Orange", m_rows}, {"Blue", f_rows}});
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Jan 2023 05:27:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Row-Color/m-p/593876#M79774</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-01-27T05:27:40Z</dc:date>
    </item>
  </channel>
</rss>

