Table font color

I am displaying thermocouple values in table the table has four columns channel,Description,Limits and values.These are real time values i want to change the color of these values according to the limits that is if it lies in danger zone they should be displayed in red color if in warning zone in blue color or for normal range in black not all the values only those which cross the limit.using switch i can display either of the color but not all color so how do i do it?
eg;  I have limit of    +70/-40               if value is in range 67-70 it should be Red
                                                            if value is in range 60-70 it should be Blue
                                                            if value is  < 60 it should be Black
similarly for negative range.

I tried your method but its not working properly even the values which are not in the limit are also changing the color. I think you will get better idea by seeing these pictures(it has both front panel as well as block diagram) that what exactly i want  to do.Thanks a lot i hope you will reply soon.
Attachments:
Front Panel.JPG ‏237 KB
Block Diagram.JPG ‏182 KB

Similar Messages

  • Change the font color of a text field in a table by key-combination

    I want to change the font color of a text field in a table (single cell only) on pressing a key combination. Does anybody know how to do this.
    I have a lot of data in a table. During an evaluation of the data in a meeting I want to change the color of the text depending on the result of the meeting. (for example: High risk = CTRL+R makes the text red).
    I know how to change the color using a button, but I do not want to add a button after each cell. For this reason I would like to do it on a key combination that alway refers to the active cell.
    Many thanks for your help in advance.
    Marcel

    Hi,
    I don't think you can use the ctrl key like that as those shortcuts will be intercepted by Reader (ctrl-R toggles the ruler display on / off).  You also might have trouble updating the color while you still have focus on it.  You can use the shift key in a similar way, so if you only have lower case characters in the text fields then you can do something like;
    if (xfa.event.shift)
        switch (xfa.event.change)
            case "R":
                this.fontColor = "255,0,0";
                break;
            case "O":
                this.fontColor = "255,102,0";
                break;
            case "G":
                this.fontColor = "0,255,0";
                break;
        xfa.event.change = ""; // ignore character
    If you need uppercase characters maybe you can have one button to set "review mode" and test that on the if (xfa.event.shift) line.  But again it wont take effect until you have tabbed out of the field.
    Regards
    Bruce

  • 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

  • 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.

  • Printing XML report (with report.xsl stylesheet) shows font colors, but not table highlight colors

    I am trying to print the XML report generated by TestStand to a PDF in order to archive it.  When the XML report is rendered in Internet Explorer, everything looks fine -- Sequence names are highlighted in teal, Pass is in green, Fail is highlighted in red.
    However, when I print this page to a PDF (using BullZip PDF printer, or even the XPS printer), all of the table highlighting is gone.  The UUT Result in the header is red or green font color depending on the pass/fail state, but sequence names and any formatting applied to tables within the body of the report have no highlighting.
    Is the stylesheet altering what is rendered when the XML file is printed?
    This is the output when viewed in IE 
    This is the output when viewed as a PDF printed from the same file viewed in IE.
    Thank you,
    Matt
    Solved!
    Go to Solution.

    Hey Matt,
    This is actually because of a default setting in Internet Explorer to not print background colors on webpages. To change it, simply go to the Page Setup screen (on IE9, you click the gear icon, then Print > Page Setup) and select the option to print background images and colors. After doing this, the printed report should contain the colors you see on your screen.
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • How to automatically build a table with 2 alternated font colors for the lines ?

    Hi,
    I'm looking for a way to automatically build a table with alternate background color and alternate font color for the lines.
    I have this particular project (a list of companies of an industrial area) and it is updated twice a year :
    I managed to set an automated alternate background color of the lines so this works well (white/blue/white/blue...)
    But the font color does not automatically alternates... and I do not know how to set this up...
    All the companies are ordered alphabetically so when I have to insert or delete one, the whole text of the table under the modified line is messed up. Then I have unreadable white text on white background and blue text on blue background...
    Does anyone have an idea on how to automatically alternate the font color ?
    Thank you.
    Best regards,
    G.

    Hi,
    I know this [JS] code is awful but it works. If  someone wants to correct it …! 
    At the beginning, you have an Excel file. You play a little with it [doing concatenations] to get, after importing it in ID:
    Then, just run the .jsx:
    Done! 

  • Red Font Color in Table Class Interface

    Hi SDN community,
    Do you know what the exact ABAP Syntax in the Table Class interface, and in which METHOD we would place to change the font colour of numbers to red colour.
    And would be also possible to change the number to have brackets around it, to make it proper accounting notation.
    I would not want to lose context sensitivity of the numbers.
    Thank you.
    Simon

    Hi SDN community,
    Thanks to our ABAP guru:
    method data_cell.
      call method super->data_cell
        exporting
          i_x                   = i_x
          i_y                   = i_y
          i_value               = i_value
          i_display_value       = i_display_value
          i_numerical_scale     = i_numerical_scale
          i_numerical_precision = i_numerical_precision
          i_currency            = i_currency
          i_unit                = i_unit
          i_alertlevel          = i_alertlevel
          i_is_sum              = i_is_sum
        changing
          c_cell_id             = c_cell_id
          c_cell_content        = c_cell_content
          c_cell_style          = c_cell_style
          c_cell_td_extend      = c_cell_td_extend.
      data: li_display_value type rsr_pnnn.
      data:
         lv_len type i,
         lv_replace_value type char40,
         lv_with_value    type char40.
      if i_value lt 0.
        data:
        amount type p decimals 2,
        correctamount type p decimals 2,
        chars(5) type c value '1.005'.
        correctamount = chars.
        write i_display_value to lv_replace_value
          no-sign decimals i_numerical_precision.
        condense lv_replace_value no-gaps.
        if i_value < 0.
          concatenate '-' lv_replace_value '</a>' into lv_replace_value.
          condense lv_replace_value no-gaps.
          lv_with_value = lv_replace_value.
          replace:
            '-'    with '(' into lv_with_value,
            '</a>' with ')</font></a>' into lv_with_value.
        else.
          concatenate lv_replace_value '</a>' into lv_replace_value.
          condense lv_replace_value no-gaps.
          lv_with_value = lv_replace_value.
          replace '</a>' with '</font></a>' into lv_with_value.
        endif.
        concatenate '<font color=red>' lv_with_value into lv_with_value.
        lv_len = strlen( lv_replace_value ).
        replace lv_replace_value(lv_len) with lv_with_value
          into c_cell_content.
      endif.

  • My Excel with PowerPivots acts weird, it hangs when i try to change font color

    Hi 
    I am facing a weird issue using PowerPivot in my workbook, there is a worksheet named Charts in my workbook and all the charts i am using resides in that worksheet. Whenever i try to change the font color in that sheet, my excel's color palette goes blur
    and then everything just freezes and turns black. This problem is happening only with Charts worksheet, when i try to change the color in other sheets, it works just, the problem is only with Charts sheet. File
    size is 16 MB, there are just 10 pivot tables with some calculations and some calculated fields. There are no add-ins other than PowerPivot. 
    Thanks,
    Shanker

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Do you receive any error message?
    Which Excel version are you using?  Excel 2013 or other?
    Which workbook format are you using? XLS or XLSX?
    Are you performing any specific task?
    According to your description, this issue seems only occur with the special worksheet "Charts".
    Firstly, I recommend we copy all of the content to a new/blank Excel file to test.
    If it works fine, this issue might be caused by the "Charts" workbook itself. We'd better check the "Charts" workbook. Or re-build the file with a new workbook.
    If it still makes Excel hang with a new file, this issue might due to the content. Please check the content first.
    Secondly, we could follow below KB to troubleshoot this issue:
    https://support2.microsoft.com/kb/2758592/en-us?wa=wsignin1.0
    Thirdly, if the issue still exists, we may try to collect the Event log and App crash dump file to do advanced troubleshooting.
    Event log:
    http://windows.microsoft.com/en-US/windows7/Open-Event-Viewer
    App crash dump file:
    First enable app crash dump collection by copying following words into notepad, saving it as dump.reg and importing
    it:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\localdumps\EXCEL.EXE]
    "DumpFolder"=hex(2):63,00,3a,00,5c,00,63,00,72,00,61,00,73,00,68,00,64,00,75,\
      00,6d,00,70,00,73,00,00,00
    "DumpCount"=dword:00000010
    "DumpType"=dword:00000001
    "CustomDumpFlags"=dword:00000000
    Then, open Excel
    to repro the issue. If crash issue appeared, please find the crashdump file under c:\.
    To further help you, please upload this file into Skydrive and shared the link here.
    Also, you can try to analyze dump by yourself if you would like to:
    How to analyze app crash dump file:
    http://blogs.technet.com/b/askperf/archive/2007/05/29/basic-debugging-of-an-application-crash.aspx
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How do you set the font color for a specific entire row inside a JTable?

    How do you set the font color for a specific entire row inside a JTable?
    I want to change the font color for only a couple of rows inside a JTable.
    I've seen some ways to possibly do this with an individual cell.
    Clarification on changing the font color in an individual cell would be helpful too if
    there is no easy way to do this for a row.

    hai,
    Try out with this piece of code.Create your table and assign the renderer to each column in the table.
    CellColorRenderer m_CellColorRenderer = new CellColorRenderer();
    for(int i=0;i<your_JTable.getColumnCount();i++)
    your_JTable.getColumnModel().getColumn(i).setCellRenderer(m_CellColorRenderer);
    class CellColorRenderer extends JLabel implements TableCellRenderer
    CellColorRenderer()     
    setOpaque(true);     
    setHorizontalAlignment(LEFT);
    setVerticalAlignment(CENTER);
    setBackground(Color.white);
    setForeground(Color.black);
    protected void setValue(Object value)
         setText((value == null) ? "" : value.toString());
    public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected, boolean hasFocus, int row,int column)
         if(isSelected == true)
              setForeground(Color.red);
         else
              setForeground(Color.black);
         setValue(value);
         return this;
    regards,
    bala

  • TeXShop and font color

    I am using TexShop in LaTeX. But I have a problem with the font color in TeXShop: it changes to white, and I can not get it back to black. I hope that someone can help me, thank you!

    Just a long shot, but have you tried to toggle syntax highlighting on and off in the  preferences "Source" tab? That will rewrite the color table for the source editor. The "Console" foreground color is is set in the "Console" tab of the preferences.
    All colors are stored in the user preferences file:
    ~/Library/Preferences/TeXShop.plist
    If you cannot change the colors using TeXShop's Preferences panel, the preferences file may be corrupted. Then  I'd try to quit TexShop and to remove this preferences file.
    Regards
    Léonie

  • Jspdynpage font color and legend

    Ineed to change color of font in jspdynpage application.Any idea
    2) when i click on  the column heading it should show a popup showing legend for what it stands for?
    Any help will be appreaciated,

    Hi,
    To change the font color you need to either need to create a .css file for you application and within that u need to add the following lines :
    .fontcolorchange {
      font-family: Verdana, Geneva, sans-serif;
      background-color:#80FF80;
      border: 0px;
      color: #000;
    and then use this as follows :
    <table>
    <tr class ="fontcolorchage">
    <td>and</td>
    </tr>
    </table>
    or in the th jspDynpagen use the following tag :
    <font color="colorName">text</font>
    I think it will be helpful.
    Please reward with points if helpful.
    Thanks
    Ritu
    Message was edited by:
            Ritushree Saha

  • [DataGrid] Line font color

    Hi,
    I would like to know if it's possible to change the font
    color of a specific line in a datagrid.
    I mean if I have x lines in my dataprovider, how can I detect
    a line (using a property of the object inserted) to change its font
    color ? For example, it could be used to display in red font some
    lines and in green font other lines.
    I don't want to change the row background, but the font
    color.
    Thanks !
    Vincent

    The method
    prepareRenderer is great for static filling, but I
    didn't get to use the same strategy for dinamic
    values filled by user.You are mistaken. This is the correct strategy to use given your explanation of the problem. If you don't understand why, then you should read the tutorial [url http://java.sun.com/docs/books/tutorial/uiswing/components/table.html]How to use Tables. If this strategy is not working for you, then you are doing something else wrong, in which case you need to post the code you tried instead of the same code you posted 6 months ago.
    If you have trouble understanding the tutorial, please ask questions here. Obviously, you can just keep posting here and people will give you the answers, but unless you plan to do this for the rest of your career, I would invest some time in learning.

  • Jtable cell having multiple font colors

    Is it possible to have text in a cell with multiple colors (e.g. using html)?
    -Jim

    Should be possible:
    http://java.sun.com/docs/books/tutorial/uiswing/components/html.html
    I was able to do different colors by adding HTML to one of my table cell data items:
    <html><center><b>Enable</b> <font color=#ff00dd>middle button</font>

  • Copying from Oracle SQL Developer to Microsoft Word doesn't retain formatting (Font,colors etc)

    Copying from Oracle SQL Developer Worksheet doesn't retain formatting (font,color etc...)in Microsoft Word but copying from other programs such as
    visual studio, chrome browser etc works fine. This doesn't work even after changed the setting to Keep Source formatting of Options-> Copy and Paste Settings

    Hi,
    I notice that you have cross posted in Answers forum and Oracle forum. Have you tried Mr. Peter's suggestion?
    Then, I recommend we check the Word settings:
    1. Go to: Options > Advanced > Cut, Copy and Paste
    2.  Make sure that Use smart cut and paste is ticked. 
    3. Click the Settings button next to this option
    4. Make sure that Smart Style
    Behavior is checked.
    If the issue still exists, please upload a sample through One Drive, I want to test.
    Regards,
    George Zhao
    TechNet Community Support

  • Unable to change font color in inserted textbox

    Hi All,
    Thanks for help. I have an aplication which brings up an image for editing in flash. Here is what happens.
    I click on A tool and insert 2 text boxes on the image and type something. Then I click on the Arrow tool and double click on text in Text box 1 to select it. Then try to change the font color from the font menu icon. It does not work. But after selecting the text in text box 1 and trying to change the font size from the menu seems to work fine. Can any one plz help??

    This seems to be a question for Flash Authorying. Can you post this in the forum of Flash CS?
    Here's the link http://forums.adobe.com/community/flash

Maybe you are looking for

  • BW Upgrade from 3.5 to 7.3 directly

    Hi All, We are planning to upgrade one of our client systems from 3.5 to 7.3 directly. After checking with SAP we have come to the conclusion that we can upgrade our system directly to 7.3 version without going to 7.0 and then to 7.3 process. But now

  • F.07 customer balance carry forward doubts

    Hi folks, i have some concerns about T-code F.07. 1. Can we run this Tcode more than one time for a particular customer account for the same fiscal year? If it's allowed what will happen? 2. For the record in KNC1 table, if we run the F.07 twice, wha

  • A1 Issue - 3 Bottom Touch Icons Stopped Working

    Has anyone else had this issue?  The 3 touch icons on my A1 never really worked great from the beginning but after several months they stopped working altogether.  I returned it once to Lenovo for repair, they replaced my LCD screen, got it back, and

  • Print this page button

    Hi, I found this very handy liittle script for adding a print this page button to my pages. See below. I'd like to change the button though to a small image of a printer. Does anyone know how I can modify this script to achieve that. Thanks K <SCRIPT

  • DBA Cockpit shows incorrect space information

    Hi all, We have an NW04s with SP12 on Solaris 10 and Oracle 10g.  The new DBACOCKPIT is introduced with the SP which supposedly replace many of the database administratrive transasactions (db02, st04, db13, etc.). The problem we have is the space inf