Change a particular column font color

i have a report . i need particular column values should be red.
select empno, ename from emp;
i need ename values to be appeared in red color.
how this can be achieved?

Hi,
As it's just a report, you could adjust your SQL statement to something like:
select empno,
case when empno < 1000 then '<span style="color:red">' || ename || '</span>' else ename end empname
from emp
Change the test empno < 1000 to whatever test you require.
Regards
Andy

Similar Messages

  • How to change the particular column background  color in jTable?

    I am woking with a project, in which I am using a jTable. Then
    How to change the particular column background color in jTable?

    Use a custom Renderer. This is the JTable tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • How to change the background and font color of a particular row in table

    Hi,
       i need to change the background and font color of a particular row. I am using textview as table columns. I tried to do it using semanticColor property of textview  but the font color get changed for the whole column. But i want to change the color of a particular row only.
       If anybody knows please help me(give an example if possible).
           Thanks and regards.
            Pankaj Kumar.

    Hi Pankaj,
    In your data source context node (context node which is bound to dataSource property of Table UI elemennt) do following:
    If data source node is model node: create a value node under data source node, cardinality 1..1, selection 1..1, singleton false. In this new node add value attribute and set property readOnly=true, calculated=true, property com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor .
    If datasource node is value add value attribute and set property readOnly=true, calculated=true, property com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor.
    In calculated getter method put your color calculation depending on conditions, like:
    return <condition>
      ? WDTextViewSemanticColor.CRITICAL
      : WDTextViewSemanticColor.STANDARD;
    Bind new created attribute with property semanticColor of textview.
    Best regards, Maksim Rashchynski.

  • Can I change different background and font color on each records?

    Hi,
    I had a Data_Block which contains some records, I had a field name 'currency' which contains value such as (HKD, JPY, CNY, CND, USD etc..)
    Let there there are 5 Records contain in that Data_Block and I wanted to change the background and font color depend on the Currency value.
    I were using Set_Item_Property and change the Visual_Attributes that I had define. Well I guess that doesn't work since uisng the Set_Item_Property
    it will actually getting the last value and use that last value and changed to all the same color to that.
    I wonder is there a way to do that in Oracle you can change the field different color?
    Thanks
    David Willis

    Thanks You so much.
    Actually I were trying to look for that function at the User Manual but I couldn't find it because I remembered I had seem it some where.
    I guess I am looking at the Form4.5 user manual instead of the Oracle 9i Forms Developer.
    Thanks
    David

  • Is it possible to change the CATEGORY TITLE font color and/or size of each tile group in start screen, when the tiles are sorted by CATEGORY?

    TIA.

    Q.  Is it possible to change the CATEGORY TITLE font color and/or size of each tile group in start screen, when the tiles are sorted by CATEGORY?
    A.  No
    Carey Frisch

  • Set a particular column's Color when importing a list to Excel

    Hi all,
    I am displaying a list by using REUSE_ALV_LIST_DISPLAY.
    It works fine.Now i import this List to Excel sheet by custom program to set the formatting part and for color prospect which is not working with standard Import functionality.I am using the Methods of Interface  I_OI_SPREADSHEET.
    Now my query is that how to set a particular column's Color ?
    And how to set the width of a particular column ?
    Suggess.
    Points will be sured.
    Thanks
    Sanket sethi

    check this
    downloading my report output with the same color on my report to excel .
    Download alv output to an excel file

  • Is there a way to personalize my font in my icloud email i.e. make permanent change/default settings to font, color.  I don't want to make these changes on each individual email?

    i.e. make permanent change/default settings to font, color.  I don't want to make these changes on each individual email

    Settings App > Messages > Start New Conversations From [set to your phone number].

  • Changing JList non-editable Font color of the selected items

    Hi All,
    I want to change the font color of non-editable JList's selected items which is not clearly visible to user. And I need to change the font color only the selected item in this scenerio.
    Could you please clarify me?
    <img src="file:///C:/DOCUME~1/sgnanasi/LOCALS~1/Temp/moz-screenshot-4.png" alt="" />

    [email protected] wrote:
    ..I want to change the font color of non-editable JList's selected items which is not clearly visible to user. And I need to change the font color only the selected item in this scenerio.Set a custom [cell renderer|http://java.sun.com/javase/6/docs/api/javax/swing/ListCellRenderer.html] *(<- link)* for the JList.

  • Change Data Table column header color

    How do I change the background color displayed in data table column headers?

    Thanks for your response. Problem is that I'm creating a portlet and the stylesheet.css file does not appear to exist, so Winston's blog does not help.

  • Change column header color LV 8.20

    I am displaying tabular data and a graph. How do I change the table column heading color, so they match the colors assigned to the graph?
    Thanks,
    Jim Purdy
    LabVIEW 8.21 on WinXP

    Hi Jim,
    try yourself with this VI. Consider the "active cell" indices are I32, so they can be negative.
    Greets, Dave
    Greets, Dave
    Attachments:
    change Table Color.vi ‏12 KB

  • Changing Font Colors on Master Slides

    I really like Keynote compared to Powerpoint, but I am having a problem making one change to the master theme slides. I am able to change the look, font, etc. on the master slides of a theme, but I cannot figure out how to change the font color in the master slides. Which means that when I am using Portfolio, for instance, which I like, I have to change each slide's font color from gray to black, which is easier to read. I would rather do that on the master slides, but have been unsuccessful thus far.
    Any help would be appreciated. it doesn't make sense that you could revise the masters in just about any way EXCEPT font color. So I must be missing something.

    You change the font color on the master slide, the same way you change it on any other slide. Click view, then Show Master Slides, then select the slide and change it the way you do a regular slide.

  • 6750 Mural Selection Key Font Color

    The color of the selection/soft key labels is dark blue which is sometimes difficult to view if your wallpaper is dark in that area.  When I change the Home screen font color, I'd expect the color of these labels to change though all that changes color is the date and profile name.  I'm guessing this is because the labels exist in more places than the home screen though I'd think the color could still be changed.  Am I missing a setting?
    Thanks!

    I have done that it the Properites panel but when I click
    CTRL and Enter and complete the email form myself, I can see there
    is a difference in fonts in one of the fields - although the
    Properties panel tell me otherwise.
    I just though AS would force the issue.
    Steve

  • APEX CSS - backend font colors

    Hi,
    I am using APEX 3.2 and I want to change the APEX-backend font-colors, especially the links, which are grayish.
    How can I do it?
    Thanks in advance,
    Sedso
    Edited by: user630478 on Jun 10, 2009 9:56 AM

    There is no supported way to modify the appearance of the Application Builder.
    The concensus is that Firefox + Stylish is the best way to do this. I use this to alter the look of the page definition screen as I find the headings too large and the rest of the text too small.

  • How to change the font color of a particular row in af:table

    I have a <af:table> bounded to a readonly ViewObject and this view object is a collection of an sql query. Now when this table is rendered i want font color of the specific attributes to be changed based on certain logic.
    Eg. If my af:table is showing a resultset which has Attributest like ... EmployeeName | BalanceLeave . Then i want that the BalanceLeave value shoud be displayed in RED color if leave balance attribute value is more than 20.
    Please help me on this.

    For this you use the styleClass property of the attribute and use an EL bound to a managed bean to return the desired style.
    Something like this to switch the color public class ColorSwitchBean {
        public ColorSwitchBean() {
            super();
        String mStyleClass = null;
    String mColorSyle = null;
        public String getStyleClass() {
            FacesContext fc = FacesContext.getCurrentInstance();
            ELContext elc = fc.getELContext();
            ExpressionFactory elf = fc.getApplication().getExpressionFactory();
            String sval =
                (String)elf.createValueExpression(elc, "#{row.City}", Object.class).getValue(elc);
            if (sval.startsWith("S"))
                mStyleClass = "red_background";
            else if (sval.startsWith("M"))
                mStyleClass = "green_background";
            else
                mStyleClass="";
            return mStyleClass;
         public void setStyleClass(String aStyleClass) {
            mStyleClass = aStyleClass;
        public void setColorSyle(String mColorSyle) {
            this.mColorSyle = mColorSyle;
        public String getColorSyle() {
          FacesContext fc = FacesContext.getCurrentInstance();
          ELContext elc = fc.getELContext();
          ExpressionFactory elf = fc.getApplication().getExpressionFactory();
          String sval =
              (String)elf.createValueExpression(elc, "#{row.City}", Object.class).getValue(elc);
          mColorSyle = "";
          if (sval.startsWith("S")) {
              mColorSyle = "background-color:Red";
          else if (sval.startsWith("M")) {
              mColorSyle = "background-color:Green";
          return mColorSyle;
    }and this inside the table:- <af:column sortProperty="City" sortable="true" headerText="#{bindings.Departments.hints.City.label}" id="c1" styleClass="#{ColorSwitchBean.styleClass}">
      <af:outputText value="#{row.City}" id="ot2" /> Timo

  • Change font color in Report Code causes font size to change.

    I am trying to dynamically change the font color in a report, red for negative, green for positive and blue for 0. I have created a report region and here is my code:
    select city_name,
    py_re_taxable,cy_re_taxable,
    decode(sign(re_chg),-1,'<font color="red">'||re_chg||'</font>',
    0,'<font color="blue">'||re_chg||'</font>',
    1,'<font color="green">'||re_chg||'</font>','') RE_CHG
    from rc_dashboard_recap a, lk_city_code b
    where b.tax_year = :CURRENT_TAX_YEAR
    and a.city_code = b.city_code
    and userid = :GLOBAL_USER
    order by 1
    This code works great except it overrides my css text size and shows up as a page default size. I can't seem to figure out why this happens. This also happens when I try to sum a column. I've set my font size to 11 in my css and it is calling it correctly, however with the above code, my font size shows up at 12 or so.
    I am looking at the code (view source from my page and it shows the correct class
    <td class="t3dataalta" align="right" ><font color="red">-13.98</font>
    in my css:
    td.t3dataalta{font-size:11px;padding:2px;padding-left:5px;padding-right:5px;}
    If I remove the decode statements with the font color then my font size is correct, but I need to figure out how to make the colors work.
    Does anyone have any ideas?
    Thank You

    select city_name,
    py_re_taxable,cy_re_taxable,
    decode(sign(re_chg),-1,'font color="red"'||re_chg||'/font',
    0,'font color="blue"'||re_chg||'/font',
    1,'font color="green"'||re_chg||'/font','') RE_CHG
    from rc_dashboard_recap a, lk_city_code b
    where b.tax_year = :CURRENT_TAX_YEAR
    and a.city_code = b.city_code
    and userid = :GLOBAL_USER
    order by 1
    Here is my query, I removed the < and > signs in the code so that you could see what I have done.

Maybe you are looking for

  • IDOC DELVRY03 (WHSCON) create Handling Units

    Hi, I am creating an inbound delivery from an IDoc. I now want to have the items packed on the delivery. Therefore the HU's need to be suitably created and packed into for the items. From investigating, SAP states use the 'WHSCON for creation of Hand

  • Contacting admin re: editing posts

    Hi, How do I get in touch with someone about editing a post (written by me)? The edit function seems to have a time limit, but in a couple of my posts there's information I mistakenly copied & pasted without editing, and I want it removed. Thanks...

  • Time machine to 2 places

    Now that Time Machine can backup to 2 different places.  Is it possible to some files on only one of the BU's or will the settings be identicle on both backups? Roger

  • Keytool exportcert not exporting complete chain

    I have a Java Keystore - remote.jks When I run this command: ` keytool -list -v -keystore remote.jks -storepass xxxx ` it prints the following: Keystore type: JKS Keystore provider: SUN Your keystore contains 3 entries Alias name: gd_cross_intermedia

  • Public Folder Migration 2007 to 2010.

    Hi, I have searched through the forums (and Google) and not found anything that works. I have a Public Folder database on an Exchange 2007 server that I'm trying to move all the replicas to my Exchange 2010 PF database.  I have done the following: Ad