ORACLE MATRIX CHANGE ALTERNATE COLUMN COLOR

i have a Matrix Report and i wanted to change the alternate column color like GRAY | GREEN | GRAY | GREEN

create a placeholder column at report level, type number and initial value 1.
create a format-trigger at the appropiate frame for the column and add the following code:
:PLACEHOLDERCOLUMN:=3-:PLACEHOLDERCOLUMN;
IF :PLACEHOLDERCOLUMN=1 THEN
  SRW.SET_BACKGROUND_COLOR(yourcolor1);
ELSE
  SRW.SET_BACKGROUND_COLOR(yourcolor2);
END IF;

Similar Messages

  • Alternate column colors in SQL 2008 Matrix

    I have a Matrix with dynamic columns. I am grouping Matrix on one column group. I am trying to have a different color for every group. I hvae so far, three groups. How can I do that? A note, there is no data for every column group in every row.

    Hi,
    Please try the below
    1. Go the reports code window (Menu Report--> Report Properties--> code tab) and paste the below to create the function getGroupCounter
    dim Counter as integer=0
    public function getGroupCounter() as Integer
    Counter=Counter+1
    return Counter
    end function
    2. Go to the properties of the column group (Right click the column group and select group properties)
    3. Click the variables tab on the left
    4. Click on Add and set Name as GroupCountValue and set the expression (in the expression window) as =Code.getGroupCounter
       This expression sets the group variable to hold its running count value.
    5. Click OK
    6. Now in the matrix, click the column handle (that selects the whole column) for the column group, in properties window, set the below expression for background color
    =iif(Variables!GroupCountValue.Value mod 2 =0,"yellow","green")
    This would display the alternate colors green and yellow for the columns
    If you need to display different colors for each column, ten use the switch function, as shown below
    =switch(Variables!GroupCountValue.Value=1, "yellow",Variables!GroupCountValue.Value=2,"green",Variables!GroupCountValue.Value=3,"red")
    7. Run the report and observe the result.
    Hope this helps. Feel free to discuss if you need any further help.
    Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.
    BH

  • Changing the column color

    Hi ,
    would I be able to change the complete column color
    dynamically (it does'nt work using the Advanced Datagrid --
    styleFunction property) I am able to change the color of the
    text of a specific column dynamically (
    http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_04.html#230321)
    but not the background color of the column.
    Can any body provide some help on this (changing the
    background color of the column dynamically)
    thanks

    "nash99" <[email protected]> wrote in
    message
    news:gfhuls$s1c$[email protected]..
    > Hi ,
    > would I be able to change the complete column color
    dynamically (it
    > does'nt work using the Advanced Datagrid --
    > styleFunction property) I am able to change the color of
    the text of a
    > specific column dynamically
    > (
    http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_04.html#230
    > 321) but not the background color of the column.
    >
    > Can any body provide some help on this (changing the
    background color of
    > the
    > column dynamically)
    Just look and see what column it is and change its background
    color...

  • Alternate Column color

    Is there any  way in a  Webi report to set the color of alternate columns as we can currently do for rows?
    The option in Java Panel is named as " Alternate Row/Column colors" but this does not work for columns.
    Thanks.

    Hi,
    May I know how one can select column in table??
    Try like this::
    Create separate block for the columns which you want alternate color and place it relative to rest of the table.
    Hope this helps you...
    P.S: It possible for cross tab type only.
    Thanks

  • Oracle cdc change table column - cscn vs rsid

    Hi all,
    I am not able to understand the differences between the CSCN field vs the RSID field. Looking up internet guides it said:
    RSID is the Unique row sequence ID within this transaction.  The RSID$ column reflects an operation's capture order within a transaction, but not across transactions. The publisher cannot use the RSID$ column value by itself to order committed operations across transactions; it must be used in conjunction with the CSCN$ column value.
    Can anyone explain to me in simplier terms what the CSCN field stand for? Also, why cant we use the timestamp$ field to order the operations?
    Also, for a row in the change table, are we able to determine which column in the row changed first?
    Edited by: user8915380 on 04-May-2010 03:22

    Hi,
    you can wait for 11gR2 with CDC integration or build most of the code outside the owb. To use CDC you must do this things (http://www.oracle.com/technology/oramag/oracle/03-nov/o63tech_bi.html):
    1. Identify the source tables.
    2. Set up a publisher.
    3. Create change tables.
    4. Set up a subscriber.
    5. Subscribe to the source tables, and activate the subscription.
    6. Set up the CDC window.
    7. Prepare a subscriber view.
    8. Access data from the change tables.
    9. Drop the subscriber view, and purge the CDC window.
    10. Repeat steps 6 through 9 to see new data.
    You can do only a few of this inside owb, most of it must be done outside.
    Regards,
    Detlef

  • Changing the Column Color in Swing

    I have two columns in JTable, both have objects of String. For some reasons I have to differentiate the background color of the two columns. All my tries including my overriding javax.swing.table.DefaultTableCellRenderer makes both the columns look similar as both of them have same type i.e. object of String. Is there any way to have different background for these two columns

    class MuRenderer extends DefaultTableCellRenderer{
      public MyRenderer(){
        super();
      public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        if(column == 0)
             this.setBackground(Color.red);
        else
              this.setBackground(Color.blue);
        return this;
    }and when you initialize you JTable :
    MyRenderer red = new MyRenderer();
    Enumeration columns = table.getColumnModel().getColumns();
    while(columns.hasMoreElements()){
          ((TableColumn)columns.nextElement()).setCellRenderer(red);

  • Changing only column header color

    Hello,
    I changed the background color of the tabel to white. But column headers are also appearing as white. How can I change the color of column headers only. I tried several combinations...no luck.
    Thanks,
    Sunita.

    Hi Sunitha,
    You do like below.
    1)In the Table Column delete the dafault Table header.
    2)Insert FixedYTopCell to the above column and insert TextView to FixedYTopCell.
    3)Change the cell Design Property of FixedYTopCell   to grouplevel2
    4)Change the SemanticColor Property of TextView   to negative or accroding to your.
    That will change header column color
    Regards
    -SS

  • Change MVThemeBasedFOI text color

    Hi to all,
    I'm using Oracle maps, the last version that i've downloaded.
    I've defined a layer:
    stradeLayer = new MVThemeBasedFOI('stradeLayer','DBTI.STRADE');
    stradeLayer.enableAutoWholeImage(true);
    stradeLayer.setVisible(false);
    stradeLayer.enableLabels(true);
    for this layer i use some style rules:
    <?xml version="1.0" standalone="yes"?>
    <styling_rules>
    <rule column="DUG,NOME">
    <features style="L.RULE LIGHT 96">
    SELECT TP03_GEOMETRIA,
    D.TP17_DESCRIZIONE as DUG,
    T.TP07_NOME AS NOME,...
    </features>
    <label column="VIA_NOME" style="T.SHIELD2"> 1 </label>
    </rule>
    </styling_rules>
    is it possibile to change temporarily text color or font,
    could you suggest something?
    Thank in advace,
    Francesco

    Add the following style rule to your document
    ul.MenuBarHorizontal ul a {
        color: red;
    changing the colour to suit.

  • How do I change font and colors back to default?

    I have changed the font and color of the text through the tools button and the options button and the content tab. I find nothing telling me how to change the font and colors back to default font and colors. Can you advise me? I'm using Windows 7 Home Premium OS. Thanks.

    Hi Brenda19605,
    You can use this article to set the fonts and colors: https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use?esab=a&s=font&r=0&as=s
    The default settings for the font are in this article:
    https://support.mozilla.org/en-US/kb/Some%20text%20shows%20up%20bold%20after%20upgrade
    Unfortunately for the default colors has no good reference. But for text it is black (most lower left) color, background is white (most upper left color). Unvisited links is blue (column 8, row 5) and visited link is purple (column 9, row 5).
    Let me know if you need anymore help!
    Lordfreak

  • Oracle Matrix Report output to XML Publisher

    We have an Oracle matrix report (rdf) registered in our applications and we are trying to format the report output using XML publisher.
    I have taken XML output of the report by changing the Report output to XML in concurrent program definition. Using this XML output we have started designing the RTF template using Template Builder for Word 5.6.2.
    I am not able to get the MAtrix output in XML publisher. I am not sure how to design a Matrix Report using Template builder for word. I am not sure whether the XML output of Original Report has Tags mentioning Matrix report attributes or Not.
    Can anyone help me by explaining how to design a Matrix Report template using XML report output. Appreicate your help.

    I have posted a Blog on our blog site about how to create a matrix report in XML-Publisher
    http://technology.amis.nl/blog/?p=1558
    Perhaps this helps.
    Marcos

  • How to change the semantic color of entire rows in a table.

    Hi, in the past I already managed to change the semantic color of a cell by a condition (for example all the cells with negative number -> I set negative semantic color)
    My question is how can I change the semantic color of the entire row where this cell belong, and not only the cell. Im using NW2004.
    BTW, Im not a java programmer, neither a Webdynpro expert, just an ABAP Programmer. So try to be very explicit, Thx.

    Rodrigo,
    You can just bind correspondign property of every cell editor (TextView) of every column to the very same context attribute. Next, when you change attribute value for certain elemnt, the whole row (every cell editor in row) will get same value.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • How to change the background color of a single row

    Hi OTN,
    I am using JDeveloper 11.1.1.2 with ADF faces in view layer.My issue is How to change the background color of a single row in af:table ?.

    How to highlight ADF table row based on column value?
    Found by searching

  • Can I control column color in fluid grid layout?

    The columns in fluid grid layout are gray in CC; they used to be pink. I highly prefer pink, as I almost never design with that color, and I frequently design with gray.
    Is there a way to set a preference for grid column color in CC?
    Thanks.

    NO NO NO NO NO!
    Never make your navigation editable or you will shoot
    yourself in the foot
    when it comes time to change a link there and you would have
    to touch every
    page. <sheesh>
    Give each of those links a unique ID, e.g.,
    <a href="page1.html" id="link1">Page 1</a> |
    <a href="page2.html"
    id="link2">Page 2</a>....
    Then in the head of each child page, add this to the Editable
    Region called
    "head" -
    <style type="text/css">
    a#link2 { color:whatever; otherstuff:whatever; }
    </style>
    Now you would just edit the embedded stylesheet to change
    a#link2 to a#link3
    or whichever button you wanted to affect on that page.
    Alternatively, you can go here -
    http://www.divahtml.com and get
    their
    DivaGPS extension.
    DO NOT MAKE YOUR NAVIGATION EDITABLE.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "malcster2" <[email protected]> wrote in
    message
    news:ga5dev$e89$[email protected]..
    > make those links editable regions on the template, and
    apply the
    > neccessary styles in the individual html pages

  • How to change the background color of a cell based on other cell background

    Hi,
    Sorry if this is a basic question - I am new to XML. I want to create a table column, with no data in it. I then want to change the background color of the column based on the background color of other columns. I.E.
    - If there are 3 or less cells in this row that are not green, color this cell green.
    - If there are 4 or less cells in this row that are not green, and 3 or less are not red, color this cell yellow.
    - If there are 4 or less cells in this row that are not green, and 3 or more are red, color this cell red.
    If there are 5 or more cells in this row that are not green, color this cell red.
    Many thanks for any assistance.

    Okay - I have this resolved.
    1. Create two variables (Yellow and Red):
    <?xdoxslt:set_variable($_XDOCTX, 'Yellow', 0)?>
    <?xdoxslt:set_variable($_XDOCTX, 'Red', 0)
    2. For each cell, set the background based on their individual traffic light criteria, and update the associated color variable by 1. By default the backgrd color is set to Yellow so I only have to check for the lower and upper bounds:
    <?choose:?>
    <?when:number(CHECKED_IN)<=1?>
    <?attribute@incontext:background-color;'Lime'?>
    <?end when?>
    <?when:number(CHECKED_IN)>3?>
    <?attribute@incontext:background-color;'Red'?>
    <?xdoxslt:set_variable($_XDOCTX, 'Red', xdoxslt:get_variable($_XDOCTX, 'Red') +1)?>
    <?end when?>
    <?otherwise?>
    <?xdoxslt:set_variable($_XDOCTX, 'Yellow', xdoxslt:get_variable($_XDOCTX, 'Yellow') +1 )?>
    <?end otherwise?>
    <?end choose
    3. I now want a cell that is Red if any of the cells in the row is red. Its yellow of there are 3 or more yellow cells in the row, and no reds. Otherwise its green. First, create an empty cell and make the default color green. Then add:
    <?if: number(xdoxslt:get_variable($_XDOCTX,'Red')) > 0?>
    <?attribute@incontext:background-color;'Red'?>
    <?end if?>
    <?if: number(xdoxslt:get_variable($_XDOCTX,'Yellow')) >= 3 and number(xdoxslt:get_variable($_XDOCTX,'Red')) = 0?>
    <?attribute@incontext:background-color;'Yellow'?>
    <?end if?>
    4. Finally, reset the variables for the next row:
    <?xdoxslt:set_variable($_XDOCTX, 'Yellow', 0)?>
    <?xdoxslt:set_variable($_XDOCTX, 'Red', 0)

  • Unable to change the background color of a webi report in the infoview

    Hi,
    Can someone please me help me with the below issue.
    Environment Details:
    BusinessObjects XI3.1 SP1SP2SP3                                                                               
    BusinessObjects XIR2 SP5                                                                               
    .Net infoview                                                                               
    IE 7                                                                               
    JRE versions used as;                                                                               
    On BOXI3.1 SP3 Server -1.6.0_03                                                                               
    On BOXIR2 SP5 Server -1.4.2_02                                                                               
    On the client machine   -1.6.0_14      
    Issue Description:
    -Open an existing webi report in the infoview.                                                                               
    -In the report,I am not able to change the background and the font color for the column headings from the properties tab in the left navigation panel.                                                                               
    -I can change the color after hitting the color tab for multiple times.Also the color was getting changed when the color code was manually changed.                                                                               
    -The reports background color was getting changed,but not the font color.                                                                               
    -I tried to create a test report,where I was able to change the color.                                                          
    I have;
    -Installed the Java update 14 on BOXI3.1 server machine,here I was  able to change the background and font color.
    -However on the client machine,with the same Java update 14,the background and the font color for the column headings was not getting changed.
    -Same behaviour is observed on BOE XIR2 SP5 machine.
    Is there any limitations for using Java update 14 or am I required to do any other settings.
    Regards,
    Pankaj

    Hi Pankaj,
    It is a strange behavior. You also stated that when you create a test report it works fine.
    Can you create a copy of this report and then try on the new copy?
    One thing you can do as a test to refresh the universe and then try it. And change some columns - add some column and then save and ten remove and save and make changes like this and trying changing color.
    I think there is a problem with this report this is why it is behaving like this on all machine.
    Regards,
    Bashir Awan

Maybe you are looking for

  • How to detect that i am already running a java program

    hi i am writing this java program. my problem is i don't want to run more than one program at any time, so i need a way to detect whether I am already running the program whenever I want to run the program. Is there any way to do this in java ? thank

  • Reporting SP in Oracle 10g

    Hi Friends, Our Oracle version is 10.2.0.4.0. we have one cron job for reporting purpose. The stored proc with pull the 45 days back counts and populate counts into reporting tables. for some reasons this cron run successfully for 45 days and some ti

  • Applet Does Not Receive Parameters Nor Display Defaults

    My applet will not display a Ellipse either via the default values in my java code nor via the parameters given in the HTML document. Does anyone see what I'm doing wrong here? Here are both my documents: import java.awt.geom.*; import javax.swing.*;

  • One simple question

    hi,       warm wishes......... if in comm channel source side name of the directory is for eg: alax and i want that file in reciever side should be alax.newyork. text .. how it is possible to do. then structures of the sender is having name , city ,

  • Similar to the question in cvs and eclipse thread

    My Question is similar to the question in the cvs and eclipse thread, how can you know on the *.<file_extension>, v the date it was created? thank you very much to those who will reply