Colour coding a report depending on one columns' data

Hi All,
I have no experience with CSS but i need to edit my report to show various rows in difrerent colours depending on the data in a single column ( STATUS ).
Does anybody have a CSS file that i could just edit the table details in to acheive this ?
Thanks

The key is the row template:
<tr class="#5#"><td>#1#</td><td>#2#</td><td>#3#</td><td>#4#</td></tr>
(#5# is column 5 in your Query)
where class sets the background color:
tr.class1 td{background-color:#FFCCCC;}
tr.class2 td{background-color:#CCFFCC;}
tr.class3 td{background-color:#CCCCFF;}
The 3 classes switch, depending on the deptno:
decode(deptno, 10, 'class1', 20, 'class2', 30, 'class3') trclass
But it seems that the report source is not correct !!
trclass is defined as Column1 but refered as Column5
Correct report source would be:
select ename, job, sal, comm,
decode(deptno, 10, 'class1', 20, 'class2', 30, 'class3') trclass
from emp
greetings,
Jochen

Similar Messages

  • Concatenate out put of 2 or more columns in BEX Report in to one column

    Hi,
    I am working on service order report in BEX, and i would like to Concatenate out put of 2 or more columns in BEX Report in to one column.
    Please share me if any scenarios.
    Thank
    Neni

    Hi Ashutosh,
    Thanks for your reply,
    Actually in my report 4 different columns belongs to service orders information from different departments, i want see all 4 columns information in to single column, those four are virtual characteristics.
    As per your solution concatenate in workbook using function, can you please give me the steps how to do that.
    Thanks for your help.
    Thanks
    Neni.

  • Making whole row coloured red based on value in one column in BI Answers.

    Hi
    Would anyone know how to make a whole row red (eg) based on the value from one column within the row in
    a BI Answers report in either a pivot table or a table view. I know it should be a case of setting up the
    conditional formatting in the Conditional Tab on the Properties of the column, but all the columns apart from the
    one with the value being determined ignore the value in another column.
    Thanks,
    - Pete
    Edited by: user1636556 on 09-Dec-2011 07:58

    Hi
    Would anyone know how to make a whole row red (eg) based on the value from one column within the row in
    a BI Answers report in either a pivot table or a table view. I know it should be a case of setting up the
    conditional formatting in the Conditional Tab on the Properties of the column, but all the columns apart from the
    one with the value being determined ignore the value in another column.
    Thanks,
    - Pete
    Edited by: user1636556 on 09-Dec-2011 07:58

  • How to show/hide a link column in a report, depending on another column?

    Sorry, thread duplicated.
    Edited by: Andres Vilallave on 14-may-2010 15:31

    Hello,
    I had a situation similar to this. I had NULL selected in the column when I wanted to hide the link. Please find below more explenation:-
    <b>example report </b>
    Interactive Report
    Col1     col2     col3
    1          a1       a2
    2          b1       b2
    -           c1       c2
    -           d1       d2
    -------------------------------------------In the above Report <b><i>col1</i></b> is a link . Upon clicking this, user should will be directed to Page XX
    so, when data in col2 of report is c1 or d1[can be a different display condition, you may want to implement this with CASE or anyother SQL construct] , I selected NULL which will not show the link.
    so, my point is, if the SQL you have in the INTERACTIVE REPORT is creative enough to have NULL in the column, Link is not enabled.
    Hope I got your problem correct.
    Thanks,
    Chaitu.

  • How to place one column under another column in obiee report?

    Hi all,
    I am new to obiee, so need some help from obiee experts. Can anyone tell me how to place one column data under another column in obiee report?
    i need the report to be as below
    category total_students Course_enrollment Test_attended pass_test
    total N % N % N %
    all students ##### ## ## ## ## ## ##
    Ethnicity
    Asian ###### ## ## ## ## ## ##
    African American ###### ## ## ## ## ## ##
    white ######
    Filipino ######
    Gender
    Male ##### ## ## ## ## ## ##
    Female ##### ## ## ## ## ## ##
    and similarly for other columns
    where ethnicity, gender are columns in the table and Course_enrollment, Test_attended, pass_test are calculated columns.
    Please help me to create a report as above if anyone knows how to do it.
    Edited by: Shailaja on Jul 19, 2010 12:23 AM

    Two ideas I can think of:
    1) Create multiple pivot tables and then display them one under the other
    2) Create multiple measure columns such as "male_amt", "female_amt", "white_amt", "asian_amt", "black_amt", etc. for all the columns you need. Then you could simple stack them in a single pivot table.
    Option #2 might give you the prettiest results - but also requires a lot more maintenance (for instance, if you reclassify ethnic groups, you'd have to go through the reports to add additional metric columns).
    Hope this helps,
    Scott

  • How to create Tree format in Table Rn in one Column having data?

    Hi Gurus,
    i got the new requirement it's very interesting pl z help me...
    My Requirement is i have one Table Rn in Table Rn having 5 columns There here one column name is 'Competencies ' That Competencies column having the more rows liki
    FUNC.ADMIN.Achievement Orientation
    FUNC.ADMIN.Administrative Assistance and Support
    FUNC.ADMIN.Administrative(ADMIN)
    This is one column data my Requirement is now
    FUNC
    +ADMIN
    +Achievement Orientation
    like clients are expecting pl z tell me how to approach in this requirement and what are prerequisites are needed ...plz help me it's urgent requirement.
    Regards,
    Srini

    Hi Gyan,
    Thank's for valuable suggestions
    My Requirement is This ...
    "Competencies" Table Layout: (InstTableLayout)
    COMPETENCIES (COLUMN NAME)
    BEHV.Generic.Communication(BEHV)
    BEHV.Generic.Planning, Organizing & Time Management
    BEHV.Generic.Problem Solving Ability
    BEHV.Generic.Productivity
    BEHV.Generic.Punctuality
    like number of rows are there now Tree format is row data
    like each column divided each one
    ex:
    + BEHV
    *|*
    +Generic
    *|*
    +Communication(BEHV)
    like he expected client in tree format pl z tell me how to approach in this requirement and what are the prerequisites are required .....
    Regards,
    Srini
    Edited by: 876628 on Dec 1, 2011 8:37 PM
    Edited by: 876628 on Dec 1, 2011 8:37 PM

  • How to get more than 4 coloured rows in a report depending on column values

    Hi,
    I've looked through the forum and found some stuff on mutli-coloured reports and found the link to http://htmldb.oracle.com/pls/otn/f?p=11933:7:557008579481721819
    But I have several problems:
    This shows how to get 3 colours, but it's easy to get up to 4 by just using the "Column Templates" in a new report template.
    I don't understand where to put the snippets. It says to put them in "Row Templates" , "Before Rows" and "After Rows" but my report template page doesn't have these options! I've got "Column Templates" (4 of them), "Before Each Row" and "After Each Row".
    Am I looking at a link for an old version?
    What I want to do is set the row colour dependant on a column called "level" which is between 1 and 5.
    Thanks

    Hi Vikas,
    It's almost perfect now. My only problem is that the pagination table is, for some reason, enclosed within the results table (I've used FireFox web developer's tools and checked the souce HTML to be sure of this). So, if I have a border at table level, it appears on the row containing the pagination.
    I've had to remove table borders and put right borders on the table data cells, but I can't find a way to put left borders on the table rows, so I have a pretty table with 5 levels of colour, but no borders on the left-hand side.
    Ideally I'd like to avoid having the pagination stuff within the results table, but I can't see how/where to put a </table> to sort this out!
    Ros

  • Changing a row colour in JTable, depending on a column value

    Hi,
    I need assistance with the following:
    I need to change the colour of a row in a JTable, depending on a column value. I have been successful on changing one column's colour in each cell, depending on the value by using a CellRenderer extending DefaultTableCellRenderer.I am unable to set the other 2 columns's cell's depending on the first column value's.
    I would appreciate any help, source would be a bonus.
    Thx
    Charl

    Ok, here follows the code as requested. Note that this is the code setting each row in one of my columns depending on the value. Now i have to cgange column0 and column1 's foreground the same as what this column (column2) 's foreground is. Thx
    import java.awt.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    class ColorizedCell extends DefaultTableCellRenderer {
    static Hashtable cache;
    static {
    cache = new Hashtable();
    cache.put ("Device Responding to Poll",Color.green);
    cache.put ("Wan link Recovered",Color.green);
    cache.put ("No Response to Device Poll",Color.yellow);
    cache.put ("Wan Link Failure",Color.red);
    cache.put ("Lan Link Failure down",Color.red);
    cache.put ("Device Down",Color.red);
    public Component getTableCellRendererComponent(JTable table,
    Object value, boolean isSelected,
    boolean hasFocus, int row, int column)
    JLabel label = (JLabel) super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    label.setText((String)value);
    if(column == 2) {
    //setFont(bold);
    Color c = (Color)cache.get(value);
    label.setForeground(c);
    if (isSelected) {
    label.setOpaque(true);
    label.setBackground(Color.white);
    else {
    //setFont(plain);
    label.setForeground(Color.white);
    return label;
    }

  • Interactive Report - One column based on a list of values

    I have an Interactive Report that's part of a Form with Report. The form works fine, but I have a problem with the interactive report. One of the fields is based on a list of values. That is, the data in the table in the State field has numeric state codes, 1 to 51. The form part has no problem with this, as it's a select list based on a list of values LOV query, so the user selects the actual name of the state.
    The interactive report, however, displays the numeric codes, which is what is actually in the table. I am looking in the column definition for some way to tell it to convert the value to the state name, but I do not see it. There is a List of Values place, but that seems to be for filtering purposes instead of for return vs. display value.
    3.2.

    Tharpa,
    I'm not sure if what I am about to suggest will work in 3.2. However, in 4.1, I am using LOVs with IRRs without any issue.
    For example, if I have an address field of state code, I have a named LOV (LOV_STATE). I go into the report attributes for this column. There, I find a section named "List of Values" In here, I pick the "column filter type" of "Use Named List of Values to Filter Exact Match". (Presumably, this will work with Static List too). When the column is displayed, I see the State name displayed.
    -Joe
    Edited by: Joe Upshaw on Mar 14, 2012 1:58 PM

  • In BI Publisher Report of excel output for one column is filled with spaces

    Hello,
    We have issue in BI Publisher report of excel output.
    In Excel output for one column few records are displaying as left alignment
    and few record are displaying as right alignment.
    If you are having any xml tag or any syntax for removing spaces for left side
    Please help on this issue.
    Thanks in Advance.
    Regards,
    Swaraj

    Please post the details of the application release, database version and OS along with BI Publisher.
    Is the issue with all reports or specific one(s) only?
    Do you have the patches in the following docs applied?
    Overview of Available Update Patches for Oracle BI Publisher Enterprise 10g [ID 797057.1]
    Overview of Available Update Patches for Oracle BI Publisher Enterprise 11g [ID 1276869.1]
    Overview of Available Patches for Oracle XML Publisher embedded in the Oracle E-Business Suite [ID 1138602.1]
    BI Publisher 10g RTF Template Changes Alignment Settings for Numbered Lists [ID 1418504.1]
    Thanks,
    Hussein

  • How to merge dates in the same year in one column in rdlc report ?

    dears 
    I need to create like this report but I cannot merge the transactions in the days in one column return to the month as in the table
    Delivery Schedule
    2010
    2011
    2012
    2013
    2014
    Model / Month
    Total
    Total
    Total
    Total
    Jan
    Feb
    March
    April
    May
    June
    July
    Aug
    Sep
    Oct
    Nov
    Dec
    Total
    item1
    0
    item2
    11
    1
    1
    2
    item3
    3
    1
    1
    2
    item4
    14
    1
    1
    1
    1
    1
    1
    1
    7
    item5
    10
    2
    2
    1
    1
    1
    4
    10
    1
    1
    1
    1
    25
    item6
    0
    item7
    7
    1
    1
    2
    1
    1
    1
    7
    item8
    19
    4
    4
    5
    11
    10
    4
    7
    13
    2
    5
    3
    68
    item9
    1
    2
    1
    1
    5
    item10
    15
    3
    5
    5
    5
    8
    5
    3
    7
    5
    8
    1
    3
    58
    item11
    63
    15
    8
    4
    12
    6
    11
    8
    7
    24
    11
    6
    112
    item12
    3
    1
    1
    1
    1
    1
    2
    1
    2
    10
    item13
    32
    3
    7
    7
    7
    8
    5
    5
    10
    2
    54
    item14
    16
    3
    2
    5
    7
    9
    8
    6
    3
    2
    45
    Total Delivery
    0
    0
    0
    193
    29
    29
    21
    26
    51
    36
    40
    40
    44
    38
    25
    16
    395

    Hi Eng ,
    Based on my understanding, the date field exists in the database, then you want to display the corresponding year and month within the report and perform sum total,right?
    In your scenario, since you haven’t provided the sample data, we create the database with some data. Then design the report with the structure you provided. Please refer to our test steps and results:
    1. Create the database with the query below:
    create table test1
    [item] nvarchar(50),
    [date] date,
    value int)
    insert into test1 values
    ('item1','2014/02/08',10),
    ('item2','2014/02/22',56),
    ('item3','2014/07/18',45),
    ('item3','2014/07/18',40),
    ('item4','2015/02/26',36),
    ('item5','2015/02/12',79)
    2. Design the report like below:
    3. Preview the report.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • How can I modify one column of current and next record depending of some criteria?

    Having DDL
    CREATE TABLE #ServiceChange(
    [ID] [int] identity(1,1),
    [SHCOMP] [char](2) NOT NULL,
    [SHCRTD] [numeric](8, 0) NOT NULL,
    [SHCUST] [numeric](7, 0) NOT NULL,
    [SHDESC] [char](35) NOT NULL,
    [SHTYPE] [char](1) NOT NULL,
    [SHAMT] [numeric](9, 2) NOT NULL,
    [CBLNAM] [char](30) NOT NULL,
    [GROUPID] [char](2) NULL
    And original and desire data in below link
    https://www.dropbox.com/sh/bpapxquaae9aa13/AADnan31ZASublDjN7sa2Vvza
    I would like to know how can I modify one column of current and next record depending of some criteria using SQL2012?
    The criteria is:
    Type should always flow F->T
    if current abs(amount)> next abs(amount) then groupid = 'PD'
    if current abs(amount)< next abs(amount) then groupid = 'PI'
    there is no case when those amounts will be equals
    where current(custid) = next(custid) and current(service) = next(service) and groupid is null
    Any help will be really apreciated.
    Thank you

    I tried that and got this error
    'LAG' is not a recognized built-in function name.
    You said you were using SQL 2012, but apparently you are not. The LAG function was added in SQL 2012. This solution works on SQL 2005 and SQL 2008:
    ; WITH numbering AS (
       SELECT groupid,
              rowno = row_number()  OVER (PARTITION BY custid, service ORDER BY date, id)
       FROM   #ServiceChange
    ), CTE AS (
       SELECT a.groupid,
              CASE WHEN abs(a.amount) < abs(b.amount) THEN 'PD'
                   WHEN abs(a.amount) > abs(b.amount) THEN 'PI'
              END AS newgroupid
       FROM  numbering a
       JOIN  numbering b ON b.custid  = a.custid
                        AND b.service = a.service
                        AND b.rowno   = a.rowno - 1
    UPDATE CTE
    SET   groupid = newgroupid
    Erland Sommarskog, SQL Server MVP, [email protected]

  • More than one column retrieved in "report and form" page

    HELLO!
    let's see if anybody can help me with this... i'm sure it's a stupid problem but i really don't know how to solve it.
    when i create a new application with APEX, i want to add a "report and form" page. i select the table where de data is, and then click on add page. then i go to the page definition for the form that just has been created but there's no option for selecting more than one column as the link column...
    i mean, i want to show a report with all the columns from the table and then, by selecting one of them, the form should display that column but the problem is that the primary key of the table is formed by 6 columns and i always receive the "more than one column retrieved" message as it's trying to retrieve the information using only one column. is there any way to make the link column be composed by 6 or 7 columns??

    APEX can handle 2 primary key for one table (if you are using the automated fetch row and the automated process row).
    In your case, you'll have to create your own "fetch process (page rendering)" and "DML process (page processing)".
    Flex
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

  • Inreractive Report: Ordering by more than one column

    Hi Guys an Girls,
    I have a interactive report on an application that i have built. I have been asked whether it is possible to order by more than one column.
    What i mean by this is, when i click on the column heading i can order by that column ascending or descending. Is it possible to order by more than one column?
    Thanks
    -N.S.N.O.

    Hi,
    Yes you can. Just choose "Sort" on the options menu.
    Paulo Vale
    http://apex-notes.blogspot.com

  • FSG: Reporting Attributes Showing in one column for multiple segments

    I am doing an FSG and and trying to run it through Program - Publish FSG Report and using the template provided but having a problem with the first coulmn of the report. The first column of the report is bunching up all the segments in one column instead of seperating it in multiple columns. For eg. 5100 Travel expense instead of in two different coumns is put together in one column. I have tried lot of things but none of them fixed it.
    I would be glad to know anything that can solve or lead to a solution to this problem
    Arun

    Yes, I did. I had chose four segment descriptions there and I had something like 30-35 as the space for them. I have also checked the starting value of the column set. It looks ok. The XML BI Publisher is unable to seggregate them it seems for some reason.
    Arun

Maybe you are looking for

  • How do I install firefox on my android when I click on the download link it goes to a site that cannot be completed by my phone? LG Optimus

    When I click on the orange download for android button, it takes me to a site that is not able to be opened. An error message pops up. I prefer Firefox to the browser that came with the phone, but it does not show up at all in the Android Market.

  • Sample Data ODM

    where can i get the sample datas for the odm schema ? the *.ctl and *.dat files for the sql-loader. directory $ORACLE_HOME/dm/demo/sample is not present in my insallation of 10g on Linux. datamining makes no sense without datas.....

  • Problem with embedded fonts

    Downloading pdf files from the web. Cannot extract the embedded font - does not display properly, does not print. Also sometimes get out of memory

  • How to estimate tablesize?

    Hi, I am performing an insert operation Similar to Insert into Tablea select * from A; When I am performing this operation,I am getting an error message unable to extend table space. Could you please tell me how to estimate how much tablespace need t

  • Problens whit Messaging Server and Symantec Scan Engine

    Hi! I have installed Symantec Scan Engine 5.0 to check virus in my Messaging Server, but when I try to open the administration interface of Scan Engine installed in port 8004, it appeared the messages: �Loading Java Subprogram� �Do you want to instal