I only briefly tested this and might be a better way of doing it but it
seems to work at least and I mistakenly did severity instead of status so
just change those values.  I am using version 2.4.005 of LightHouse, if that
matters any.  In my project_view.cfm file I took this line:

<td><span spry:content="{SEVERITYNAME}"></span></td>

and replaced it with these:

<td spry:choose="spry:choose">
                    <span spry:when="'{SEVERITYNAME}' == 'High'"
style="color:##FF0000;">{SEVERITYNAME}</span>
                    <span
spry:default="{SEVERITYNAME}">{SEVERITYNAME}</span>
                </td>

On Wed, May 14, 2008 at 2:06 PM, Aaron Rouse <[EMAIL PROTECTED]> wrote:

> This link help any:
>
>
> http://livedocs.adobe.com/en_US/Spry/1.4/help.html?content=WS557937C8-85AC-4560-BE84-7A5B9EF0DAB0.html
>
> I do not know if this method would work but with other datagrid solutions
> what I sometimes do is feed in the data pre-colored when I have little or no
> control over the display.  For example in my query I might select out a SPAN
> HTML element around my data and with the CSS to color it how I want it to
> be.
>
>
> On Wed, May 14, 2008 at 1:48 PM, Mark Davis <[EMAIL PROTECTED]>
> wrote:
>
>>  I tried that, but didn't think it would work...and it didn't.  With
>> Spry, the data is written via javascript, so I can't access the JS value in
>> CF.
>>
>> Also, tell Stephanie not to take off work because her son graduates from
>> pre-school. ;-)
>>
>>
>>  ------------------------------
>> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
>> Behalf Of [EMAIL PROTECTED]
>> *Sent:* Wednesday, May 14, 2008 1:17 PM
>> *To:* [email protected]
>> *Subject:* [houcfug] Re: anyone use Spry?
>>
>>  *Just off the top of my head, couldn't you do this via CFIF (wrap a
>> conditional statement around a style="color: red" attribute in the row based
>> on the value of STATUSNAME)?*
>>
>>
>> *James E. Thomas*
>> Baker Botts L.L.P. Web Developer
>>
>>  -----Original Message-----
>> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
>> Behalf Of *Mark Davis
>> *Sent:* Wednesday, May 14, 2008 12:53 PM
>> *To:* [email protected]
>> *Subject:* [houcfug] anyone use Spry?
>>
>> I have been doing a serious customizing job on Ray Camden's Lighthouse
>> Pro.  One of the tables for data display uses Spry and I am not familiar
>> with it.  I want to change the color of the text  based on the value of the
>> STATUSNAME field in each row.  (meaning any row where the statusname is
>> "Completed", I want the text to be Red) Not exactly sure how to do
>> this...Code below...Thanks
>>
>>  Mark
>>
>>
>> <table
>> width="100%" cellspacing=0 cellpadding=5 class="adminListTable" border>
>>
>> <tr class="adminListHeader">
>>
>> <td width="30">&nbsp;</td>
>>
>> <td><a href="javaScript:dsIssues.sort('PUBLICID','toggle')" class=
>> "adminListHeaderTD">ID</a></td>
>>
>> <td><a href="javaScript:dsIssues.sort('NAME','toggle')" class=
>> "adminListHeaderTD">Name</a></td>
>>
>> <td><a href="javaScript:dsIssues.sort('ISSUETYPE','toggle')" class=
>> "adminListHeaderTD">Type</a></td>
>>
>> <td><a href="javaScript:dsIssues.sort('LOCUSNAME','toggle')" class=
>> "adminListHeaderTD">Size</a></td>
>>
>> <td><a href="javaScript:dsIssues.sort('SEVERITYRANK','toggle')" class=
>> "adminListHeaderTD">Importance</a></td>
>>
>> <td><a href="javaScript:dsIssues.sort('STATUSRANK','toggle')" class=
>> "adminListHeaderTD">Status</a></td>
>>
>> <td><a href="javaScript:dsIssues.sort('USERNAME','toggle')" class=
>> "adminListHeaderTD">User</a></td>
>>
>> <td><a href="javaScript:dsIssues.sort('PRETTYDUEDATE','toggle')" class=
>> "adminListHeaderTD">Due</a></td>
>>
>> <td><a href="javaScript:dsIssues.sort('PRETTYDATE','toggle')" class=
>> "adminListHeaderTD">Updated</a></td>
>>
>> </tr>
>>
>> <tr spry:repeat="dsIssues" spry:even="adminList0" spry:odd="adminList1"
>> spry:test="{ds_RowNumber} &gt;= pageOffset &amp;&amp; {ds_RowNumber} &lt;
>> pageStop">
>>
>> <td width="20"><cfif variables.mystatus neq "2"><input type="checkbox"
>> name="mark" value="{ID}"></cfif></td>
>>
>> <td><span spry:content="{PUBLICID}"></span></td>
>>
>> <td><a href="view.cfm?id={ID}&pid=#p.getID()#"><span spry:content=
>> "{NAME}"></span></a></td>
>>
>> <td><span spry:content="{ISSUETYPE}"></span></td>
>>
>> <td><span spry:content="{LOCUSNAME}"></span></td>
>>
>> <td><span spry:content="{SEVERITYNAME}"></span></td>
>>
>> <td><span spry:content="{STATUSNAME}"></span></td>
>>
>> <td><span spry:content="{USERNAME}"></span></td>
>>
>> <td><span spry:content="{PRETTYDUEDATE}"></span></td>
>>
>> <td><span spry:content="{PRETTYDATE}"></span></td>
>>
>> </tr>
>>
>> </table>
>>
>> No virus found in this incoming message.
>> Checked by AVG.
>> Version: 8.0.100 / Virus Database: 269.23.16/1432 - Release Date:
>> 5/14/2008 7:49 AM
>>
>>
>> >>
>>
>
>
> --
> Aaron Rouse
> http://www.happyhacker.com/




-- 
Aaron Rouse
http://www.happyhacker.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Houston ColdFusion 
Users' Group" discussion list.
To unsubscribe, send email to [EMAIL PROTECTED]
For more options, visit http://groups.google.com/group/houcfug?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to