Solved

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

Posted on 2013-05-12
2
353 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

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…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 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