Change cell color of query results,font size,style

Change cell color of query results,font size,style
Hello
I have this code below and I want to know if it is possible
to make the column header a font style different
Example:
Font size =12
Verdena
blue
And the cell of the column name a different color for ex
Yellow
Can this be done here and where in this code do I put it??
Thank you so much
<cfquery name="gelov datasource="kl90">
SELECT
FROM
WHERE
ORDER BY
<cfswitch expression="#Form.orderBy#">
<cfks value="KSNUMBER">
KS.KS_NBR
</cfks>
<cfks value="CREATIONDATE">
KS.KREATDAT
</cfks>
</cfswitch>
</cfquery>
<!---html report--->
<cfswitch expression="#Form.outputFormat#">
<cfks value="HTML">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Ctwye Kss Report</title>
</head>
<style type="text/css">
table{
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
td{
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
th{
font-family:Arial, Helvetica, sans-serif;
font-size:10px;
h2{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
h3{
font-family:Arial, Helvetica, sans-serif;
font-size:13px;
</style>
<body>
<cfoutput>
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td align="center">
<h3>Ctwye Kss
Report</h3><br><br></td>
</tr>
<tr>
<td align="center">
</h2>report returned #getCtwyeKss.RecordCount#
records</h2></td>
</tr>
<tr>
<td>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td width="160">Ks Number</td>
<td>K-date</td>
<!--- <td class="dataField">Address</td>
<td class="dataField">Type</td>
<td class="dataField">Description</td>--->
</tr>
<cfloop query="getCtwyeKss">
<tr bgcolor="<cfif currentrow mod
2>GHOSTWHITE<cfelse>WHITE</cfif>">
<td>#KS_NBR#</td>
<td>#dateformat(KREATDAT,"mm/dd/yyyy")#</td>
</tr>
</cfloop>
</table>
</td>
</tr>
</table>
</BODY>
</HTML>
</cfoutput>
</cfks>
<cfks value="CSV">
<CFHEADER NAME="Content-Disposition" VALUE="attachment;
filename=ctwye.csv">
<cfcontent type="application/msexcel">"Ks
Number","K-date"
<cfoutput
query="getCtwyeKss">#ltrim(KS_NBR)#,"#dateformat(KREATDAT,"mm/dd/yyyy")#"
<tr #IIF(getCtwyeKss.CurrentRow MOD
2,DE(''),DE('backgroundColor="##999"'))#>
<!---<tr bgcolor="<cfif currentrow mod
2>##808080<cfelse>##ffffff</cfif>"> --->
</cfoutput>
</cfks>
</cfswitch>

By using <TH> instead of <TD> on your header row
you can then specify different font type and size in your CSS code.
th{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
I'm guessing this is your header?
<tr>
<td width="160">Ks Number</td>
<td>K-date</td>
<!--- <td class="dataField">Address</td>
<td class="dataField">Type</td>
<td class="dataField">Description</td>--->
</tr>
If so, change these <TD> to <TH>
<tr>
<th width="160">Ks Number</th>
<th>K-date</th>
<!--- <th class="dataField">Address</th>
<th class="dataField">Type</th>
<th class="dataField">Description</th>--->
</tr>

Similar Messages

  • Font Size / Style changes on recipient's end?

    I've been using mail since Leopard and recently upgraded to Snow Leopard where I'm currently on Mail version 4.2 (1078).
    Whenever I compose and send a message where the default font is Helvetica 12 and the email format is rich text, some recipients receive my email where the font is very tiny, maybe a 4 pt font and the style changes.
    In many of my emails, I will copy and paste a paragraph or two from another email where the font is theoretically the same and then I will edit a few words in the body of the email before submitting.
    When some recipients reply back with my original email text, I sometimes see the edited text as a tiny font or the font size of my email has shrunk down considerably.
    I sent a test email to my hotmail and gmail accounts but this issue does not seem to arise. What I saw before sending my email is exactly the same font size/style in my hotmail and gmail accounts.
    Is this an issue with the recipient's email browser or are there some incompatibilities with Apple's Mail and other email browsers?

    Thanks baltwo and Tom. I'll try sending as a PDF file as well.
    Also, I did a test per Tom's instructions about reformatting text. First, I copied text from another email and then pasted it in a new message. I highlighted all the text where I wanted to increase the text size and left one paragraph unchanged.
    I sent the email to the recipient that's having these issues where she replied back with my forwarded email.
    All the text where I increased the point size shrunk and the text that I left alone was actually okay - Weird! I also noticed that the font style changed on their end. By the way, the recipient uses Microsoft Outlook as their email browser.

  • Mouse over to change cell color

    Can anyone point me to a really good tutorial for doing mouse
    over also
    changes the cell color?.
    Ive tried a few and spent hours on it and just cannot get it
    to work
    correctly.
    Here is my basic starting .css which i start off with each
    time.
    .tnav {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #FFFFFF;
    .tnav a:link {
    color: #FFFFFF;
    font-size: 12px;
    text-decoration: none;
    .tnav a:visited {
    color: #FFFFFF;
    text-decoration: none;
    .tnav a:hover {
    color: #FFFFFF;
    text-decoration: underline;
    .tnav a:active {
    color: #FFFFFF;

    On Thu, 8 Mar 2007 14:42:35 -0000, "Mike"
    <[email protected]> wrote:
    >Can anyone point me to a really good tutorial for doing
    mouse over also
    >changes the cell color?.
    Change your CSS to this:
    .tnav {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #FFFFFF;
    .tnav a {
    color: #FFFFFF;
    display: block;
    text-decoration: none;
    .tnav a:hover {
    color: #FFFFFF;
    text-decoration: underline;
    Add a conditional comment to the <head> of the document
    to correct for
    an IE browser bug:
    <!--[if ie]>
    <style type="text/css">
    .tnav a {
    height: 1%;
    </style>
    <![endif]-->
    Gary

  • Need to color and increase the font size of the text in Excel Attachment

    Hi ,
    I have a requirement where i need to send an Excel attachment as email.
    and In the Excel I need to increase the font size and add colour to the header text in order to distinguish it form the item details.
    Is there a way that we can do it.using ALE programming .....if yes how can we do it...??
    regards
    Abaper

    Hello
    * Row color change
    FORM set_rows_fill USING number TYPE i
                                  colorindex.
      CALL METHOD OF excel 'Rows' = rows EXPORTING #1 = number.
      CALL METHOD OF rows 'SELECT'.
      CALL METHOD OF excel 'SELECTION' = selection.
      CALL METHOD OF selection 'Interior' = interior.
      SET PROPERTY OF interior 'ColorIndex' = colorindex.
      SET PROPERTY OF interior 'Pattern' = 1.
    ENDFORM.                    " SET_COLUMN_FILL
    * Font change
    FORM WRITE_ROW USING USING LEFT TOP BOTTOM RIGHT.
      DATA: bcells TYPE ole2_object,
            ecells TYPE ole2_object.
      CALL METHOD OF excel 'CELLS' = bcells EXPORTING #1 = top #2 = left.
      CALL METHOD OF excel 'CELLS' = ecells EXPORTING #1 = bottom #2 = right.
      CALL METHOD OF excel 'RANGE' = range EXPORTING #1 = bcells  #2 = ecells.
      CALL METHOD OF range 'SELECT'.
      CALL METHOD OF range 'Font' = font.
      SET PROPERTY OF font 'Name' = 'Arial Cyr'.
      SET PROPERTY OF font 'Size' = 12.
    ENDFORM.

  • How can I change the color of the text/font for my emails on iPad?

    HHow do I change the font color when typing email messages on iPad?

    on Mail (the native app from Apple) you can only choose between bold, italic and underline.
    Unfortunately there's not for a while an option to change color or font size.

  • Change cell color in jdbTable?

    Hi, I have a jdbTable ... and the result are a result of a query ...
    jdbTable.setDataSet(queryDataSet);
    the rusult are:
    Name - Surname - child - married
    I'd like to change row color when the married is yes and when the child are > 0
    Is it possible to do it? Because I found only JTable example.
    Thank you very much

    Sorry the component name is wdr_test_table  in view SNGL_MARK_CELL see the method wddoinit( ).
    Regards
    Yash

  • Change cell color if number is different from previous cell

    Hello all and thank you in advance for any help that is provided.
    I want to have the color of text in one cell change if the number entered into that cell is higher than the number entered in the previous cell.
    Example: If cell A=18 and cell B=18 then the font color in both cells is the same.
    If cell A=18 and cell B=20 then the color of the font in cell B should change to another color.
    I have done my best to look through the posted questions to no avail so I apologize if this has already been answered.
    AJ

    Inspector > Format (42)
    Select B2 > Conditional format > Greater than > A2 > Edit > Text > Red, Green whatever. Done.
    As usual the format in B2 can be dragged down by the little o bottom right to B3, B4 etc.
    S.

  • Change font size, style, etc

    Changing the font size and style are typical requirements of all applications. I find it inconceivable that this option is not available from the research and development staff at a company with the expertise of apple. Until they get their act together I have switched to Google Calendars. Those are very cool indeed! Email your daily itinerary to business colleagues and share calendar access with anyone you desire. Also printable or .pdf formats.

    It isn't gone, just minimized. The top of the screen should have a thick dark brown bar with "Documents", "Undo", etc. Under that should be a thinner lighter brown bar. Touch that thinner bar and the formatting bar should reappear.

  • How do I change the color of the desktop fonts from white to black?

    How do I change the color of the fonts on the desktop to black?

    You can reverse the colors of everything on the screen with one click in this Perference pane:

  • Change Cell Color of JTable-Please Help

    Hi All,
    I want to change the color of a Row in a JTable when i click on it. And After that when i click another row i want to retain this color and give another color to the second row.
    If somebody knows how to do this. Do Help
    Thanks in advance
    -Jeena

    Hi,
    thanks for the fast reply
    Using a TableCellRenderer i was able to give colors to the selected row. But when i click another row the color disappears.
    Thanks,
    Jeena

  • Maxinum number of cells in a query result

    Hello everybody
    Our customer built big a query with a lot of key figures and attributes. After starting this query through BEx Query Designer or BEx Web Analyzer an error message is telling me that the result is beyond the maximum number (500 000) of showable cells.
    Does anybody know if it is possible to raise this number?
    Regards
    Chris

    I have a similar problem. When I try to run a large report, on Web I get a message that Result set too large (1039966 cells) data retrieval restricted by configuration (Maximum= 500000 cells). and on BEX the query times out.
    The Solutions suggested to change settings in web Analyzer does not work, beacuse the Maximum Number of Cells a report could have is 500000 (Default is the same)
    Is there any other way to get all the cells in BExno matter if takes a little longer?
    Thanks.
    Regards
    Abhijit N.

  • Change cell color based on time

    I have a row with 24 cells. I want each cell (from left to right) to change color based on the time. Each cell will represent 1 hour A1=Midnight, B2=1AM, etc... At those specific hours I'd like the corresponding cell to change color. So, at midnight, A1 will change from white to red. I figured I could do this with conditional formatting.
    I created a table with =NOW() and formatted it to display only the hour. I then created my 24 column row and pointed each cell in that row to that =NOW() cell. Each cell now displayed the current hour. I setup conditional formatting so that, for example, if A2=1AM (as displayed in the cell) then the formatting would change, but this didn't seem to work. I'm guessing the conditional formatting is just seeing the formula and not the value in the cell. Any thoughts here?

    There are a couple of issues involved:
    1. Conditional formatting rules compare the value in the cell to be formatted to a fixed value or to the value in another cell. If the rule says "=", then the values must be exactly the same.
    2. Date and Time values in Numbers always contain both a time component and a date component. Always. The cell may be formatted to display only the time, only the date, or both, but no matter what is displayed, the values are equal only if the complete Date and Time value is the same.
    3. "Midnight", "1AM", are text values. They will never be equal to a Date and Time value.
    So the problems are to:
    • Extract the Hour from the Date and Time value returned by NOW()
    • Convert that number to a text value in the form "9AM", "9PM", or optionally "Midnight", and I presume, "Noon"
    • Store that changeable value where it may be compared to the value in the cell to be conditionally formatted.
    • Construct the rule to format the cell(s).
    Row 1 contains a sample of the 24 cells to be formatted.
    Columns D and E, rows 2 to 25 are a LOOKUP table, where the HOUR value is looked up and the corresponding text value returned.
    F2 (highlighted with an orangeish fill) contains the formula which extracts the HOUR value from NOW(), looks it up and returns the value displayed (and to be compared).
    F2: =LOOKUP(HOUR(NOW()),D2:D25,E2:E25)
    Regards,
    Barry
    Edit: Second thought
    The LOOKUP table can be avoided using this formula in F2
    =OFFSET($A$1,0,HOUR(NOW())-15)
    The -15 at the end of the formula works for my sample table, in which column 1 (column A) is 3PM. For column A=Midnight, the shift should be -0 (or just left off).
    Message was edited by: Barry

  • Changing cell colors of Webapplication

    Dear all,
    I want to create a report that does highlights specific cells with colors and/or bold letters.
    The example is:
    I have a keyfigure consumption and a characteristic consumption_type.
    The consumtion_type defines where the consumption occures e.g. facility, block etc.
    Now I want to highlight the consumption value with different colors for the consumption_type e.g. facility=red, block=blue
    The consumption value should be hightlighted and not the type. It would be perfect if the type would not even be shown.
    How can I achive this?
    Thanks,
    Andreas

    Hello Vineet,
    Thank you for your reply.
    That helped me to get an idea of what is possible there.
    I found the following link:
    http://help.sap.com/saphelp_nw04/helpdata/en/96/42393c3eb3036be10000000a11402f/frameset.htm
    So you saying its possible also to remove cells (e.g. consumption_type) which is only needed to indentify the colors but should not be seen in the report?
    I also read in SAP note 931395 that with BW 7.0 it should be possible to manipulate the reports with java (the same that is done now with Abap). Do you have any information about this?
    Thanks,
    Andreas
    Message was edited by:
            Andreas Schuth

  • Change cell colors used within a function

    While using various functions in a spreadsheet I use to track my bills on a monthly basis, the functions do a great job of highlighting all the cells included. The problem is.....I cannot see them well, some not at all, since I am color blind and the palette seems to be a very light, pastel. Is there a way to control the colors used by functions to highlight in more basic colors or darker grays?
    Thanks!

    i,
    Have you explored the contrast enhancement options in System Preferences, Personal, Universal Access, Seeing, Display?
    Regards,
    Jerry

  • Changing the display of query results on web

    Hi,
    Whenever I execute a query in IE, the standard report that comes up displays only 4 columns. Where can I change this number of columns that will be displayed?
    I checked in RSCUSTV27 for the web template for Ad Hoc reporting, where there was no template specified. In case there is no template specified, it is going to use a standard 0QUERY_TEMPLATE web template for this. I could not find this standard web template in both active content and BI content.
    Thanks,
    Sanjeev

    Hi,
    The standard web template is 0ANALYSIS_PATTERN, please open that in WAD and do the needful.
    Thanks
    Dipika

Maybe you are looking for