Changing row color through a drop down box????

Is there a way I can get a table row to change color based on the value of a drop down box? I have 3 color options in the drop down list: yellow, green, red. I'm trying to get it so when I select a color in the list (like for example green) the whole row of that table fills with green. I'm searching for an answer and I can't find it. Any help would be greatly appreciated Thanks :)

Check the code very carfully, you appear to have left off a number of quotes:
// force to white in case there is no match following
Page1.Shape.LeaveType.border.fill.color.value = "0,0,0";
//changes row to red
if(LeaveType.rawValue == 4) {
Page1.Shape.LeaveType.border.fill.color.value = "255,0,0";
//change row to Green
if(LeaveType.rawValue == 3) {
Page1.Shape.LeaveType.border.fill.color.value = "0,128,0";
//change row to Blue
if(LeaveType.rawValue==2) {
Page1.Shape.LeaveType.border.fill.color.value = "0,0,255";
//keep row white
if(LeaveType.rawValue == 1) {
Page1.Shape.LeaveType.border.fill.color.value = "0,0,0";
Or you could use the "swithc(){}" statement:
var FillColor = "0,0,0"; // white
switch(LeaveType.rawValue) {
case 4:
FillColor = "255,0,0"; // red
break;
case 3:
FillColor = "0,128,0"; // green
break;
case 2:
FillColor = "0,0,255"; // blue
break;
case 1:
break;
default:
app.alert("Unkown Leave Type: " + LeaveType.rawValue, 1, 1); // identify unkown leave type
break;
Page1.Shape.LeaveType.border.fill.color.value = FillColor;
You might want to also open Acrobat and check the Debugging Conosole for errors.

Similar Messages

  • How do i change the backgrond color of a drop down box.

    I'm creating a form which has a colored background and a drop down box with 5 choices.  The problem is the font color in the drop down box is white and so is the background color of the drop down box so the selections are not visible unless you scroll over them.  I would like the background of the drop down box to match the background of the form. 
    Also, can the font size of a selection in a drop down box be different then what is displayed.  The font is set to 35 so it's huge when displayed in the drop down box.  It would be nice if the selections were displayed in the drop down box in size 10 font but displayed on the form once selected as size 35.
    Thanks!
    Mike

    You can set the background colour with (in formcalc):
    $.fillColor = "5,5,5" // obviously changing the numbers to the RGB colour you want
    or if it is not going to change just set it in Border tab under Background fill.
    For the size of the font - set the dropdown box to size 10 font and then in the exit event of the dropdown list put (in formcalc):
    $.font.size = "35pt"

  • In FF4, how do I change the orange color of the drop down box that says 'firefox'?

    I find the bright orange drop down box very annoying and distracting. How do I change the color?

    One way is to use the App Button Color add-on - https://addons.mozilla.org/firefox/addon/app-button-color/

  • How to Change a Default Value from Drop Down Box displayed in Web Dynpro?

    Hi,
    How to Change a Default Value from 'High' to 'Low'  in a Drop Down Box for RANGE field displayed in Standard Web Dynpro Component.  I saw a Default Value set for a RANGE field  in View Context When I select that field and click on Display. I am seeing Default Value set it to 'HI'. Please let me know how to change from HIgh to Low.
    I appreciate your help!
    Thanks,
    Monica

    hi,
    use the set_attribute( ) method now to set the attribute with a particular key eg HIGH in ur case
    // u can use the code wizard( control +f7) this code will be auto generated when u select the
    //radio button to read the context node
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
      DATA ls_cn_node TYPE wd_this->element_cn_node.
    * navigate from <CONTEXT> to <CN_NODE> via lead selection
      lo_nd_cn_node = wd_context->get_child_node( name = wd_this->wdctx_cn_node ).
    * get element via lead selection
      lo_el_cn_node = lo_nd_cn_node->get_element(  ).
    * set single attribute
      lo_el_cn_node->set_attribute(
          name =  `ATTribute name.`
          value = 'LOW' ).
    it will solve ur query ..
    also refer to this component
    wdr_test_events -> view dropdownbyidx and dropdownbykey ->method name onactionselect.
    regards,
    amit

  • Colors in highlighted drop down boxes not visable. Colors bleach out.

    Can't see the url in drop down boxes when they are highlighted by the cursor.
    Using standard colors and allow web sites to choose their own

    Correction... that should be Safari 4.1.3
    Now it's starting to quit elsewhere, including this slow-loading site.
    Boot / Restart doesn't seem to help.
    Would simply re-installing Safari help? If so, is there any uninstall needed, or other steps to take?
    Will bookmarks be retained with a simple re-install?
    thx

  • PCUI : Changing the Default in the drop down box.

    Dear Gurus,
      How can I change the dropdown default in the show dropdown box of Lead application from "My Favorites" to "My Leads". Also, if I want to add an extra listing in this dropdown box how do I achieve it.
    Thanks in advance!
    Vivek.

    You are in 4.0, i did't remember the GET dropdown as it is not there in 5.0 release.
    GET dropdown gets its values from the fieldgroup(FG) assigned to the search area. There is rule to display fieds in the get dropdown. It takes all fields in the FG which are visible in the LIST. <b>FIRST</b> field in the FG will be shown as default in the GET DDLB.
    <i>For example look at the CRMM_ACCOUNT shows Account ID as default. Because field PARTNER1 is first field the FG ACC_SEARCH_LOG_11 which is inlcude in the FG ACC_SEARCH_04. Move the SORT1 field to position 1 in FG ACC_SEARCH_LOG_11. Now "Sort term 1" will be defaulted in the GET DDLB</i>
    Hope this will solve the problem.
    Raj

  • HT4864 The Outgoing Mail Server drop down box in mail setup keeps reverting back to 'None' - anyone have any ideas why?

    Hi
    I've been having difficulties with mail on my Mac and have checked all the settings.  I have three mail accounts, 2 iClouds (different acct names) and 1 bigpond account. 
    Whenever I change the outgoing mail server drop down boxes for the iCloud accts and save my changes, I go out of it then when I go back to the iCloud accts the drop down boxes for both iCloud accounts have reverted back to 'None'. 
    Is this of any relevance?  Is it 'normal'? 
    I've tried deleting all mail accounts and adding them all again but the same thing still happens. 
    I have been on Apple Support and followed the Mail Acct setup tutorial.
    I'd appreciate any help on this matter thanks.

    Thanks for your reply Winston Churchill.
    Because I'd been having problems which had recently been resolved by AppleCare Support I decided to go through all my accounts and check their individual settings.  I found a Tutorial on Apple support for setting up or verifying email account settings and found mine were different so I changed it.
    In any event I took your advice and just went with the option of automatically setting the iCloud accounts up and I haven't had anymore problems thus far - fingers crossed.
    I do however note that my drop down box in account settings still says 'none' for the outgoing mail server and the 'use this server only' check box isn't ticked despite being ticked in the 'verify account' info on the tutorial, so hence my question to the community - did this matter and what was the difference?
    I will let sleeping dogs lie I think and will see how I go.
    Many thanks for your help.

  • I have 3 drop down boxes in my report done SQL SSRS .. I want t to put them in the same row (just one row) ..how can I do it.?

    I have 3 drop down boxes in my report done SQL SSRS .. I want t to put them in the same row (just one row) ..how can I do it.?

    Hi Sashi123,
    Just as Ivan said, we do not have the ability to change the Report Manager in this way. Because we can’t change the parameters locations as this is not supported to write expressions for the location of parameters.
    While we can build a custom application in Visual Studio that we can get it through codes after deploying the report, then through URL we can get it by customization.
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Cannot change Email Preference in Drop Down Box

    All my software is up to date on Snow Leapord. I use AOL Desktop for accessing my email and it is the most current AOL Desktop for Mac 1.7.722 (722). I just did the desktop upgrade 2 weeks ago.
    I can no longer send pictures through AOL.
    When I go to iPhoto preferences > General > the drop down box next to "Email photos using: has "Mail" highlighted. I cannot choose anything else. They are all greyed out (AOL, Eudora and Microsoft Entourage). I don't use Eudora or Entourage so they don't matter to me, but all 3 cannot be used. I have tried everything to get it to recognize AOL but it does not.
    I called AOL and they had me unistall every AOL application and file on the computer and reinstall the new AOL desktop again but this did not work either. They said it was not their problem and must be with Apple and iPhoto.
    When I called Apple (I have Apple care), they gave me a work around to send photos to the desktop and then attach to an AOL email, They could not help me otherwise, but I would rather use it the way I used to. Why won't it allow me to pick AOL (Which is shown in the drop down)
    Can anyone give me help.

    A good general step for strange issues is to renew the iPhoto preference file - quit iPhoto and go to "your user name" ==> library ==> preferences ==> com.apple.iPhoto.plist and trash it - launch iPhoto which creates a fresh new default preference file and reset any personal preferences you have changed and if you have moved the iPhoto library repoint to it. This may help
    This does not affect your photos or any database information (keywords, faces, places, ratings, etc) in any way - they are stored in the iPhoto library - the iPhoto preference file simply controls how iPhoto works - which is why renewing it is a good first step.
    also note that you probably can select the photo(s) and drag them to the AOL Desktop icon in the Dock to create your e-mail
    I just did the desktop upgrade 2 weeks ago.
    I can no longer send pictures through AOL.
    To me this clearly says that the issue is AOL desktop since it worked until you upgraded and after upgrading does not

  • How to make choices in a drop down box change a value in another box

    Hi,  I am fairly new to the world of creating forms in Adobe so please bear with my question if it seems simple.  I have seen where a lot of people are using code and I am very confused.  I am creating an order form and have created a drop down box (combo box).  There are 4 choices in this drop down box.  When the user chooses one of these choices, I would like an amount to appear in a seperate box.  Each choice would have a different amount.  Is this possible?  If so, could someone please give me step by step instructions.  I appreciate any help given!!

    Yes, the best way would be to set your 'Amount' value into the 'Export Value' for each item in the combobox. Then, you can set the calculation for your text field to the following (Be sure to change "ComboBox1" to the name of your combobox):
    var f = this.getField("ComboBox1");
        var a = f.currentValueIndices;
        var s
        if (typeof a == "number") {// a single selection
            s = (f.value);       
    event.value =  s

  • I just bought a Dell Precision M3800 laptop - screen res 3840 x 2160  when I open photoshop the task bar and tools and layers etc are in 4pts size   I changed my % in my image in my control panel and if I go to open file the drop down boxes are in good pt

    I just bought a Dell Precision M3800 laptop - screen res 3840 x 2160  when I open photoshop the task bar and tools and layers etc are in 4pts size   I changed my % in my image in my control panel and if I go to open file the drop down boxes are in good pt sizes  how do I make the layers and tool bars bigger?  Please help@

    Windows will scale applications display or windows will not scale application display depending on how the application is coded.  Photoshop is coded in a way that its display is not scaled by windows.  Photoshop knows about your displays high pixel count not its resolution  so it uses its pixels  however it does not scale its UI to make it usable on your display.  Other application let Windows  scale their display output.   For example Microsoft default for is Surface Pro 3, 216 ppi display is to scale applications display up 150% so the surface pro 3 display which has 2160x1440 pixels a 216 ppi resolution look like at display with the user is using with 1440x960 pixels.  The Application works like the display is 1440x960 and Windows scale those pixels to the displays using the displays  2160x1440 pixels the effectively changing it resolution to 144ppi rather than the actual 216ppi.
    The reg update  and external manifest file  effectively tells photoshop its working on such a size display display some number of pixel wide and some number photoshop uses that as the display size  in turn Windows scale those pixels to use the displays 2160x1440 pixels efector lowing its 216ppi resolution.  Photoshop CC 2014 2X UI would be like using windows 200% option applications would be shown the are working on a display 1080x720 instead of the Surface Pro 3 2160x1440. Note that 1080x720 does not meet PS requirement of 1024x768.  Photoshop UI would not fit on the Surface Pro 3 display..
    Since you have a 4k display if you have CC 2014 you can use its 2x UI effectively Photoshop will be running on a 1920x1080 display and have half the resolution of you 4K display  3840x2160 pixels four native pixels are use as a single pixel.   1920x1080 pixels exceed PS requirement.

  • Using Mac 0S X Yosemite, in Print Setting when I select layout / arrows select print settings / there is no Basic drop down box to set color management on or off. I'm using Artisan 835 printer.

    Using Mac 0S X Yosemite, in Print Setting when I select layout / arrows select print settings / there is no Basic drop down box to set color management on or off. I'm using Artisan 835 printer.

    No - I got the iMac 27 because it was calibrated at the factory(?) and was highly recommended by friends and photographers. No complaints  at all, but this printer issue is driving me crazy. I was thinking that if I upgraded to an epson pro printer ICC profile will be on there website. I can't find any for the 835. By the way I didn't calibrate the old dell monitor either and I have had several photos published with no problem at all. Just a note, on epson website there are no printer stating they will run with 10.10 Yosemite. I was looking at the R2000 series. Right now I editing photos that I have to have ready by Jan, maybe by then epson will have something ready.

  • Changing Values of Drop Down Box??

    I have created a form that has 100 drop down boxes, each drop down box has the same values for the user to choose. I would like to know if it is possible to remove the selected value from the remaining drop downs once it has been selected?
    Example:
    Drop Down Box 1: user selects "A" when the user moves to Drop Down Box 2 "A" is not available for selection but the remaining values are. User Selects "B", moves to Drop Down 3 and both "A and B" are not available for selection.
    I hope this makes sense and can't figure out how to make this happen, I am a fairly new user to LC and would appreciate any help. Thank you for your time!!

    Hi,
    While technically you can do this, I think that it would be a poor performance because the script would need to loop through the 100 dropdowns.
    You would need to place script in the preOpen event of the dropdowns, that loops through and looks at previous selections.
    I worked this up over the weekend, but it is not 100%. http://assure.ly/KXAUg5.
    The script in the preOpen event calls a function in the AssureDynamics script object (see the Hierarchy).
    Hopefully someone can pick up the running on this, as I wont be able to for the week.
    Good luck,
    Niall

  • Hi, im using ff 8.1, and when i use drop down boxes the options show but it doesnt change when i select an option.

    So im using this website, and im not sure if this problem occurs with other website because i havent come across any, but i select the drop down box menu, the options appear, i select an option, but it doesnt actually use my option it just goes back to default. This website is like a form filling interface so i need to save it at the end, but firefox doesnt allow me to do that either.
    It works on google chrome fine so i doubt its a problem with the website. I have only just installed firefox 8.1 and havent changed any settings or applied any addons.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    In Firefox 4 and later Safe mode disables extensions and disables hardware acceleration.
    *http://kb.mozillazine.org/Safe_mode
    Try to disable hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    If disabling hardware acceleration works then check if there is an update available for your graphics display driver.

  • Drop Down Boxes not Populating on the SCM business package through EP7

    Hi ,
           All would greatly appreciate if any of you out there has experinced this problem
    We are using the Enterprise Portal which has recently configured using https or SSL. we are using the Business package SCM 5.0.
    When we use the SCM system directly and we go to any iViews we have all the drop down boxes work perfectly well . If the user selects the Value help (drop down boxes) they all show the value and then the selected value populates back to main screen. However, using the Enterprise Portal if the User goes to the SCM business Package iView the value help shows up all the value, but the value that is selected does not populate back to main screen.
    Now again if we use http as opposed to https we do not have any issue.
    Thanks . Any help on this will be greatly appreciated.

    I don't have a clue, but figured I might make a suggestion. Did you touch and hold the pick box? Hope that works for ya.

Maybe you are looking for

  • ASA 5505 to allow 2nd network segment through mpls

    I have been having a heck of a time trying to configure my 5505 to allow the second segment on my network to use the internet. Office 1 has a fiber internet connection, and all traffic flows fine. Office 2 had gotten it's internet from AT&T, via a ne

  • Errors with publishing, please help

    I have recently published my site to a folder and then used fetch to transfer it to a server. When the site is transferred there are several errors that appear which include, spacing issues and strange icons on the pages. The website is www.buffbus.c

  • Prepared Statement 8.1.7 problem with spaces

    I have a char field that is char(10). It has characters like '39' stored in it. That is of course space filled. When I try to use that field in a select statement where clause in a prepared statement it does not return any rows. However, if I define

  • Having trouble with adobe flash cs6 accepting a variable for the scene calling gotoandplay

    ive got a simple quiz going and i seem to have hit a bit of a brick wall, in order to avoid having a seperate wrong answer scene per question i decided to impliment a simple history system, with a string variable defined on the first scene as a globa

  • The Sims 2 For Mac! Will it Work??

    im thinking about purchasing the sims 2 for mac os x for my laptop. but ive read so many reviews and many say it doesn't work on MacBooks. can anyone clarify this for me? will it work on my macbook?? i have a Mac OS X Verison 10.5.6 if that helps any