<?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: Change the text color of a single cell in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Change-the-text-color-of-a-single-cell/m-p/67478#M34624</link>
    <description>&lt;P&gt;The changing the font color in a JMP data table is not available.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Aug 2018 10:21:26 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-08-10T10:21:26Z</dc:date>
    <item>
      <title>Change the text color of a single cell</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-text-color-of-a-single-cell/m-p/67477#M34623</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a script that looks at the data table DLD and then populates the data table CK with several rows of Pass/Fail. What I'd like it to do is for pass have the cell background color be green with black font and for fail have red cell background with white font. The color cells command is working fine, but I've been unable to find a syntax for changing font color that works after trying several things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;		If(
			And(
				DLD:Current[1] &amp;gt;= DLD:LSL[1]
			,
				DLD:Current[1] &amp;lt;= DLD:USL[1]
			)
		,
			CK:PF[1] = "Pass";
			CK:PF &amp;lt;&amp;lt; color cells(RGB Color( 0, 250, 0 ),{1});
		,
			CK:PF[1] = "Fail";
			CK:PF &amp;lt;&amp;lt; color cells(RGB Color( 250, 0, 0 ),{1});
			CK:PF[1] &amp;lt;&amp;lt; Format(Text Color("White"));		
		);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Aug 2018 10:01:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-text-color-of-a-single-cell/m-p/67477#M34623</guid>
      <dc:creator>david707</dc:creator>
      <dc:date>2018-08-10T10:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change the text color of a single cell</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-text-color-of-a-single-cell/m-p/67478#M34624</link>
      <description>&lt;P&gt;The changing the font color in a JMP data table is not available.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 10:21:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-text-color-of-a-single-cell/m-p/67478#M34624</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-10T10:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change the text color of a single cell</title>
      <link>https://community.jmp.com/t5/Discussions/Change-the-text-color-of-a-single-cell/m-p/67568#M34657</link>
      <description>&lt;P&gt;Jim is correct there is no method to set a font color in a data table. This are just a couple of alternative suggestions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;Use lighter colors, pass 36 [ Color To RGB(36) =&amp;nbsp;{0.137254901960784, 0.905882352941176, 0.180392156862745}] and for fail use 35 [Color To RGB(35) =&amp;nbsp;{1, 0.36078431372549, 0.462745098039216}] If the column is selected, the separation in colors in notable.&lt;/LI&gt;&lt;LI&gt;Create a report of text boxes. A TextBox can have different background and text colors and fonts. I didn't create a script for this.&lt;/LI&gt;&lt;LI&gt;Create a script to journal your table where only the pass green cells are colored. Then when journaled, make the table box rows selectable; select the fails, set the row selction color to red; then make the table box rows unselectable.&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Attached is a table with scripts. Instead of spec limits, I used a column of Cpk. There are 3 scripts attached.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Set Cell Colors, uses the colors above, so you can see how they appear.&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;Create Report Table, colors the passing cells and the completes the steps described in bullet #3.&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;Clear Cpk Colors, does what its names declares, so you can start over.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It is interesting to note, if I changed the Cpk column to Data Type Expression, it is journaled a little differently. Maybe a wish list item is to be able to store HTML markup and expand JMP's current list of text markup to include font color, font and background color and maybe alignment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's all I have.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2018 01:57:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-the-text-color-of-a-single-cell/m-p/67568#M34657</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-12T01:57:45Z</dc:date>
    </item>
  </channel>
</rss>

