Change color of column background when entire column meets a condition

I'm trying to create a report that visually indicates staffing coverage during certain hours. The report has the hours of the day as column headers, and for each person-row, a column can contain a 0 if that person is not scheduled for that hour, a 1 if one person is scheduled for that hour, or 2 if 2 people are scheduled for that hour, etc.<p>
What I need is to show gaps in coverage, so I need to color red those columns where there are 0's for all rows in that particular column.<p>
thanks!

Couldn't you do this in the report SQL itself<BR><BR>The problem I see with this is that based on what she's asking (i.e. all rows in that column must be zero), you will not know if a column should be marked in red until after all of the rows have been retrieved and displayed. To do what you suggest, you'd have to run the report once to find columns that sum to zero, i.e.:<BR><BR>
SELECT SUM(col1), sum(col2)...<BR>
INTO v_sum_col1, v_sum_col2...<BR><BR>
Then for any column with a sum of zero -- add in the code you suggest into the second SELECT to return the data, possibly with a DECODE twist:
DECODE(v_sum_col1, 0, '&lt;span style="background-color:pink"&gt;0&lt;/span&gt;', col1)

Similar Messages

  • How to change color of column in advanced table

    Hi Guys
    I need to change the color of column in advanced table.
    Please help me .
    Thanks
    Subramanian

    Hi
    Can you please give the sample code for this
    I created advancedtable
    under this advancedtable , I created columngroup
    under this columngroup
    I created column1 and column2
    Here I need change the color for entire column1.
    Thanks
    Subra

  • Changing color of columns in CL_GUI_CHART_ENGINE

    Dear Developers,
    I am displaying a Columns Graph using class CL_GUI_CHART_ENGINE. My requirement is to change color of selected columns based on their height. For example if height of the column exceepds 10, then the color of that particular color is to be made red. Is that possible using CL_GUI_CHART_ENGINE ??
    Thanks and Regards,
    kartik

    Hi,
          Refer below link:
    https://forums.sdn.sap.com/click.jspa?searchID=3958197&messageID=2474585
    <b>Reward points</b>
    Regards

  • How can i chang color of screen background

    have HP Pavilion desk model. windows 7.
     Cannot find where i can change color of background of screen.
    was white and seems to have changed to light green. I did not do anythng for  this to happen?
    Need help finding  this help.

    Am still not being able to change background color of  screen. Also have tried to adjust size of text to small.
    Still does not show complete view of pages?
    Hp desk pavilion. Windows 7

  • Change colors of columns on horizonal axis

    Hello,I don't work with Excel a lot, usually when I get a request for something a couple times a year.Anything is possible, right? I've automated the creation of a pivot table and then the addition of the pivot chart. The problem I have is, I can't figure out how to change the column colors on the horizontal axis. Simple I know... I've been playing with properties in Excel to see where I'm missing code, but I can't make it work manually.Excel.Shape myChart = detailWS.Shapes.AddChart();
    closl

    This is the full method. First a chart is created that contains all the series.Then, then a new worksheet is created and the chart on the new worksheet contains only one of the series from the original chart. That is what the picture above displays.My question would be, are there layers of "series"? I tried to do in c# what you did above, but had a problem figuring it out.Excel.Range srcrange = ws.UsedRange;
    srcrange.Copy(Type.Missing);
    //opening of the second worksheet and pasting
    Excel.Range destrange = newSheet.Cells[1, 1];
    destrange.Select();
    newSheet.Paste(Type.Missing, Type.Missing);
    Excel.Shape myChart = newSheet.Shapes.AddChart();
    Excel.SeriesCollection seriesCollection = myChart.Chart.SeriesCollection();
    int index = 1;
    myChart.Chart.SetSourceData(newSheet.UsedRange, Type.Missing);
    myChart.Select();
    myChart.Height = 450;
    myChart.Width = 1500;
    //myChart.Name = sheetNumber.ToString();
    Excel.Series chartCategory = null;
    while(seriesCollection.Count > 1)
        chartCategory = seriesCollection.Item(index);               
        if (chartCategory.Name.Contains(name))
            chartCategory.IsFiltered = false;
            index = 2;
        else
            chartCategory.IsFiltered = true;
    if (chartCategory != null) Marshal.ReleaseComObject(chartCategory);
    closl

  • How to change colors of columns in a chart view

    Hi experts,
    I've a chart view which chart type is column. I have put 3 data series and I want to change the colors of them.
    By default, the 3 columns are displayed in blue, green and yellow and I wish put them in green, orange, and red. Is it possible?
    I've tried to change the color scheme but I have only 3 propositions (Straight, Reverse and Snake) that not correspond to my wish.
    Any idea?
    Thanks for help
    Ronan

    Hi Kiran,
    no its not possible through Theme editor also ,because these colors are coming from Compiler which u are using.
    Regards,
    Govindu

  • Transparent PSD image in Illustrator changes color of vector background after print.

    Hello, I really don't know how to explain this so I'll just upload my files which are located here: http://rapidshare.com/files/4040672260/Green%20circle.rar
    I have a green vector background in illustrator and then I placed psd image over it and created PDF for press and under Color bitmap images I selected no compression.
    After viewing image in Acrobat all seems ok, I even checked with picker, but after I send this to printer (xerox in thsi case) I end up with this: .
    Both .psd and .ai are in CMYK color space. For this particular case I could use mask to cover up that transparent space but my original project has shadows which I cannot mask by vector :S.
    Can someone plz explain to me what I am doing whrong or how to set color profiles or whatever is neccessary to avoid this issue. One thing I was using was, opening PDF in Photoshop and flatening all. Problem is that sometimes I need vector files and cut lines for cutter. Don't want to have bitmap, if I can have a vector? Also when I flaten image I do get same CMYK values in photoshop (with picker) than I have in Illustrator on vector object, but when I print this they don't match at all.
    Does someone know a solution?
    THANKS in advance and sry for my bad english.
    Stefan

    Nothing worng with your .ai or .psd file, prints fine here. Problem is with your tranparency flattening.
    Most likely you can fix that by print >>  Advanced >> Custom >.> Move slider all the way towards rasters.
    If you need more help, let us knwo your printere, and screenshtos of your print settings can help.

  • Changing Color of Dock Background

    I recently updated to OSX 10.9.5 on my iMac.  Is there any way to change the background color of the dock?  Thanks.
    Richard

    There's an open source  app, cDock, that can make changes to the dock. I have mine totally transparent.  These are the themes you can use with it:
    It also adds the colored icons to the Finder's sidebar. I've had no problems with it with Yosemite.

  • Change color of inbox background?

    Can someone help show me on how to change the color of the inbox on Droid 2?  My corporate sync company email shows up with white text over black background and it is driving me crazy.  I'd like it to appear like my Gmail account does (black text over white bkrd).  Is this possible?  I've looked everywhere and can't find an answer!  Thank you.

    As far as I know this isn't possible. Motorola has made this choice for us using the built in email client. You might try something like touchdown from the market and see if you can customize it there.

  • My iPad 3's folders change colors for 2 seconds when I change the orientation. How can I solve this?

    I am the only one with this problem? Annoys me a lot. I restore my iPad but didn't solve.
    (And sorry for the bad english)

    Then the next step would be the Genius Bar...make an appointment by clicking the Apple Retail Store link at the bottom of this page, then Genius Bar in the upper right of the page that opens, then Make a Reservation top center of the next page that opens.  Reservation reduces the annoyance at standing around waiting for someone to get free to help you.

  • [Solved] Change default leaf background when unlocking screen in Gnome

    This is kinda silly, but how do I change the default desktop background when unlocking screen in gnome?, its always that annoying green leaf background, how can I make it my wallpaper instead?
    Last edited by daf666 (2009-06-13 12:35:29)

    See the Gnome_Tips wiki article which contains the answer to this and other questions
    Change the Default Background Image
    The default background is that zoomed in picture of a green leaf. It appears for newly created users, but more importantly, this is the image shown when the screen is locked. As of 25-Apr-2009, you can find this image here
    /usr/share/pixmaps/backgrounds/gnome/background-default.jpg
    To change it, simply copy your favorite image to this locate (as root) and rename it.

  • Manually change color of Exchange calendar in iCal?

    Good evening. Got kind of an odd problem...and not really sure when it became an issue, although I think it happened after I upgraded to Lion. But for whatever reason I cannot get to the 'Get Info' part of one of my calendars that is an Exchange calendar. I can right-click on all of my iCloud calendars and get to the get info section in order to change colors, sharing, etc, but when I click the get info option on my Exchange calendar, nothing happens.
    Not sure when this became the case, because I know I used to be able to change the color.
    Was wondering if maybe there was a preference file that I could manually edit in order to change the color, or if someone else has run into this and found a solution.
    Thanks a bunch.

    Hi guys,
    "googling" I found this applescript:
    tell application "iCal"
              set color of calendar "Calendar" to choose color default color {0, 0, 0}
    end tell
    Waiting for an Apple fix, you can use this. It's wok like a charm!

  • How change color on form SAP 7.5

    How change color on the form when the form load (Form Partners or Invoice form). I can use SDK UI-API programing interface.
    OR
    how change color cell on matrix (matrix chose PH)

    You can use something like this as the custom validation script of the
    drop-down:
    if (event.value=="Customer A") event.target.textColor = color.red;
    else event.target.textColor = color.black;
    Make sure you tick the option to commit the selected value immediately
    (under Properties - Options), so that it will change as soon as a selection
    is made.

  • Change color in a cell in JTable

    Hi, i need to Change color in a cell when this have the focus in a JTable.
    Thanks

    Override the prepareRenderer(...) method. Something like this:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=610474

  • Background color change of a column in Advance table

    Hi,
    We have requirement to change the background color of column in advance table based on some condition. We tried putting code to change background color in Custom.xss using background-color property and setting newly created css dynamically based on condition but it seems it only changes the background color of text not the complete cell. We want to change the color of complete cell in an advance table.
    Please let me know if there is any other way I can achieve this requirement. Any help would be highly appreciated.
    Thanks

    <FONT FACE="Arial" size=2 color="2D0000">
    Pls look into "Alter Table"section.
    LOB_storage_clause
    This might help
    -SK
    </FONT>

Maybe you are looking for

  • How do i use conditional formatting to edit the color of other selected other cells?

    I have been playing around with the conditional formatting feature of Numbers, I have figured out how to change font and background color of the cell i am working with. However what i am looking to do is apply a background color formatting to another

  • How do I connect my online outlook account to Microsoft Outlook for Mac 2011

    I have been trying to connect them, but it is telling me that my "command is not valid in this state" or my "security settings are not valid" I am using POP and I am putting in the following: username password pop.outlook.com smtp.outlook.com

  • Why does my iPhone use excessive amounts of data?

    My dad, step-mom, brother, and I are all on a 40gb data plan through AT&T. So that gives us each 10gb to use throughout our billing cycle each month. Over time my phone has gradually started to use more and more data. I was on a 2gb data plan when I

  • Linksys PCI cards and WLC problems

    /* Style Definitions */ table.MsoNormalTable {mso-style-name:Standardowy; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm

  • Smaller desktop size but preserving screen resolution (add borders)

    Does anyone know if it's possible to add borders to my screen (the device) (using xrandr maybe)? I have some old TV which has HDMI connector. It can show 720p resolution. Problem is that, for some very odd reason, it cuts about 20px from _every_ side