Solved

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

Posted on 2013-05-12
2
332 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
Comment Utility
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
Comment Utility
Thanks RickEpnet!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 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

7 Experts available now in Live!

Get 1:1 Help Now