How to change the color in text box item.

Hi,
There is a text box where i am returing the value using item source SQL and Always replacing.
I have a condition like this if value is > 10 value must appear in red else white.
Eg:
select
case
when TO_NUMBER(:P122_PRJ_SV_PROJECT_USL) > TO_NUMBER(:P122_GSD_SV_PROJECT_USL) then
'<span style="background-color:RED">'|| PO.EV_UCL || '</span>'
else
'<span style="background-color:WHITE">'|| PO.EV_UCL || '</span>'
end
from projects po
this is not working please suggest me how to change.
Thanks
Sudhir.

Sudhir
Please repost your source code with {noformat}{noformat} (with the curly brackets and in lower case) above and below it.
Cheers
Ben                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • May I know how to change the color of texts inside the indicator box?

    Can anyone tell me how to change the color of texts inside the indicator box? I have tried to use property node but not really know how it functions.
    In fact, I am writing a program for which the number inside indicator on front panel will show red color if the measured value can't reach the requirement. I am using LabView 6.1 Professional
    Thank You for your attention!!!!!!

    Simply use a property node with "NumText.TextColor" and wire the correct color depending on your test result.
    The attached simple example (LV 6.1) lets you change it from the front panel. In your case, you would use your test output instead of a FP switch, of course. Message Edited by altenbach on 05-25-2005 09:05 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    TextColor.vi ‏18 KB

  • How to change the color of text but only when that text is highlighted

    I am NOT asking how to change the highlight color OR how to change the text color generally, but rather, how to change the text color as it shows onscreen while it is highlighted. Here's where I'm going:
    Text is ordinarily black (assume) such as when the Finder is open or when viewing a list of all emails in an inbox.
    Let's say I change the highlight color systemwide, in prefs > appearance > highlight color, to a custom color ("other") of black (for example).
    In certain programs (mail, billings, iBank, addressbook, even the Finder), when I highlight a line of something, (like when I one-click on an email or a file name just to select it but not open it), the line will highlight in black, but the text of that line will automatically change to white so it can be seen.
    However, when I highlight actual text (click and drag or double click), such as when editing a document in Pages and selecting a word, line, paragraph, editing an email, etc., the highlight is black, and the text remains black also, which means it cannot be seen (black on black).
    So, how do I change it so that when I highlight the actual text the text color changes to white, then when it is de-selected, it goes back to black.
    I'm not afraid to do a little terminal/command line, but only if it’s a little. Hope this gives enough detail.
    Thanks.

    You can use span HTML tag.
    For example, if your label is "Product Name", and you want it to appear in red, you can type this:
    <span style="color:red">Product Name</span>Hope it helps.
    Ravi

  • I have tried everything! How to change the color of text based on value Acrobat 9

    How can I change the color of the text to red if the value is "Unacceptable" and leave it green for all other rating values? Where can I put it for it to work? Also, Unacceptable is set to an export value of 0.
    var n = +this.getField("NumericSummaryRating").value;
    var a = +this.getField("Rating1.0").value;
    var b = +this.getField("Rating1.1").value;
    var c = +this.getField("Rating1.2").value;
    var d = +this.getField("Rating1.3").value;
    var e = +this.getField("Rating1.4").value;
    if (n == 0) {
        event.value = "Not Rated";
    } else {
    if (a==0 || b==0 || c==0 || d==0 || e==0) {
        event.value = "Unacceptable";
    else {
        if (n>0 && n < 3.0){
            event.value = "Unacceptable";
        else if (n >= 3.0 && n < 3.6) {
            event.value = "Successful";
        else if (n >= 3.6 && n < 4.6) {
            event.value = "Excellent";
        else if (n >= 4.6) {
            event.value = "Outstanding";

    You can add this at the end of the code:
    if (event.value=="Unacceptable") event.target.textColor = color.red;
    else event.target.textColor = color.green;

  • How to change the color of text in Teat Area

    Pls tell me how can i print two different lines in two different colors inside the same text area.
    Because whenever i set the color it sets the color for the complete text area.
    I want to print "Hello..." with color red and "Hi..." with color green in the same text area.
    Pls help me out...

    hi,
    u should use swing component JTextPane instead of textarea to change the color of the text.
    for eg:
    JTextPane textPane;
    JScrollPane panescrollpane;
    textPane=new JTextPane();
    panescrollpane=new JScrollPane(textPane);
    panescrollpane.setVisible(true);
    String[] initString =
    request+newline
    String[] initStyles =
    { "regular"
    Style def = StyleContext.getDefaultStyleContext().
    getStyle(StyleContext.DEFAULT_STYLE);
    Style regular = myClient.textPane.addStyle("regular", def);
    StyleConstants.setFontFamily(def, "SansSerif");
    StyleConstants.setForeground(regular,Color.orange);
    Document doc = textPane.getDocument();
    try {
    for (int i=0; i < initString.length; i++) {
    doc.insertString(doc.getLength(), initString,
    textPane.getStyle(initStyles[i]));
    } catch (BadLocationException ble) {
    // System.err.println("Couldn't insert initial text.");
    Hope this helps..
    regards,
    Kalpana.

  • How to change the color of text to an swf file

    Hello:
    In a menu of four options (each option is only text) I would
    like to change
    the color of the text that is clicked., the menu is a group.
    Can you hep me
    please?
    thank you

    Anne wrote:
    > Hello:
    > In a menu of four options (each option is only text) I
    would like to change
    > the color of the text that is clicked., the menu is a
    group. Can you hep me
    > please?
    > thank you
    >
    >
    Assuming each option is an individual text member in its own
    sprite...
    on mouseEnter me
    cursor 280
    sprite(the currentSpriteNum).color = rgb(255,0,0)
    end
    on mouseLeave me
    cursor -1
    sprite(the currentSpriteNum).color = rgb(0,0,102)
    end
    on mouseDown me
    sprite(the currentSpriteNum).color = rgb(0,0,0)
    end
    on mouseUp me
    cursor -1
    sprite(the currentSpriteNum).color = rgb(0,0,102)
    go to frame "StartMovie" of movie "Chapter1" -- or whatever
    you want
    to do here
    end

  • Tabular Forms - how to change the color of text when the field is disabled

    Hi,
    I have a tabular form and some of it's columns are disabled showing text in grey color...
    is there a way to change the color to black and bold the text...?
    thanks

    Okay, i've taken a look at your example.
    The column formatting does not work on the input fields. The help on the item says that it generates a span with a style attribute. This would work for a display field, not for an input field.
    Css like i've written should be in the style tags, put up in the header section of the page (page -> edit -> header region).
    You've already put script tags there, the style tags go there aswell. You shouldn't even need to put your script tags in the header region. Just put your code up in the javascript functions region (without the script tags).
    However, i tested in firefox and here color works on an input field, changing the font color. In IE it does not do this. Cross browser implementations and such, not much to do about it here. See http://stackoverflow.com/questions/602070/changing-font-colour-in-textboxes-in-ie-which-are-disabled.
    I did notice that you build your form with a bunch of input fields, which you disable through javascript in the footer of the region. Then on submit, you set the disabled to false again for all those fields! If you want those fields to always be submitted to the server, why wouldn't you use the readonly attribute? Readonly fields are always submitted, and can't be edited by the user. Plus, readonly fields CAN be styled however you want! You can get rid of the javascript code in your header then.
    Even the javascript in the footer is not necessary. If you just add 'readonly="true"' (without single quotes) to the element attributes of your items (edit column -> column attributes region) = no javascript at all (less maintenance).

  • How to change the color of text highlight

    I'm trying to select and highlight certain text in the PDF. Here's my sample code. I want to change the color of the highlighted text. Something similar to what the Highlight Text tool does in acrobat.
    HiliteEntry hilite;
    hilite.offset = 10;  //Highlight the tenth word
    AVDoc currentAVDoc = AVAppGetActiveDoc();
    PDDoc currentPDDoc = AVDocGetPDDoc(currentAVDoc);
    AVPageView currentPageView = AVDocGetPageView(currentAVDoc);
    ASInt32 pageNum = AVPageViewGetPageNum(currentPageView);
    PDColorValueRec red;
    red.space = PDDeviceRGB;
    red.value[0] = ASInt32ToFixed(1);
    red.value[1] = 0;
    red.value[2] = 0;
    // highlight
    AVPageViewSetColor(currentPageView, &red);
    PDPage pdPage = PDDocAcquirePage (currentPDDoc, pageNum);
    PDTextSelect textSelection = PDTextSelectCreateWordHilite(pdPage,&hilite, 1);
    AVDocSetSelection(currentAVDoc, ASAtomFromString("Text"),(void *)textSelection, true);
    AVPageViewDrawNow(currentPageView);
    AVDocShowSelection (currentAVDoc);
    PDPageRelease (pdPage);
    If this is not possible, at least can I change the font color or underline the text?
    Appreciate any help!

    Thanks a lot for the help so far. So I was successfully able to crate a highlight annotation from text selection. Here's my code, if anyone else get similar questions.
    Only one more question. in my highlight annotation, I get two rounded half circles from the left and right sides. Not sure why?
    HiliteEntry hilite;
    hilite.offset = 50; // highlight starting 50th word
    AVDoc currentAVDoc = AVAppGetActiveDoc();
    PDDoc currentPDDoc = AVDocGetPDDoc(currentAVDoc);
    AVPageView currentPageView = AVDocGetPageView(currentAVDoc);
    ASInt32 pageNum = AVPageViewGetPageNum(currentPageView);
    PDEElement pdeElement;
    ASFixedRect boundingRect;
    PDPage pdPage = PDDocAcquirePage (currentPDDoc, pageNum);
    PDAnnot pdAnnot;
    PDColorValueRec red;
    red.space = PDDeviceRGB;
    red.value[0] = ASInt32ToFixed(1);
    red.value[1] = 0;
    red.value[2] = 0;
    // highlight
    AVPageViewSetColor(currentPageView, &red);
    PDTextSelect textSelection = PDTextSelectCreateWordHilite(pdPage,&hilite, 1);
    AVDocSetSelection(currentAVDoc, ASAtomFromString("Text"),(void *)textSelection, true);
    AVPageViewDrawNow(currentPageView);
    AVDocShowSelection (currentAVDoc);
    // make text selection and get the bbox of the selection.
    PDTextSelect selectedText = static_cast<PDTextSelect>(AVDocGetSelection(currentAVDoc));
    PDTextSelectGetBoundingRect(selectedText,&boundingRect);
    // use the bbox to create a highight annotation QuadPoints
    CosObj ArrayObj, RecObj;
    CosDoc cd = PDDocGetCosDoc(currentPDDoc);
    CosObj cosPage = PDPageGetCosObj(pdPage);
    ArrayObj = CosNewArray(cd,false,8);
    CosArrayPut(ArrayObj,0,CosNewFixed(cd,false, boundingRect.right));
    CosArrayPut(ArrayObj,1,CosNewFixed(cd,false, boundingRect.bottom));
    CosArrayPut(ArrayObj,2,CosNewFixed(cd,false, boundingRect.left));
    CosArrayPut(ArrayObj,3,CosNewFixed(cd,false, boundingRect.bottom));
    CosArrayPut(ArrayObj,4,CosNewFixed(cd,false, boundingRect.right));
    CosArrayPut(ArrayObj,5,CosNewFixed(cd,false, boundingRect.top));
    CosArrayPut(ArrayObj,6,CosNewFixed(cd,false, boundingRect.left));
    CosArrayPut(ArrayObj,7,CosNewFixed(cd,false, boundingRect.top));
    // for the Rect. Highlight annotations don't require, but API call to create annotation requires this key
    RecObj = CosNewArray(cd,false,4);
    CosArrayPut(RecObj,0,CosNewFixed(cd,false, boundingRect.left));
    CosArrayPut(RecObj,1,CosNewFixed(cd,false, boundingRect.right));
    CosArrayPut(RecObj,2,CosNewFixed(cd,false, boundingRect.bottom));
    CosArrayPut(RecObj,3,CosNewFixed(cd,false, boundingRect.top));
    CosObj cosDict = CosNewDict(cd, true, 4);
    CosDictPutKeyString(cosDict, "Subtype", CosNewNameFromString(cd, false, "Highlight"));
    CosDictPutKeyString(cosDict, "QuadPoints",ArrayObj);
    CosDictPutKeyString(cosDict, "Rect", RecObj);
    pdAnnot = PDAnnotFromCosObj(cosDict);
    PDPageAddAnnot(pdPage,-2,pdAnnot);
    PDPageNotifyContentsDidChange(pdPage);
    PDAnnotSetColor(pdAnnot, &red);
    AVPageViewDrawNow (currentPageView);
    PDPageRelease (pdPage);

  • How do i change the color of text boxes and the texts that i enter in them?

    I recently changed my system's color settings and now the text boxes in Firefox are dark grey. This is fine when the text happens to show up as white, but when it shows up as black, I can't read what I'm typing. (I'm not clear on what makes the difference. The box I'm typing this in now happens to be dark grey with white text.) I've tried playing around with settings within Firefox preferences and in my OS' (Kubuntu) system settings, and haven't yet been able to identify what settings exactly might change this specific aspect.

    Two possible ways are available
    Set the text with and html text string like "<html><font color-red>" + text + "</font></html>"
    or get the cellrenderer, cast to the DefaultCellRenderer and call setForeground or background or implement or your own cellrenderer to do the custom coloring (this could maybe depend on indexes)
    ICE

  • KdeGraphics-Okular - How to change the color of Text Selection tool

    Hello All
    I'm trying to know how to change/fix the color of the Text Selection Tool (Ctrl + 4). Because when I highlight the text, it's only one color (Dark Blue) that make me could not read clear.
    ---- My OS Configuration
    OS : Arch
    DE: LXDE
    WM: OpenBox

    The highlight color is determined by the system-wide color scheme that you're using. There's no way to change it only for okular.

  • How to change the direction of text writing: item is top to bottem

    hi, i will make a notepad. and i will make its text's direction: item is top to bottem and line is left to right.
    i cant do this, please help me!

    What you need is:
    http://www.macdevcenter.com/pub/a/mac/2002/03/22/vertical_text.html
    That gives you a very nice vertical text, with support for rotation
    control so Katakana and Arabic style writing can be done properly.
    James.

  • How do I change the color of text in Messages?

    How do I change the color of text in Messages? It was easy to do before, but I can't seem to find it after the upgrade.. is it a hidden menu option?  The gray text is really annoying.

    Two possible ways are available
    Set the text with and html text string like "<html><font color-red>" + text + "</font></html>"
    or get the cellrenderer, cast to the DefaultCellRenderer and call setForeground or background or implement or your own cellrenderer to do the custom coloring (this could maybe depend on indexes)
    ICE

  • How to change the color of the text field of form

    Hi ,
    Is there any way to change the color of the text field of the form........
    Thnx in advance .......
    Cheers,
    Eman

    Hi Bob. I'm new to these forums and I'm not sure of protocol and exactly how this is supposed to work, so If I'm doing this wrong then please excuse me and let me know.
    I liked you solution on 'How to change the color of an Item on a form' using <blink>.
    I'm new to this application and coding as well so its kind of foreign to me.
    Working on a Report Page,
    I would like to have item, :P1_JOB_NO blink when the difference between sysdate and :P1_DATE_DUE < 7 days.
    I can identify the job_no which should blink by using the sql statement:
    SQL> select job_no from oax_projects07 where
    2 (sysdate - date_due < 7) and
    3 emp_name = 'GARY PILKENTON';
    JOB_NO
    20060627 050
    But I dont know the proper syntax to make it blink,
    or when to plug the syntax into.
    ie, is it a process, a validation, etc.
    Do you have any advice for me?

  • How do you change the color of text messages?

    Can you change the color of text messages?  If so, how?

    Two colors. Blue and green.
    Green is for text message. Blue is for iMessage. You can't change these, though.

  • I am unable to change the color of text in an email I replay to or compose. I am on 31.6.0 release of Thunderbird.

    When I receive, reply or compose email. I no longer am able to see or change the color of text. I select to change the text from black to Red (or any other color) and the text just stays black, The color seletor box will show the last select color, but never actually changes the text color in an email. Also in received email, when the sender has indicated their replies to me are in another color, All the text only appears as black. I never had this problem in the past, not sure what has happened. I did restart Thunderbird with add-ons disabled and this did not change the problem.

    Hello, maybe the question need to move by a moderator to thunderbird support ?
    https://support.mozilla.org/en-US/questions/thunderbird?owner=all
    thank you
    [moderator note: question thread has been moved from Firefox queue to Thunderbird queue]

Maybe you are looking for

  • Choppy video in Program Montior

    Hello, I recently started recording in AVCHD and when I import the video into Premiere Pro I can open the file it it's own monitor and it plays fine. I can set my In and Outs, etc. However, when I add it to the timeline and play the entire timeline b

  • How do i make an apple id without a credit card in ios 5.1?

    How do i make an apple id without a credit card on ios 5.1.1

  • How do I add a shared google calendar in ical?

    Trying to add a ical (confusing I know, but this not ical as in mail, it's the data format) as in a shared google calendar to my mac ical mobile me account. Can't see an option other then add mobile me.

  • Nokia 206 does not turn on after update

    Hi Just got a Nokia 206 Updated the software. Itupdated and restarted fine Then I checked for updates again, and it updated a second time Everything went fine, and the phone restarted. It said "Update Successful" or something like that I remember tha

  • Difference between swap and tmp

    Hi, I am performing a 11g software installation (11.1.0.7) on HPUX IA64 server. During the installation, I got this error which says {code{ Checking available swap space requirements... Expected result: 39897MB Actual result: 16384MB What is swap spa