Change the color of cell based on the first character of the value of the field

Inside of a RTF model, I have a field called I_DESCRIPTION.

If the first character of the value of I_DESCRIPTION is 'E' then I want the table cell to be red. Otherwise, I want it to be blue.

I thought I'd be able to use the following type of code:
<?xdoxslt:ifelse(substring(I_DESCRIPTION,1,1)='E', 'IT IS E', 'Not E')?>
The above works. The only problem is, I don't know how to change the above, so that instead of print 'IT IS E' or 'NOT E' it changes the color of the cell in the table in red or blue.

I guess I have to put something like the following in the second and the third argument to the ifelse() function:
<?attribute@incontext:background-color;'#FF0000'?>
But after much trying, I can't work on everything at is how this fits.

Ideas or suggestions appreciated.

Thank you
Andy

Hi Andy,.

You can try this:

1. in the cell where you view the description field, insert a form of conditional formatting field and use the following code: Red

You will need to check the condition of other another field of form CF: Blue

Hope this helps.
Thank you!

Tags: Business Intelligence

Similar Questions

  • Address book - blackBerry Smartphones change the field "synchronize using.

    Hello world

    I recently changed my primary Gmail account on my blackberry (from [email protected] to [email protected]).

    I have a problem with sync'ing with my address book.

    All of my old contacts are synchronized via [email protected]

    And now, I would have them Sync with [email protected]

    In every Contact form, I discovered there is a synchronization field to aid which is filled with the google account. Unfortunately, you cannot change this field.

    Y at - it an easy and fast way to mass - change (the field sync using) all my old contacts sync with my new gmail account?

    I tried with importers and exporters of gmail to gmail, but I lose my contacts photos. I cannot accept this solution because I have more than 500 contacts and 90% of them have an image.

    So I'm asking if someone has an idea to solve this problem.

    Thanks in advance

    Thanks for your reply.

    But I decided I'm going to do it by hand and transfer between gmail via vcf file transfer account.

    It's a real pain in the * because I know that have to redo all the links between linkedin/facebook and my address book. And also photos of contacts. It would have been very happy to be able to mass change the field "to sync using"

    There is therefore no real solution to solve my problem except to waste a lot of time by hand.

    But I'll post another topic for a question than a problem with the synchronization of contacts and photos

  • Need to change the field Office in the list of values

    Hi guys,.

    I need to change the field Office in LOV where form of people, customer actually requires some preset values in this area, through customization is possible? or not?


    Kind regards


    Ssali

    As I understand you cannot change a field of LOV using the Persolization form. Yes, you can use the de FACTO forces for the same reqirrment.

    Thank you

  • EasySign: what I can or cannot change the fields to fill?

    Is it just me, or is Acrobat EchoSign a hostile user to the garbage piece? I use reader 10.1.3. This is a form that I would complete and perhaps 'sign' with a TIFF of my signature, but first I have to type in some areas. Arrived at this point took me 20 minutes this morning:

    Acrobat EasySign.jpg

    (Sorry for the fur JPEG;) Forums Adobe informed me passively after that I tried to save three no-anti-aliasing 'content types' that he would only accept JPEG format.)

    If you examine the name under the section 'INFO' field, you will see three blue spots reflecting three multiple selections no region of text boxes in the list to the right. These objects are the result of my patiently left click the i-beam on my name in order to change the text that I entered in each field. Whenever I did, I would like to briefly see a blip appear under the i-beam, but he would not let me change my text. The blip, of course, was a text box of length zero being created. I persisted because at some point given, I swear I saw an arrow icon and it let me do a selection in blue on a parcel of my text, but then for some reason any when I typed nothing happened, then the apparition disappeared and I couldn't repeat it. And it is only after a few minutes, when I started to play with a right click on a text field, I discovered the "list of comments" so needless of me in frustration.

    There are now dozens of these mini boxes everywhere in the sheet (just look at how the "list of comments" has 86 entries instead of the 12 that actually contain text). But it means I can't change something when I finished a text, isn't it? If so, why not? Why is he not clear for me, a sophisticated user? Why the bizarre and unpredictable behavior? Or I'm a sort of silly, not having found the correct incantation? Maybe an Adobe firewing priestly programmers or myriads now will enlighten us all, tacitly suggesting that it's just my stupidity, because they knew the blessed Secret their first time.

    I have fairly exhaustive sought a solution to this and have so far found nothing, but maybe it's because I've budgeted only 45 minutes for this potential simple task. Am I'll have to check out this file in Illustrator, or print it out and post it?

    Twenty years ago, I was probably the first or second person outside mountain view to show the alpha of the carousel. Since that time - and despite having occupied hope repeatedly - I still can't easily fill a document online without heartache. Why can't I edit a field? What I have to do when I want to edit a multi-line field? My workaround over the years have range from every possible thing you can imagine, the scan in Photoshop or Illustrator, Quark or InDesign; in the fields of the blind and double-exposures on a printer laser. the glue; even to hack the fields the PostScript with setfonts and the movetos shows.

    I spent 40 years in the graphic arts; half of them I've struggled with Acrobat, on some products work quite complex with the features of questionable when delivery shoehorned in PDF format. When it comes to simple single-page monochrome form letter/A4 - the portable document more abundant on earth - we are now in Acrobat v10 and all I want to do is easily a form, sign and return by email and I still can't.

    Why is life so much harder now than when I could run that through a typewriter, Adobe? What you really do about it for billions? How much more precious moments of our lives that you're going to waste?

    (P.S. What difference is almost a day: hours after this - and just before submitting this article - I myself have discovered the cast with a few minutes more far experiments most already spent. Now, I can recreate the arrow and change the field. It's really not hard, but it's far from clear is the furthest thing of the good technique of the user interface. However, I know now the blessed Secret, or at least a part of it. But it does not change my position above. You can guess why, O Adobe priesthood of unbearable preachy? If it takes a programmer experienced hours to learn the combination, what makes you think to Grandma and Grandpa never go figure?)

    I have to say that a large part of the problem is due to the agency providing the form. This would have worked much better if they had taken the time to add real interactive form fields so that you wouldn't have to worry about the typewriter tool. It's actually good that Adobe provides that as an option of last resort for PDF files that look like forms. It of a little silly to provide a PDF of a form and makes it not to fill, especially since it's possible since Acrobat/Reader 3. This particular form would be easy to implement with fields.

    Regarding the file TIFF is not not qualify, it is worth looking at in more. Consider filing a bug report.

  • JavaScript how to get / change the field (object) TYPE (no access or mandatory)?

    Hello

    I would like to change or at least to get the TYPE of a field/object field

    Reason: I have a function in my script object that needs some things if the given parameter is a text field or button

    {myFunction (Object)}

    If (type is button)...

    ClassName is relative to any use. He always comes = field

    Could someone provide a code please?

    Hello

    This script could help show how to get the type of field.  I'm reasonably show that he originally site of Stefan Cameron, http://forms.stefcameron.com/, but can not find it now.  Basically if you have a 'field' then ui.oneOfChild.className will give you the type of field.

    I don't think you'll have a chance to change the field type.  I think that you need to have all the field types you want on the form and that they are visible when necessary.

    function listAllFields (node)
    {
    If (node.className == 'exclGroup' | node.className == "subform" | node.className == 'subformSet' | node.className == 'region')
    {
    for (var i = 0; i)< node.nodes.length;="">
    {
    If (node.name! = "ErrorIconSubform")
    {
    childNode var = node.nodes.item (i);
    listAllFields (childNode);
    }
    }
    }
    Else if (node.className == "field")
    {
    Switch (node.ui.oneOfChild.className)
    {
    case "button":
    Console.println ("button:" + node.somExpression);
    break;

    case "checkButton":
    If (node.parent.className is "exclGroup")
    Console.println ("RadioButtonList:" + node.somExpression);
    on the other
    Console.println ("checkbox:" + node.somExpression);
    break;

    case "choiceList":
    var oUITypeNode = node.ui.resolveNode ("#choiceList");
    If (oUITypeNode.open is "userControl")
    Console.println ("DropDownList:" + node.somExpression);
    on the other
    Console.println ("ListBox:" + node.somExpression);
    break;
      
    case "dateTimeEdit":
    Console.println ("DateTime:" + node.somExpression);
    break;

    case "imageEdit":
    Console.println ("Image:" + node.somExpression);
    break;

    case "numericEdit":
    Console.println ("digital:" + node.somExpression);
    break;

    case "passwordEdit":
    Console.println ("password:" + node.somExpression);
    break;

    case "textEdit":
    Console.println ("Text:" + node.somExpression);
    break;

    case "signature":
    Console.println ("Signature:" + node.somExpression);
    break;

    case 'barcode ':
    Console.println ("bar code:" + node.somExpression);
    break;

    by default:
    unknown field type
    break;
    }
    }
    }

  • How to change the field type property

    Dear all.

    I would change the field property type registered user - optional read-only under certain conditions.

    tired, like folloing, but the field is still editable.

    Please let me know how to change it.

    CASES1:

    Row1_Num1.LockType = "readOnly";

    CASE2:

    Row1_Select.ReadOnly = true;

    Try to use TextField1.access = "readOnly";

    Jasmine

  • Change the color of cell based on the text in another cell.

    Hey everybody, hoping that I can get some advice. I searched autour and finds only advice exceeded on a previous version of a number.

    I use 3 numbers

    Very simple question, in the hope of a simple answer

    Above is what I want the result to be.

    The "Number" column is a pop-up menu with a list of different text. I wish that the color of cell status change depending on which element is selected.

    I looked in the conditional highlighting, but it doesn't seem to be what I'm after. I would be able to get this working with formulas or a mixture of both?

    Thanks in advance for your help.

    Hi .adams,

    I do not understand the cells that you compare to get a color. It is a cell in the left column or a cell in the right column?

    Please tell us your overall goal: 'what' you want to do, rather than "how" to achieve this.

    More information, will lead to a solution.

    Kind regards

    Ian.

  • Adobe Java Script to change the field of reading to write based on radio button selection

    I created a form the question asked is "Do we have a credit limit?" the user can select a Yes or not by using a radio button.  If the user selects Yes we do not have a credit limit that I want the text field "CreditLimitAmount" to change the read only entry.

    Here is my code, but it does not work, someone would be able to see what I'm doing wrong?

    GetField ("CLYes"). Value
    If {(event.target.value==="Off)"}
    f.ReadOnly = false;
    f.fillColor = color.white;

    } else {}

    f.ReadOnly = true;
    f.FillColor = Color.Gray;
    }

    You have it backwards. Use this code as your radio buttons script two MouseUp and remove the code that you have applied to the text field:

    var f = this.getField("CreditLimitAmount");
    if (event.target.value=="CLYes") {
        f.readonly = false;
        f.fillColor = color.white;
    } else {
        f.readonly = true;
        f.fillColor = color.gray;
    }
    
  • change the field type selection list of text based on the data in the other domain.

    Hello

    We have a requirement where we are looking to display the page as element select list or a free text field based on the value of the item to another page.

    Say, we have two fields

    Day:

    Products:

    If day = 'Monday' produced a drop in low field of another product would be a free text field.   Is this possible in APEX?

    This is the configuration I did.

    I used the field produced twice (as a text and list field select) as an element of a page., dependent on the value of the day I used the dynamic properties of actions to show/hide these fields.

    However, when I click on submit, it throws an error:

    ORA-06550: line 1, column 108: PL/SQL: ORA-00957: name of column in double ORA-06550: line 1, column 13: PL/SQL: statement ignored


    Kind regards

    Satya

    You can have both share the same database column, the process of the APEX DML does not know how to consolidate.

    You will need to add a calculation and determine the real value based on two fields, up to an only one mapped to db.

  • How can I change the field send when I click on an email on a Web of Thunderbird site address to Gmail? I want that Gmail Manager.

    I want to change the default value of my Thunderbird address Manager to have Gmail to be one who sends emails by default.
    I don't want anyone to know my private E-mail address using the Thunderbird client.

    This has nothing to do with Thunderbird.
    http://www.lmgtfy.com/?q=Gmail+default+mail

  • Label, change the field and the button on the problem of a line

    Hi all

    I was pulling my hair out on this and could really do with some tips. I'm putting a label, a text field and a button of bitmapfield on the same line, but for the life of me I can't work that way round. If I put the front button to the text box field, it works.

            // TEST 3 CONTROLS ON A ROW
    
            final Bitmap imgCalc = Bitmap.getBitmapResource("bgCalc.png");
    
            LabelField lb = new LabelField("0.00");
            EditField ef = new EditField();
            BitmapField  bf = new BitmapField(imgCalc, BitmapField.FOCUSABLE){
                protected void paint(Graphics g) {
                    // Draw text on button image
                    super.paint(g);
                    g.setColor(Color.WHITE);
                    int x = (40 - Font.getDefault().getAdvance("Go"))/2;
                    int y = (imgCalc.getHeight() - Font.getDefault().getHeight())/2;
                    g.drawText("Go", x, y);
                }
    
                public int getPreferredWidth(){
                    return 40;
                }
            };
    
            HorizontalFieldManager row0 = new HorizontalFieldManager();
    
            row0.add(lb);
            row0.add(ef);
            row0.add(bf);
    

    Excuse the code, but it's test code to make it work. As mentioned above, if I add that Label, Edit, Bitmap controls it only shows the label field and edit. If I swap the text field and the field bitmap around so that the text field is the last one, it works.

    What I am doing wrong?

    Thanks for looking

    Paul

    EditField always takes all of the width available to it.

    You must override its layout (width, height) and pass below the width values to leave space for the BitmapField. Something like

    protected void layout(int width, int height)
        {
            super.layout(width * 60 / 100, height);
            // sets width of this field to 60% of the total available width
        }
    

    would do.

  • Change the field values of multiple text searching a word/words in their name.

    Hello

    So in my document, I load all the text fields roughly the same name than just with slight variations in their name.

    For example:

    FldTxt

    FldTxt1

    P1. TemplateName.FldTxt

    P1. TemplateName.FldTxt1

    ... Etc.

    The way this works is that each individual text box represents a parameter for a single element, so in this case there are 4 products.

    Is the way in which these parameters are selected, the user presses a button that generates a copy of a template page.

    On this page are a group of checkboxes, buttons and drop-down lists, these particular text fields display the value of a drop-down list.

    This is so that when the user has finished with the generated page, it can be removed and all the information is stored on the main page for later in the process.

    Because of how the elements of work means that fields can either displays a 'None selected' or option selected, BUT they cannot stand by the option that was selected.

    For example;

    FldTxt "none".

    FldTxt1 "selected Option2.

    P1. TemplateName.FldTxt "selected Option2.

    P1. TemplateName.FldTxt 'None Selected '.

    I hope this explains the theory behind it.

    So I wonder is what I could put these text fields values by searching for a keyword in their name? For example. If the field has "FldTxt" in its name, and its value is not equal to "None Selected", change its value to the value of the drop-down list of the most recent.

    The reason why I want to do it in this way is because there is no predefined number of these text fields, there might be only 2 or 200 because it depends on the number of items in the form.

    So I imagine it would go something like this;

    for (var i=0; i<this.numFields; i++) {
        var f = this.getField(this.getNthFieldName(i));
        var nameSearch = //search for keywords in a field name
        var dropdown = //the name of the dropdown
        if (f.nameSearch == "FldTxt" && if f.type = "textfield") {
            if (f.value !== "None Selected") {
                f.nameSeach.value = dropdown.value;
    

    My apologies if the syntax is incorrect or even impossible, but I don't know exactly what I'm asking check I just know what would be the outcome.

    I know that we can search for words in a document so I wonder if it is possible for domain names

    Your code is not quite correct. If I understand this code should do the trick (you may need to adjust the names of fields and values, however):

    var nameSearch = "FldTxt";
    var dropdown = this.getField("Dropdown").value;
    for (var i=0; i		   
  • Quick question: change the field names in the contact Muse forms

    I'm sure this is a stupid question, but I can't find how to change the names/labels (those of the email I receive) of my custom fields added. I added a few boxes and in the email that I receive, they are labeled as: "the check box label: I don't know which is which, because I added a couple.

    I use the standard form of the last Muse CC widget. Thank you!

    Thanks for the link.

    Could you please share your with us .muse file to study? Please send it to [email protected]. If your file is more than 30 MB, you can use something like Adobe SendNow or SendThisFile. Don't forget to mention the link to this forum thread in your email (with Air/Muse/operating system version you are using) so that we can identify the file.

  • How can I change the fields displayed in the CSS Designer Properties window?

    I'm following a tutorial of DW

    How to make and the style of a web page in Dreamweaver. Adobe Dreamweaver CC tutorials

    I'm at the end of the third part. Everything goes perfectly until it's time to change the footer. When I click on the footer tag and look in the properties field and add Clear, I don't see the alignment options. The video shows an 'other' window below the background field.

    Mine shows "custom". So I'm clearly adding to the custom field, not the field others and it show no align function. How to show than others on the ground instead of custom?

    You're following tutorial Dreamweaver CC and using Dreamweaver CC 2014 where 'other' property group name was changed to "custom".

    More information is available at the link below.

    Using Dreamweaver | Summary of new features

    I think that the link will help you understand.

    Thank you

    Lalita

  • How to change the field artist/creator EXIF JPEG file?

    I need to change the EXIF artist field in the original camera JPEG files.

    With LR I can change the creator metadata field. I can then "Save metadata to file" or "Export" files.

    "Save metadata to file" modifies the IPTC and XMP fields, but still empty EXIF field.

    "Export" fills the EXIF artist field creator - it's good, but re-compress JPEG images - it's bad.

    Is there a way to manage the field EXIF artist without re-compression?

    Thanks, Elen.

    It cannot be done in Lightroom, but you can use something like ExifToolGUI http://freeweb.siol.net/hrastni3/foto/exif/exiftoolgui.htm

Maybe you are looking for