<?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: Highlight Cell in Data Table Box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43811#M25310</link>
    <description>&lt;P&gt;Duh, sorry I JMPed in too early. &amp;nbsp;But just in case that's the only route that'll give you the formatting, here is a utility:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table To Table Box = Function({dt},{Default Local},
	tb = Table Box();
	For (i=1,i&amp;lt;=NCols(dt),i++,
		col = Column(dt,i);
		colName = col &amp;lt;&amp;lt; Get Name;
		lstValues = col &amp;lt;&amp;lt; Get Values;
		type = col &amp;lt;&amp;lt; Get Data Type;
		If (type=="Character",
			tb &amp;lt;&amp;lt; Append(
				String Col Box(colName,lstValues)
			)
		,
			tb &amp;lt;&amp;lt; Append(
				Number Col Box(colName,lstValues)
			)
		);
	);
	// return
	tb
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Aug 2017 19:42:21 GMT</pubDate>
    <dc:creator>David_Burnham</dc:creator>
    <dc:date>2017-08-30T19:42:21Z</dc:date>
    <item>
      <title>Highlight Cell in Data Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43801#M25306</link>
      <description>&lt;P&gt;I want to highlight significant PValues in a Data Table Box. &amp;nbsp;I have a display where I simply run a Response Screening then save the data table to the display along with a Graph Builder plot via: &amp;nbsp;vlb &amp;lt;&amp;lt; Append(dtb = Data Table Box(dt));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't seem to figure out an easy way to edit the Data Table Box. &amp;nbsp;I tried highlighting the value on the actual table before import into the display but it didn't do anything. Any suggestions?&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="DataTableBoxHighlight.PNG" style="width: 545px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7354iDBB86D60BAFD3249/image-size/large?v=v2&amp;amp;px=999" role="button" title="DataTableBoxHighlight.PNG" alt="DataTableBoxHighlight.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 16:21:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43801#M25306</guid>
      <dc:creator>msharp</dc:creator>
      <dc:date>2017-08-30T16:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Cell in Data Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43803#M25308</link>
      <description>&lt;P&gt;I'm not sure if there is a way to change the background colour, but you can apply conditional p-value formatting:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NumberColBox("p-value",EvalList({p}),&amp;lt;&amp;lt;Set Format(10,97),&amp;lt;&amp;lt;Set Conditional Format("PValue")),&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 18:06:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43803#M25308</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2017-08-30T18:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Cell in Data Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43805#M25309</link>
      <description>&lt;P&gt;This&amp;nbsp;doesn't look like a solution for a Data Table Box?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 18:44:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43805#M25309</guid>
      <dc:creator>msharp</dc:creator>
      <dc:date>2017-08-30T18:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Cell in Data Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43811#M25310</link>
      <description>&lt;P&gt;Duh, sorry I JMPed in too early. &amp;nbsp;But just in case that's the only route that'll give you the formatting, here is a utility:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table To Table Box = Function({dt},{Default Local},
	tb = Table Box();
	For (i=1,i&amp;lt;=NCols(dt),i++,
		col = Column(dt,i);
		colName = col &amp;lt;&amp;lt; Get Name;
		lstValues = col &amp;lt;&amp;lt; Get Values;
		type = col &amp;lt;&amp;lt; Get Data Type;
		If (type=="Character",
			tb &amp;lt;&amp;lt; Append(
				String Col Box(colName,lstValues)
			)
		,
			tb &amp;lt;&amp;lt; Append(
				Number Col Box(colName,lstValues)
			)
		);
	);
	// return
	tb
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Aug 2017 19:42:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43811#M25310</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2017-08-30T19:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Cell in Data Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43812#M25311</link>
      <description>&lt;P&gt;Beautiful, I think I can take it from here along with your previous comment. &amp;nbsp;It's unfortuneate the Data Table Box() isn't a Table Box(). &amp;nbsp;All the documentations say it is, but when I dig into the properties I feel very limited in my options for customization.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the elegant function! &amp;nbsp;Not sure why I didn't think of it. &amp;nbsp;That's what community is for!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 19:55:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43812#M25311</guid>
      <dc:creator>msharp</dc:creator>
      <dc:date>2017-08-30T19:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Cell in Data Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43816#M25313</link>
      <description>&lt;P&gt;If you are OK with not having the live link to the data table like the DataTableBox has, the Get As Report message should do you just fine.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
:Age &amp;lt;&amp;lt; Color Cells( "Red" );

New Window("Colored cells",
	dt &amp;lt;&amp;lt; get as report()
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 342px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/7359i5D975BE0AC66DAA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 20:16:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43816#M25313</guid>
      <dc:creator>Justin_Chilton</dc:creator>
      <dc:date>2017-08-30T20:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight Cell in Data Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43829#M25317</link>
      <description>&lt;P&gt;Thanks for sharing! &amp;nbsp;This is actually a better solution to my specific problem. &amp;nbsp;However, I'm going to leave David's answer as correct since I believe it's more robust.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 23:32:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Highlight-Cell-in-Data-Table-Box/m-p/43829#M25317</guid>
      <dc:creator>msharp</dc:creator>
      <dc:date>2017-08-30T23:32:43Z</dc:date>
    </item>
  </channel>
</rss>

