Alternating Row Colours with a Twist

I have a report that allows viewing detail or summary. 
The report lines are as follows:
Report Header
Page Header
Group Header #1a
Group Header #1b
Details
Group Footer #1
Page Footer
Report Footer
For Detail
Detail line is not suppressed
Group Header #1b is suppressed
For Summary
Detail line is suppressed
Group Header #1b is not suppressed
I know how to alternate line colours in the detail, and that works fine.  However I also need to alternate line colours for the summary which is not working as planned.  I tried putting the same code in the Group Header #1b background colour code behind, but the colours don't alternate.  There is groups of two or three that are one colour and then a group of the alternate colour, etc.
How do I alternate colours on Group Headers (when Detail line is suppressed)
Edited by: Clif001 on Mar 18, 2011 1:19 PM
Edited by: Clif001 on Mar 18, 2011 1:35 PM

Hi Clif,
Try the following :
Create a manual running total and place it on your groupheader 1b when you have even number change the back ground color
Example :
Whileprintingrecords;
Numbervar x;
x:x+1;
Now place this formula and apply alternate group color logic when you have even number on your gorup header.
Thanks,
Sastry

Similar Messages

  • Alternating Row colour

    Post Author: vovo
    CA Forum: General
    Is it possible to have alternating row colour? Eg. First row background colour is white and second row background colour is grey. Can somebody help me? Thanks.

    Post Author: vovo
    CA Forum: General
    Got it to work... Shared numbervar RowCount;whileprintingrecords;RowCount :=RowCount+1;if (RowCount mod 2=1) then    crWhiteelse    color( 47, 179, 79);

  • Multiple alternating row colours

    I need to flag each row with different colours depending on the values in the columns. I believe you can do it in the definition of an alternating row report template but it only has entries for 4 conditions. How can I colour rows with more that 4 different colours at once? I have up to 8 possible conditions therefore I need up to 8 different colours displayed at once.
    regards
    Paul Platt

    Marc:
    I am not referring to the number of colors or the aesthetics. Just the difference in the visual appearance between
    http://htmldb.oracle.com/pls/otn/f?p=24317:55
    which uses the builtin Alternating Row Colors template
    vs what you suggested.
    In other words, the Alternating Row Colors template colors the row background but preserves the "grid" lines. Your solution obliterates all other styles on the row.
    Dont get me wrong, your solution is brilliant, very creative.
    On a related note, the technique I came up with, wrapping the entire row in a DIV and styling that in the query, doesnt work because it generates HTML like
    open TD1
    open DIV
    close TD1
    open TD2
    close DIV
    close TD2
    This messes up the DIV since it spans the TD cells.
    If it were to generate
    open DIV
    open TD1
    close TD1
    open TD2
    close TD2
    close DIV
    then my solution would work as well.
    But I dont think there is a way to generate a outer-most DIV like that using a column template, right? I cant modify the report template since my DIVs are going to contain dynamic styles from my query itself.
    Thanks

  • Alternating row colours in a repeating list?

    Hi guys
    Sorry if this has been asked before I couldn't find anything after doing some searching.
    I was just wondering how I would go about implementing alternating colours (i.e. how you would expect it to look in a datagrid in flex) in flash catalyst?
    Also as a side note - I'm pretty sure this isn't possible from the pages I've read online but since I'm here I'll ask: is there any way of implemeting a datagrid (or ideally an advanced datagrid) in flash catalyst and then bringing it into flash builder?
    Thanks.

    There's no capability to do this in the current version of Fc - though do take a look at this thread. 
    Adam suggests a work-around.
    http://forums.adobe.com/message/2163645
    And here Chris helps with DataGrids:
    http://forums.adobe.com/message/2840956
    Best,
    Tanya

  • Alternating row colours @Carl

    Hi
    I have a question to your examble located at http://htmldb.oracle.com/pls/otn/f?p=11933:7:1758870993778402
    in which way must i change your code that it works for more than 4 columns
    i tried it without any success

    i tried it
    What did you try?
    It is quite simple really.
    The report query is
    select decode(deptno, 10, 'class1', 20, 'class2', 30, 'class3') trclass , ename, job, sal, comm from emThe first column (trclass) determines the CSS class to be used for that row.
    The report template uses this as Carl shows in his example page. His example page uses 4 columns using #1#, #2#, etc. notation. If you add more columns to the query, just extend the template accordingly.

  • Alternating row color is missing a row

    Hi,
    I've made a table and have checked the "alternating row color" box.  It's working fine except for the top row, which should be colored in and isn't.
    Any suggestions on how to fix this?
    thanks.

    Is the top row a header row? That may prevent it from being the intended colour. If so, remove the header setting and reapply the alternating row colour.

  • Alternating row backgrounds on a JTable

    Howdy Partners,
    I'm tryin' to get some examples of code that'll write a JTable with alternating background colour in the rows.
    I need more than a couple of hints in a direction as I'm pretty green still. I've spent half the morning searching but can't find anything satisfactory.
    Muchos gracias amigos.

    Here is how you can do it.
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.event.MouseEvent;
    import java.util.EventObject;
    import javax.swing.DefaultCellEditor;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.JTextField;
    import javax.swing.WindowConstants;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.TableModel;
    public class Temp extends JFrame {
         private JTable table = null;
         private TableModel model = null;
         public Temp() {
              super("Test");
              setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
              model = new AbstractTableModel() {
                   public int getColumnCount() {
                        return 3;
                   public int getRowCount() {
                        return 30;
                   public Object getValueAt(int rowIndex, int columnIndex) {
                        return "CELL " + ((rowIndex + 1) * (columnIndex + 1));
                   public boolean isCellEditable(int row, int col) {
                        return true;
              table = new JTable(model);
              table.setDefaultRenderer(Object.class, new MyTableCellRenderer());
              JScrollPane scroller = new JScrollPane(table);
              getContentPane().add(scroller);
              pack();
              setVisible(true);
         public static void main(String [] args) throws Exception {
              new Temp();
         class MyTableCellRenderer extends JLabel implements TableCellRenderer {
              public MyTableCellRenderer() {
                   super();
                   setOpaque(true);
              public Component getTableCellRendererComponent(JTable table,
                   Object value, boolean isSelected, boolean hasFocus,
                   int row, int column) {
                   setText(String.valueOf(value));
                   Color bgColor = Color.white;
                   if(row % 2 == 0) {
                        bgColor = Color.lightGray;
                   setBackground(isSelected ? Color.blue : bgColor);
                   setForeground(isSelected ? Color.white : Color.black);
                   setFont(table.getFont());
                   return this;
    }Sai Pullabhotla

  • Report Template - Standard, Alternating Row Colors

    I'm using APEX 4.1.0 and theme 22 on Oracle 10g.
    I have some tabular forms in my application. For 2 of those, row deletions are allowed and I have the usual select box column to manage the row deletions. Also my users like the "Standard, Alternating Row Colors" report template and would like to see the alternating row colors whenever possible. Unfortunately I get the "Error on page." browser error in IE when I check a row selector box using this template. When I use a different report template I don't get this error.
    The tabular form functions correctly so this error is harmless, but I would like to know what it is for. I'm sure my users would rather not see that error.
    By the way, in Firefox the firebug error count increases and I get the following error in the console:
    TypeError: can't convert undefined to object
    [Break On This Error]      
    ...ovedColor)}gLastRowMoved=b}function html_RowUp(e,d){var c=$x_UpTill(e,"TR");ie_R...
    apex_4_1.min.js (line 18)Because all of the whitespace has been helpfully removed :) it's hard to see which expression is undefined and why.
    Any ideas?

    Hi Jackie,
    There must be some issues the apex_4_1.min.js file, try to reload it. In apex.oracle.com the tabular form with "Standard, Alternating Row Colors" just works fine.
    Regards,
    Natarajan

  • Can't get alternating rows style to work

    I have a spreadsheet in Numbers for iPad that I'm trying to style with alternating row colors. I don't even really care if its just gray and white, but I would like any form of alternating shades since I have a ton of data in one spreadsheet. It seems that no matter what I do on the settings, though, I can't get it to work. I tried changing the background of all the cells to no fill, then to white, then to gray...none of that seemed to make any difference. I also tried to select one of the pre existing styles and tried to apply that to my table and that also didn't seem to work. If anyone out there has any suggestions I would really appreciate it.
    Thanks

    Password for what?

  • Alternating row color for CF report Builder?

    I have a user who wants one of her reports to display
    alternating row colors for better read clarity. The reports are
    rather lengthy and the rows tend to blend in with eachother.

    Thanks Epulfy. I am going to give this a try later today.
    Much appreciated
    EDIT:: This does work. however I'm not sure how to set a
    rectangle to the background of the report so it's behind my
    details. I draw the rectangle and it just hides whatever I want to
    display. When I look at the report it does alternate with rows, but
    I can only see details from the rows that it does not alternate on.
    Any clue how to set it to the background?

  • How to change row colour without using WDTableCellDesign

    Hi
    I change the row colour of my tree table depending on the level of the tree.
    WDTableCellDesign doesn't have the colours that I want.
    I want to use different shades of blue.
    How do i do this?
    I have a variable of type type     com.sap.ide.webdynpro.uielementdefinitions.TableCellDesign which I change with WDTableCellDesign elements.
    Is there another type that I can use?

    Anton,
    You may only used limited(?) set of standard table cell designs.
    Alternatevily, you must create complete WD theme using Theme Editor.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Alternating row color

    I have a spreadsheet and the alternating row color only works down to a certain row. I can't copy the style, etc. Tried turning it off and then back on and that doesn't work. Also when I copy a cell from a blue row to a white row it retains the blue color for that cell on the white row. Any ideas?
    Thanks.

    Select all the rows that are not showing the alternating colour fill and go back to the inspector and set colour fill to NONE. Don't select the header column, if any, as the colour fill will be removed from that too. The copy and paste including the colour is normal behaviour, you can use Edit > paste values instead
    Have a good day.

  • Conditional alternating row colors

    Hello
    I have a report of companies an their country which is ordered by the column country. I'd like to have a alternating row color for every new country and not for every new row as it is in custom settings.
    Is that possible? How can I do that?
    Regards Felix
    Edited by: Felix on 21.09.2011 12:33

    Hi Scott
    sorry, I still not quite understand how to do, because which row must be colored depends on the number of countries in the database and alphabetic order of the countries.
    For example I show you only the country row of an example report and its row color as it should be right of it (because you cannot color text in this forum):
    [Country Row] [Row color]
    Albania light blue
    Albania light blue
    Albania light blue
    Albania light blue
    Andorra light green
    Andorra light green
    Andorra light green
    Andorra light green
    Argentina light blue
    Australia light green
    Australia light green
    Australia light green
    Once some data rows are inserted with a new country it should look like this
    [Country Row] [Row color]
    Albania light blue
    Albania light blue
    Albania light blue
    Albania light blue
    Algeria light green (new data)
    Algeria light green (new data)
    Algeria light green (new data)
    Andorra light blue (color switched)
    Andorra light blue (color switched)
    Andorra light blue (color switched)
    Andorra light blue (color switched)
    Argentina light green (color switched)
    Australia light blue (color switched)
    Australia light blue (color switched)
    Australia light blue (color switched)
    Now the row color of rows beneath Algeria changed (in order to keep the alternating row color alternating)
    I hope I now pointed out my problem more clearly.
    Thanks
    Felix

  • How Get Alternating Row Colors To Work?

    I've searched this forum, searched online, and followed the directions in the Numbers 3.0 Help, but I just can't get the Alternating Row Colors function to work.  I'm using an iMac and a new Mac Mini, both running Mavericks, on a spreadsheet converted from Numbers '08.  I've seen several screenshots of tables in discussions on this forum that seem to have Alternate Row shading; presumably they were done with Numbers 3.0. So apparently, it can be done.  Need Help!

    Vistan wrote:
    Now I see it!  I did not have any of the Table Style boxes in the upper right cortner of the creen selected...when I choose one, the alternate row colors sudenly pop up.  I'm now experimenting with the Grid Lines and Header &Footer selection buttons.
    Vistan
    Vistan,
    I'm about as sure as I can be that Table Style boxes having being clicked has nothing to do with the Checkbox for Alternating color rows. I've been wrong before, but I can't grasp the logic on this one, and it doesn't happen here the way you describe.
    Jerry

  • Webi Alternate Row Colour

    Hi experts,
    I have a webi report which colour lines must have alternate colours. I customized that on the table proporties, in webi, but it's not working... is there some kind of trick to activate alternate row colours?
    Thanks you.
    Cheers!
    Inê

    If you change "Alternate Row/Column colors"property of block then it should applied for that particular block only.
    If you want other colors for other blocks then do the same steps.
    Frequency is by default 2. Which tells us the applied color should show alternatively, and 3,4, etc..., follows like that.
    FYI if you change property of a block and insert new objects then you can't see colors again for the same block.
    Manually you need to do it again to appear.
    Eg:
    if i individually insert say 5 rows to block and drag unique report variables to each row, the alternative colours are not coming up.
    How to acieve this?
    This is the problem, the alternate row fucntion works for a row which have more than one value. In your case you have different variables for each row then you have to do it manually. Remember that if you have more than one value for any variable the second row of that variable will be 255,255,255. By default first row gets the alternate color. You get the same alternate color for all 5 rows because it's first row of all the 5 variables.
    One trick is give alternate color as 239,239,239 for first row and 255,255,255 for second and so on.
    Hope you got me.
    Gracias...!!

Maybe you are looking for

  • ATTRIBUTE_IDOC_METADATA:

    Hi, I have a scenario File-> to -> IDoc (Idoc package) and getting the error in Call adapter pipeline step, saying In segment E1UKGAS_A00 attribute occurred instead of SEGMENT. Althought the XML I am getting before the Call adapter pipeline step has

  • HT4972 iOS 5.1 issue w/ camera

    i updated to iOS 5.1 on iphone 4s - when I try to open my camera from aps, it opens to a closed shutter and does not unlock I've tried to reboot, restart everything, but camera will not work

  • CcBPM - ParForEack block not processed in parallel

    Hi Experts, I am using a par for each block in my integration process. Within the block I send several synchronous calls to a JDBC adapter to execute stored procedure calls. The stored procedure calls need to be executed in parallel. In the process l

  • Left Click event lost in IE7 - Portal v6

    We had a few users accept the IE7 install by mistake, which caused issues.  The left click event is not being recognized in the left menu panel when attempting to run a report.  The user can right click and "open in new window" to run the report. Has

  • Opening unix executable files

    What application in Leopard can I use to open unix executable files?