CW3D chart fill color question

Hello

When I use CW3DGraphLib_CWPlot3DSetFillColor on a lot that I created in the IUR, everything is OK apart that the value of blue is actually red and vice versa with the red color value.

When I add a new path using CW3DGraphLib_CWPlots3DAdd and then change color with CW3DGraphLib_CWPlot3DSetFillColor the color displayed is not the same when I put the same color value to the plot that I created in the IUR.

Worse still, it is not possible to set the color in white or black. RED, GREEN and BLUE have the same value, the result is always gray.

What I did wrong?

Please find attached a test program that demonstrates this behavior.

Bertrand

Hi Bertrand,.

I found the other setting, you need to change to get the fill colors to look right.  When you create a new path, the new path takes the properties of the PlotTemplate object.  In this case, the default PlotTemplate object has the property ColorMapStyle the value "1 - cwShaded" by default.  If you change this "0 - cwNone ', the behavior will be the same as your other parcel of land.  Please let me know if you have any questions!

NickB

National Instruments

Tags: NI Software

Similar Questions

  • Another question border.fill.color.value

    I'm trying to script an if statement to set the background value according to the instanceIndex of a subform.  I tried it in the click event of the addButton and the subform indexChange event.  I saw an example of exactly what I'm trying to do, but for the life of me I can't find it now.  I searched this forum both the users of the forum and I know that it was in one of them.  In any case, here's what the script looks like:

    -form1. Main_Subform.AdditionalAssaysSubform::indexChange :-(JavaScript, both).

    If

    (form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '0') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    If(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '2') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '4') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '6') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '8') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = '240,240,240 ';

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = '240,240,240 ';

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '1') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    on the other

    If(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '3') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '5') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '7') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    on the other

    if(form1. Main_Subform.AdditionalAssaysSubform.instanceIndex == '9') { }

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDropdown.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssaysDataTable.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayAvgNeg.border.fill.color.value

    = "255,255,255";

    Form1. Main_Subform.AdditionalAssaysSubform.AddedAssayDisplacement.border.fill.color.value

    = "255,255,255";

    }

    I also tried to use the or (|) and combine the fi.  My question is... I use the correct event; I place the conditional statement in the appropriate place; or I again in left field?  Any suggestions would be much appreciated.  Thanks in advance. -rpeterson

    Hi Renee,.

    Here is an example highlighting the background color of the field nested inside a repeating subform based on the index of the repeating subform. The background color will not change enter/exit the fields but will create a color pattern similar to shadow line of the tables.

    This JavaScript script lives in the repeating subform AdditionalAssaysSubform indexChange event.

    nIndex var = this.instanceIndex;
    nColor var;

    If (nIndex % 2 == 0)
    nColor = "240,240,240";
    on the other
    nColor = "255,255,255";

    Use the following if you want to change the background color of the object
    AddedAssaysDropdown.border.fill.color.value = nColor;
    AddedAssaysDataTable.border.fill.color.value = nColor;
    AddedAssayAvgNeg.border.fill.color.value = nColor;
    AddedAssayDisplacement.border.fill.color.value = nColor;

    Or background color of the following if you want to change the widget
    AddedAssaysDropdown.ui.oneOfChild.border.fill.color.value = nColor;
    AddedAssaysDataTable.ui.oneOfChild.border.fill.color.value = nColor;
    AddedAssayAvgNeg.ui.oneOfChild.border.fill.color.value = nColor;
    AddedAssayDisplacement.ui.oneOfChild.border.fill.color.value = nColor;

    See you soon

    Helen

  • Error filling color and trolling in CC host

    Since the Flash CC to CC update animate on my Mac, I'm having some problems - major

    1 fill color no longer works. It does not change color. I can drops eye of a different color, but then when I select the brush or paint bucket color back to the original color.

    2. when I draw with the Brush tool, it takes a second before it sets. This can be a serious problem when I want to quickly draw as the line can deform when she set.

    Can anyone help with any of these issues?

    Hi Nick,

    We are aware of the first question and studying in its difficulty. It seems to happen especially when you are working with a Wacom on a Mac computer. You can return to the use of Animate CC 15.1.0.210 version for now until the fix is available.

    For the second problem, you can elaborate a little more and report it here - feature request/Bug Report Form

    -Mabrouk

  • JavaScript to perform the Action on the ground form - change the fill color according to requirement

    Hello world

    I apologize if this question has been asked already - but I was looking for the last hours of the couple and not finding what I need. I have a PDF form (created from an excel file) and need to change the fill color of a field drop-down list box to, based on the selection made by the user of this form field.

    Details - I have several questions on the application form. I have install a form field list box for each question so that the user can select the following options:

    Yes

    NO.

    Not sure

    I see in the Properties menu of the form field that I can perform an action when their "clicks of the mouse to the top" as the trigger (option run JavaScript); but I do not know what script to enter to do. This is where I need help

    So I need the script when the user selects one of the listed options, the fill color will change depending on the selected answer:

    'YES' changes fill with green color

    'NONE' red fill color change

    Yellow fill color of changes 'UNCERTAIN '.

    Please let me know if you need more details or a better explanation of what I need. Thank you for anyone who can help!

    PS - I'm a complete amateur in any type of JavaScript or codes, so I may need some explanation or if this is not possible.

    Do not use the mouse event to the top, but rather, you can use the custom following validation script:

    Custom script to validate combobox

    (function () {}

    Switch (event.value) {}

    case study "Yes":

    event.target.fillColor = color.green;

    break;

    case "No":

    event.target.fillColor = color.red;

    break;

    case 'uncertain ':

    event.target.fillColor = color.yellow;

    break;

    by default:

    event.target.fillColor = color.white;

    break;

    }

    })();

  • Map of formats (fill color, bubble, form Variable, and Image) does not.

    Hello


    When adding new formats of map shows nothing in the editor. If I go on the button "Preview the results in a dashboard" shows blank page yet, but if results in HTML or PDF format print, I can see the graph!

    This happens with all types of graphics, except "Pie Graph" 'Bar Graph', which work well.

    Someone had the same problem? I tested with different browsers, mozilla, explorer, chrome, and I also tried to restart all services Obiee, delete cache, etc...

    It is a part of generated XML:

    + < saw: spatialLayers > +.
    + < saw: sid = spatialLayer "" __OBIEE__MAPVIEW__LAYER__OBIEE_NAVTEQ_Sample__OBIEE_COUNTRY__ ~ v1 ' class = "omv_predefined_layer" layerID = "l0" > + "
    + < display saw: layerLabelFormat = "true" / > +.
    + < saw: optional > +.
    + < columnID saw: columnRef = "c2bb0f03cea4eb49f" / > < / saw: optional > +.
    + < saw: visuals > +.
    + < saw: visual visualID = 'v0' xsi: type = "saw: pieChart ' display ="false"> +.
    + < saw: ToolTip / > +.
    + < chartSize saw: varySliceSize = "10" > +.
    + < columnID saw: columnRef = "c16d3d25a05a2c8ed" / > < / saw: varySliceSize > +.
    + < saw: slices > +.
    + < columnID saw: columnRef = "c7e5241ff87d2525b" / > < / saw: slices > < / saw: visual > +.
    * + < saw: visual visualID = 'v1' xsi: type = "saw: colorScheme" > + *.
    * + < mode saw: title = "custom" > + *.
    * + < saw: legend > + *.
    * + < saw: text > expenses ADVERTISING < / saw: text > < / saw: legend > < / saw: title > + *.
    * + < saw: tooltip > + *.
    * + < columnID saw: columnRef = "c7e5241ff87d2525b" / > < / saw: tooltip > + *.
    * + < saw: varyFillColor binType = numBins "continue" = "2" allowThresholdEdit = "false" > + *.
    * + < columnID saw: columnRef = "c16d3d25a05a2c8ed" / > + *.
    * + < saw: rampStyle > + *.
    * + < saw: rampItem id = "0" > + *.
    * + < class saw: g = fill 'color' = "#003e70" / > < / saw: rampItem > + *.
    * + < saw: rampItem id = "1" > + *.
    + < class saw: g = fill 'color' = "#e9f7fb" / > < / saw: rampItem > < / saw: rampStyle > < / saw: varyFillColor > < / saw: visual >< / saw: visuals > < / saw: spatialLayer > < / saw: spatialLayers > +.


    Can someone help me?

    Thank you.

    Published by: user13498538 on 24-mar-2011 12:31

    Published by: user13498538 on 24-mar-2011 12:54

    Published by: user13498538 on 24-mar-2011 12:58

    Hello

    The problem was the language of the user. When you access obiee11g with any other language that English was error with certain types of charts.

    Thank you

    Alex.

  • contour even color than the fill color

    Hi all

    This question is related to my previous post but can still be considered as indenpendant. Let's say I have a filled red square and a blue filled circle of blue. The two have no outline (or transparent contour if you wish). I want to select the two objects together and ask for illustrator to add a stroke to each of them with the same color as their own fill color, that is to say, blue for the blue and red circle for the red square. Is this possible? Thank you

    If it's the same color as the background, why do you want an overview? Add an offset path effect. In this way it is also possible to apply it to multiple objects.

  • find by content en cells replace stroke and fill color

    I've generated in InDesign CS3, a catalog with hundreds of tables.

    Unfortunately there is a mistake or two in the tables of construction. In a way, I need to replace a contour of a cell color and also a fill color.

    So my question is if there is a way to InDeisgn CS3 for automatically...

    • research in a document for the cells in a table with "Black_EN text color" AND "Black_EN fill color" and change this particular cell line color in Black_EN
    • research in a document for the cells in a table with the color of the text 'Black_EN' AND 'fill color black' and change the fill color of particular cell in Black_EN

    Can someone help me with a usable script? I'm a newie to scripts so that any help is useful!

    Thanks in advance, Pascal (form Belgium)

    Aaahh... the old adage of an image equal to a thousand words. In this case, the words are long enough, because the image is > 280K.

    O - kay. You may have a lot of tables, some bad colors, but the text is still the appropriate color. How does this sound: you click inside any table, and the script checks the current (*) text color. And then it assigns all the traits that color, and fill each cell with a 50% fill pattern. This means that you can select a table, run the script, select the next, run the script, etc. until done (or totally bored, everything which comes first).

    (*) In fact, the color of the text of the first character in the upper-left cell. I hope this isn't a problem.

    The script is quite indifferent to your selection: any where inside, in the text or with a cell, row, column, or even the entire selected table is no problem.

    Like enough! (see English people choke on our Dutch gees)

    table = app.selection[0];
    if (table.hasOwnProperty("baseline"))
     table = table.parent;
    if (table instanceof Cell)
     table = table.parent;
    if (table instanceof Column)
     table = table.parent;
    if (table instanceof Row)
     table = table.parent;
    if (!(table instanceof Table))
    {
     alert ("Echt niet in een tabel!");
     exit(0);
    }
    color = table.cells[0].characters[0].fillColor;
    black = app.activeDocument.swatches.item("Black");
    table.cells.everyItem().properties = {
     topEdgeStrokeColor:color,
     bottomEdgeStrokeColor:color,
     leftEdgeStrokeColor:color,
     rightEdgeStrokeColor:color };
    for (aCell=0; aCell		   
  • dynamic changes to decimal or text fill color box

    I already asked a question on how to programmatically change the background color of just the object checkbox box.  The code (which was working fine) was:

    xfa.resolveNode("form1.page1.cb.ui.#checkButton.border.fill.color").value = "255,255,0;

    Now, I need to do something similar for other types of objects.  In particular, I need to change the color of a decimal field and a text field.  I tried to find similar tags in the XML source that could give me some advice.  I tried the following (based on my review of XML) for the decimal field, but it did not work:

    xfa.resolveNode("form1.page1.cb.ui.#numericEdit.border.fill.color").value = "255,255,0;

    and

    xfa.resolveNode("form1.page1.cb.#numericEdit.border.fill.color").value = "255,255,0;

    No indication on how I'd change for the decimal and text fields?

    Thank you
    Emily

    Hi Emily,.

    You are on the right track. Check the XML source will highlight the syntax to access this property.

    Over time, I adapted the script to include collecting the SOM of the object and use it in the script. This way if the name of the object (or the name of the subform) is changed, so the script still works. The only thing you need to change is the reference of the user interface based on the object type.

    The numericEdit will work on decimal objects and textEdit will work on text fields.

    var vName = this.somExpression;
    var fieldObj = xfa.resolveNode(vName + ".ui.#textEdit.border.fill.color");
    fieldObj.value = "255,255,255"; // white
    
    /* Check the type of object and change the .ui reference:
         Date field =      #dateTimeEdit
         Dropdown =      #choiceList
         Checkbox =      #checkButton
         Text field =      #textEdit
         Numeric field =     #numericEdit
    */ 
    
    Good luck,
    
    Niall 
    
  • Merge paths with the same fill color

    Hello

    I'm trying to use pathfinder to merge paths with the same colors. I have a lot of colors, so that Select > same fill color would solve my problem, it is very slow.

    My typical workflow is basically by selecting the same colorful and using pathfinder (unite) paths to combine. If the paths have different colors that he would do all the unique color of merged paths. It does not work.

    I want to combine only the paths with the same fill color with the other, but I couldn't come up with a good workflow.

    Someone had a similar problem/situation? What are my options?

    I appreciate all the help.

    Screen Shot 2016-03-23 at 11.37.03.png

    Select all, and then click 'Merge' pathfinder

  • OBIEE 11 g (11.1.1.7.1) mapview - no fill color

    Hello

    I need some help here:

    We have a project that requires that we display data on a plane on obiee 11 g. After creation of spatial metadata about the database and have created themes on the map and created a source of data, in MapViewer, and imported all these themes into obiee (Administration > manage map data > import layers and reference cards).

    The challenge that we have is, there is no fill color on the display card or any form of presentation data even you there is data on the table view. The map view is empty, none of the themes display data as expected.

    Your help would be appreciated, thanks.

    Hello

    We found the solution from another blog that was created earlier:

    OBIEE - MapView does not appear the BI data layer

    Thank you

  • Keeps changing between the stroke color and fill color? Help!

    Hello world! While working, I have will have to draw the outline of something and then changes to color in, and as I do, I'm changing the fill color using the eyedropper tool, or the Swatches palette. Still my color doesn't seem to change.

    I expect the colors chosen, and it's because for some reason, the program has my color trait selected automatically, even if I use the paint bucket tool, which means that me changing colors is only to change the line color and so, having no effect on the fill color - so I'm frantically clicking to color something with my newly selected color , with does not, because that I do not change the fill color as I thought I did.

    What it seems to boil down to is, SOMETIMES when I draw or change a line, he commutes to line color, and change back when I use the eyedropper and paint bucket tools, as it did in Flash, nice and convenient. Is there a way to prevent it from doing this? Is there a way to make it how it used to be? It really starts to get exasperating.

    Other than I really like the new step up to Animate - the new tools and little more pleasant little General updates do and I want to thank Adobe for him--and make it clear that I am not at all ungrateful for her.

    Thanks in advance.

    Colin thanks for the tip, I could now clearly see the video!

    As Colin described - to 0.34 video, you select the part of the circle (stroke) that modifies the active fill color to the color of the outline (you can identify the active color looking at the State of the fill/stroke button in the tools Panel or color)

    The choice of the color swatch in the swatches Panel is the color of the outline (i.e. to the active color). You can just click Fill on the stage with the selection tool to change the active color to fill and begin your selection Swatch reflects in the painting of your filling.

    The main thing is, if you select only STROKE on stage the active color is set to the race and if you select only fill then the active color is the Fill value. Swatches Panel and color Panel will work to the active color.

    I hope this helps.

    Thank you!

    Mohan

  • Help me to find the stretch fill color

    Hi all

    In my illustrator file, I have some color of outline of objects filled with repeating fill color. I need to find it all and change color of outline with the color 'black '. I don't know that I have explained you clearly. Hope that the screenshots below gives the best image.

    Screen Shot 2015-12-21 at 11.13.41 AM.png

    I tried app.executeMenuCommand ("expandStyle"), but it does not work.

    Thank you in advance,

    Kitty

    In the menu selection, we can separate the other fills with transparent route objects, I hope.

    As I said, we must look outside the native features of Illustrator to select by compound path.

    Links to some add-ons variety is located here:

    prepression.blogspot.com.au/2015/01/Illustrator-selecting-similar-objects.html

  • Selection of objects from the fill color

    Hi guys

    Is possible to select a color to CMYK using JavaScriptobject?

    I want to group multiple objects with the same fill color.

    Thank you very much for your time...

    Please see the picture below...

    2.jpg

    Hello Puthoskey any good?

    Well, I wrote something like what I said, notes:

    This code works just to PathItems;

    Just CMYKColor;

    You must select a pathItem before running the script.

    Read selected item fillColor and a loop in all pageItems document, if the pageItem is a pathItem and having the same fillColor or strokeColor, it will be grouped with others;

    If you want to do it in other objects like textItems, you must follow the same logic;

    Try, test and enjoy, contact us for more rule.

    function selSameColor (){
    
        if(app.activeDocument.selection.length == 0){alert('Select a pathItem.'); return};
        if(app.activeDocument.selection.length > 1){alert('Select just one pathItem.'); return};
    
        var selFillColor = function(){
    
            var groupColor =  app.activeDocument.groupItems.add();
    
            if(app.activeDocument.selection[0].typename == 'PathItem'){
            var colorSel = new CMYKColor;
            colorSel.cyan = app.activeDocument.selection[0].fillColor.cyan;
            colorSel.magenta = app.activeDocument.selection[0].fillColor.magenta;
            colorSel.yellow = app.activeDocument.selection[0].fillColor.yellow;
            colorSel.black = app.activeDocument.selection[0].fillColor.black;
            }else{alert('This is not a pathitem.'); return};
    
            var itemsLength = app.activeDocument.pageItems.length;
            var items = app.activeDocument.pageItems;
    
            for (i = 0; i < itemsLength; i++){ 
    
                if(items[i].typename == 'PathItem'){ 
    
                    if(items[i].fillColor.cyan == colorSel.cyan && items[i].fillColor.magenta == colorSel.magenta && items[i].fillColor.yellow == colorSel.yellow && items[i].fillColor.black == colorSel.black){
                        items[i].moveToBeginning(groupColor);
                    }else if(items[i].strokeColor.cyan == colorSel.cyan && items[i].strokeColor.magenta == colorSel.magenta && items[i].strokeColor.yellow == colorSel.yellow && items[i].strokeColor.black == colorSel.black){
                        items[i].moveToBeginning(groupColor);
                    };
                };
    
            };
        if(groupColor.pageItems.length > 0){groupColor.selected = true};
        };
    
        selFillColor ();
    
    };
    
    selSameColor ();
    

    I hope this useful, see ya soon man.

    Best regards

    -Vinícius Baptista

  • Change the fill color based on the range of values

    Creating a form to inspect the parts. Work on the setting up of a text field to change the fill color based on the number or the data entered. For example: If is between 0-20 fill color is red, between 20-24 fill color is green, more filling 24 is still red, and if no data is entered in the fill color is white. The script below works for me but keeps the red field when data is deleted (empty) field. Not sure if im approaching this correctly so I should be looking at differently? I have different ranges for many fields and im trying to keep the script right to the front as possible. Thanks in advance for any help.

    If (event.value > '24')

    event.target.fillColor = color.red;

    Else if (event.value < '20')

    event.target.fillColor = color.red;

    else event.target.fillColor = color.green;

    You do not have... Change this line:

    Else if (event.value > '24')

    To do this:

    Else if (event.value > 24)

    And even with "20".

  • When I click on color chart or color in the upper right corner, it's just in the background color and foreground color, how can I fix it?

    When I click on color chart or color in the upper right corner, it's just in the background color and foreground color, how can I fix it?

    Make sure that the foreground is selected in your color Panel, not the color of background as shown here.

Maybe you are looking for

  • Playback Choppy/stuttering using airplay

    I've recently upgraded to fiber of sky. Download speed is 16 Mbit/s. I am listening to something from my iPhone to the TV via AirPlay. When I play just on the phone, the quality is perfect. But when I use AirPlay on tv playback is jerky and stutters

  • El Capitan is the gel.  Cannot force them to leave.  What should do?

    El Capitan is the gel while on the line. Cannot force them to leave. What should do?

  • Replacing the battery of Qosmio G30-204

    Hi people, the current battery I have takes about 10 minutes after full load.So, I think to replace. The battery I have right now is a PA3475U-1BRS. I can get my hands on a replacement but the model is:PA3476U-1BRS It is the same shape and everything

  • Wifi HP 2000 2000-2d70DX PC Notebook problem

    I bought the laptop A month and I got home and I tried to connect to the Internet. It connected but goes really slow and sometimes it doesn't even detect the connection. We have 2 other laptops, and they work Fine with the fast WiFi.They Go. But I do

  • How can I know for sure if I do or do not have virus Zeus?

    I am running windows 7 ultimate and I am currently on the updates. I clicked on a link on facebook to see photos from a friend. He opened with undesirable for the thread and nothing showed. I closed it. Immediately I received a notice of default mail