<?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: Select Cell Color for Row Based on one Cell's Value in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85019#M38080</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;&amp;nbsp;I've tried that but it gives me red and blue and the blue is nearly impossible to read the text in each row.&amp;nbsp; I'd prefer a lighter color for one row condition and no color for the other.&amp;nbsp; I cannot figure out how to do that!&amp;nbsp; I've tried all manner of options.&amp;nbsp; Most I've deleted in exasperation so I can't include in my discussion.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Dec 2018 20:38:38 GMT</pubDate>
    <dc:creator>WendyLou315</dc:creator>
    <dc:date>2018-12-05T20:38:38Z</dc:date>
    <item>
      <title>Select Cell Color for Row Based on one Cell's Value</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85011#M38074</link>
      <description>&lt;P&gt;Hello JMP Discussions.&amp;nbsp; I think this is an easy one but everything I have researched and everything I have tried has failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to color all cells in a row based on the value found in a column of that row?&amp;nbsp; I want to select a color that is readable for selected row and leave ones that don't fit the criteria with default color.&amp;nbsp; If I use Color Rows by Row State the data is not readable using the default color scheme.&amp;nbsp; I need a table that will highlight the entire row when criteria is met.&amp;nbsp; Ex.&amp;nbsp; If Col_1 = 1 then color all of the cells in this row (Col_2, Col_3, Col_4, etc.) a light blue, otherwise, do nothing.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 19:07:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85011#M38074</guid>
      <dc:creator>WendyLou315</dc:creator>
      <dc:date>2018-12-05T19:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select Cell Color for Row Based on one Cell's Value</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85018#M38079</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Color by Column( :Age );
Wait( 2 );
dt &amp;lt;&amp;lt; Color Rows by Row State;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 20:35:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85018#M38079</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2018-12-05T20:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select Cell Color for Row Based on one Cell's Value</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85019#M38080</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;&amp;nbsp;I've tried that but it gives me red and blue and the blue is nearly impossible to read the text in each row.&amp;nbsp; I'd prefer a lighter color for one row condition and no color for the other.&amp;nbsp; I cannot figure out how to do that!&amp;nbsp; I've tried all manner of options.&amp;nbsp; Most I've deleted in exasperation so I can't include in my discussion.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 20:38:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85019#M38080</guid>
      <dc:creator>WendyLou315</dc:creator>
      <dc:date>2018-12-05T20:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select Cell Color for Row Based on one Cell's Value</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85023#M38081</link>
      <description>&lt;P&gt;perhaps try setting the colors manualy as such&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:age &amp;lt;&amp;lt; Set Property(

	"Value Colors", // assign the value colors

	{12 = Red, 13 = Yellow, 14 = Green, 15 = Blue, 16 = Magenta, 17 =

	Gray}

);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Dec 2018 21:19:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85023#M38081</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2018-12-05T21:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select Cell Color for Row Based on one Cell's Value</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85081#M38105</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/958"&gt;@ron_horne&lt;/a&gt;, Thanks for trying to help me out. However, I feel that I am not being clear.&amp;nbsp; What I'm looking for is the following based on the value in :RowColor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the whole row for RowColor = 1 to be light blue/Color(59)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP Question - Row Color.JPG" style="width: 439px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14717iBC169F190597B8FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMP Question - Row Color.JPG" alt="JMP Question - Row Color.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 14:52:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85081#M38105</guid>
      <dc:creator>WendyLou315</dc:creator>
      <dc:date>2018-12-06T14:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select Cell Color for Row Based on one Cell's Value</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85084#M38108</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Select Rows( dt &amp;lt;&amp;lt; Get Rows Where( :RowColor == 1 ) );

Rws = dt &amp;lt;&amp;lt; Get Selected Rows;
Rws = AsList(Rws);
dt &amp;lt;&amp;lt; Color Cells( Color(59), Rws );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Just tried this and the rows are selected but I cannot change the color of any cells using this code.&amp;nbsp; Trying to discover what step I'm missing as this is the logic I would follow to color the cells manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 15:10:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85084#M38108</guid>
      <dc:creator>WendyLou315</dc:creator>
      <dc:date>2018-12-06T15:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select Cell Color for Row Based on one Cell's Value</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85087#M38109</link>
      <description>&lt;P&gt;You have to color cell by cell.&amp;nbsp; Try this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = New Table( "test", Add Rows( 6 ),
	New Column( "Column 1", Numeric, "Continuous", Format( "Best", 12 ),
		Set Values( [0, 1, 1, 0, 1, 0] ) ),
	New Column( "Column 2", Character, "Nominal",
		Set Values( {"A", "B", "C", "D", "E", "F"} ) ),
	New Column( "Column 3", Character, "Nominal", 
		Set Values( {"G", "H", "I", "J", "K", "L"} ) )
);

// Make the rows light gray
light_gray = rgb color(200, 200, 200);

my_rows = dt &amp;lt;&amp;lt; get rows where(:Column 1 == 1);
my_row_list = as list(my_rows);
column_list = dt &amp;lt;&amp;lt; get column names(String);
for (i = 1, i &amp;lt;= nitems(column_list), i++,
	column(dt, column_list[i]) &amp;lt;&amp;lt; color cells(light_gray, my_row_list);
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Dec 2018 15:28:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85087#M38109</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-12-06T15:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select Cell Color for Row Based on one Cell's Value</title>
      <link>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85089#M38110</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4550"&gt;@pmroz&lt;/a&gt;!!!&amp;nbsp;That is what I had&amp;nbsp;missed!&amp;nbsp; All the other "For" statements I attempted previously didn't get me there.&amp;nbsp; Now I see where I went wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANK YOU, THANK YOU!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 15:40:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-Cell-Color-for-Row-Based-on-one-Cell-s-Value/m-p/85089#M38110</guid>
      <dc:creator>WendyLou315</dc:creator>
      <dc:date>2018-12-06T15:40:23Z</dc:date>
    </item>
  </channel>
</rss>

