<?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: Conditionally colour text of a Data Table Box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Conditionally-colour-text-of-a-Data-Table-Box/m-p/805310#M98355</link>
    <description>&lt;P&gt;You can modify the scrollable property of table box created&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Probe.jmp");
dt &amp;lt;&amp;lt; Select Where(:Site &amp;gt; 2);
:Site &amp;lt;&amp;lt; Color Cells("Red");
dt &amp;lt;&amp;lt; clear select;

nw = New Window("",
	rep = dt &amp;lt;&amp;lt; get as report
);

tb = rep &amp;lt;&amp;lt; Child;
tb &amp;lt;&amp;lt; Set Scrollable(0,0);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 14 Oct 2024 11:08:42 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-10-14T11:08:42Z</dc:date>
    <item>
      <title>Conditionally colour text of a Data Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Conditionally-colour-text-of-a-Data-Table-Box/m-p/805093#M98310</link>
      <description>&lt;DIV&gt;I would like to colour &lt;STRONG&gt;the text of&lt;/STRONG&gt; specific cells of a&amp;nbsp;Data Table Box based on a condition. Take as example of what I am trying to do the following:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Select Where(:Age &amp;gt; 14);
:Age &amp;lt;&amp;lt; Color Cells( "Red" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the above gives the output:&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georgios_Tsim_0-1728651504719.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69032i902C5703528AEA1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georgios_Tsim_0-1728651504719.png" alt="Georgios_Tsim_0-1728651504719.png" /&gt;&lt;/span&gt;&lt;P&gt;but then the result in the window is:&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;win3 = New Window( "Combined Report",
Data Table Box(dt));&lt;/CODE&gt;&lt;/PRE&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georgios_Tsim_1-1728651585631.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69033i05146263B006B91D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georgios_Tsim_1-1728651585631.png" alt="Georgios_Tsim_1-1728651585631.png" /&gt;&lt;/span&gt;&lt;P&gt;There is not any colour.&lt;/P&gt;&lt;P&gt;To sum up, what I am trying to do is similar to what happens with the p-values at the output windows of the models that they are&amp;nbsp; conditionally coloured as they approach the limit of 0.05.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 11 Oct 2024 13:03:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditionally-colour-text-of-a-Data-Table-Box/m-p/805093#M98310</guid>
      <dc:creator>Georgios_Tsim</dc:creator>
      <dc:date>2024-10-11T13:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally colour text of a Data Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Conditionally-colour-text-of-a-Data-Table-Box/m-p/805104#M98311</link>
      <description>&lt;P&gt;If you use &amp;lt;&amp;lt; get as report you can get the colors&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; Select Where(:Age &amp;gt; 14);
:Age &amp;lt;&amp;lt; Color Cells("Red");
dt &amp;lt;&amp;lt; clear select;

nw = New Window("",
	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="jthi_0-1728652600204.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69034i17EDF787C850346E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1728652600204.png" alt="jthi_0-1728652600204.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 13:16:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditionally-colour-text-of-a-Data-Table-Box/m-p/805104#M98311</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-11T13:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally colour text of a Data Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Conditionally-colour-text-of-a-Data-Table-Box/m-p/805108#M98312</link>
      <description>&lt;P&gt;A data table with cell colors can be moved into a journal&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );

dt:name &amp;lt;&amp;lt; color cells("red",{3,4,5,6,7});
dt:age &amp;lt;&amp;lt; color cells("blue", {6, 8, 10});


nw = New Window("Output", &amp;lt;&amp;lt;journal);
dt &amp;lt;&amp;lt; Journal;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1728652930272.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69035i30F4E03890B26090/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1728652930272.png" alt="txnelson_0-1728652930272.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_2-1728652973234.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69037i96EE77964E3894C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_2-1728652973234.png" alt="txnelson_2-1728652973234.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Using an alternate methodology, the data table can be added to a non Journal window by passing it through a journal and then adding it to a standard display window&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );

dt:name &amp;lt;&amp;lt; color cells("red",{3,4,5,6,7});
dt:age &amp;lt;&amp;lt; color cells("blue", {6, 8, 10});

nw = new window("Outline",ob=outlinebox("data table"));
ob&amp;lt;&amp;lt;append(dt &amp;lt;&amp;lt; Journal);

current journal()&amp;lt;&amp;lt;close window;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_3-1728653771020.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69038iDDAC0EA4E28A359D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_3-1728653771020.png" alt="txnelson_3-1728653771020.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 13:36:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditionally-colour-text-of-a-Data-Table-Box/m-p/805108#M98312</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-10-11T13:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally colour text of a Data Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Conditionally-colour-text-of-a-Data-Table-Box/m-p/805309#M98354</link>
      <description>&lt;P&gt;Nice! But in my case the table is wide and it has scrolling bars.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Georgios_Tsim_0-1728903255657.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69081i3B976DBA899022D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georgios_Tsim_0-1728903255657.png" alt="Georgios_Tsim_0-1728903255657.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And this hides the las column that I do not want to. Is it possible to fit the width of the report table to the window?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 10:56:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditionally-colour-text-of-a-Data-Table-Box/m-p/805309#M98354</guid>
      <dc:creator>Georgios_Tsim</dc:creator>
      <dc:date>2024-10-14T10:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally colour text of a Data Table Box</title>
      <link>https://community.jmp.com/t5/Discussions/Conditionally-colour-text-of-a-Data-Table-Box/m-p/805310#M98355</link>
      <description>&lt;P&gt;You can modify the scrollable property of table box created&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Probe.jmp");
dt &amp;lt;&amp;lt; Select Where(:Site &amp;gt; 2);
:Site &amp;lt;&amp;lt; Color Cells("Red");
dt &amp;lt;&amp;lt; clear select;

nw = New Window("",
	rep = dt &amp;lt;&amp;lt; get as report
);

tb = rep &amp;lt;&amp;lt; Child;
tb &amp;lt;&amp;lt; Set Scrollable(0,0);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Oct 2024 11:08:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditionally-colour-text-of-a-Data-Table-Box/m-p/805310#M98355</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-14T11:08:42Z</dc:date>
    </item>
  </channel>
</rss>

