Solved

ColdFusion How can I add highlighting or bold to query results?

Posted on 2013-05-12
2
336 Views
Last Modified: 2013-05-12
How can I add a yellow highlight or other indicator for a number that results in a query that is larger than another number?

Example:
Query results:

Quantity Ordered     Quantity Received
           10                             14   (bold or highlighted desired)
           11                             11
0
Comment
Question by:DJPr0
2 Comments
 
LVL 14

Accepted Solution

by:
RickEpnet earned 500 total points
ID: 39159622
You can do something like this.

<cfset a = 7>
<cfset b = 6>
<cfoutput>
  <span style="color ##000000; background-color: <cfif a gt b>##FFFF00<cfelse>##FFFFFF</cfif>;">This is a TEST</span>  
</cfoutput>
0
 

Author Closing Comment

by:DJPr0
ID: 39160057
Thanks RickEpnet!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
Hi. There are several upload tutorials using jquery and coldfusion. I found a very interesting one here Upload Your Files using Jquery & ColdFusion and Preview them (http://www.randhawaworld.com/) . I did keep the main js functions but made sever…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now