Row highlighting in standard report

I'm trying to apply a background color (ie highlighting) to a row in a standard report. The report is a summary list of several records from a table. Below this region is a form region where one can navigate and update specific records. There are way too many fields to do this using a standard tabular form. I'd like to highlight or apply the background color to the row shown in the lower region. Can anyone suggest how to do this?
:P806_LOAD_RATE_ID is the primary key item. It is display only.

Here's what you can try
Modify the tab report query to be select apex_item.DISPLAY_AND_SAVE(50, LOAD_RATE_ID,'f50_' ||load_rate_id) ID,  // give this col an unique id
    apex_item.CHECKBOX(1, LOAD_RATE_ID) CHK,   
   apex_item.DISPLAY_AND_SAVE( 2, FACTORY_ID) as FACTORY_ID,
    apex_item.DISPLAY_AND_SAVE( 3, STATION_ID) as STATION_ID,
    apex_item.DISPLAY_AND_SAVE( 4, PILE_CODE_ID) as  PILE_CODE_ID,
    apex_item.DISPLAY_AND_SAVE( 5, CONFIG) as CONFIG,
    apex_item.DISPLAY_AND_SAVE( 6, ALTERNATE_FLAG) as SPECIAL,
    apex_item.DISPLAY_AND_SAVE( 7, CYCLE_TIME) as CYCLE_TIME,
    apex_item.DISPLAY_AND_SAVE( 8, CYCLE_MILES) as CYCLE_MILES,
    apex_item.DISPLAY_AND_SAVE( 9, BID_TONS) as BID_TONS
  from  LOAD_RATES where FACTORY_ID = :P802_FACTORY_IDThen in the Footer Text of the page definition <script>
obj= $x('f50_' + $v('P806_LOAD_RATE_ID')) // get the handle for the display item
obj.offsetParent.parentNode.style.backgroundColor='blue';  // traverse up to the 'tr' element and set its bg-color to blue
</script>   varad

Similar Messages

  • How to highlight a row in a standard report?

    Friends,
    Hope you can help.
    I need to highlight a row in standard report dependent on some criteria.
    Having searched the forum I have been trying to implement the example given here.
    This is what I have done:
    1) Create a new report using the following query
    select decode(deptno, 10, 'class1', 20, 'class2', 30, 'class3') trclass , ename, job, sal, comm from emp
    2) Created a new Report Row Template from scratch and added the details given in the example above.
    3) Placed the CSS Style sheet code in the stylesheet box at the following location:
    Shared Components>Cascading Style Sheets>Edit Cascading Style Sheet
    3) Ran the page
    4) Employee report is displayed but nothing is highlighted.
    What have I done wrong?
    Thanks in advance for any help given (which of course will be marked helpful\correct!)
    Ian

    >
    >
    3) Placed the CSS Style sheet code in the stylesheet box at the following location:
    Shared Components>Cascading Style Sheets>Edit Cascading Style Sheet
    >
    What have I done wrong?The CSS needed to go in the page HTML Header.

  • Conditional highlighting in standard report based on a column -disappearing

    Hi All,
    I implemented some conditional formatting on a standard report based on the thread below
    Highlighting a ROw in a tablular form based on a column in the row
    Everything works well, except when you pass the cursor over the report the highlighting disappears. It reappears if you refresh the page or scroll to the next page in the report.
    In my style tag in the template I'm just using
    style="background:red"
    Is it something to do with the template? I'm using builder 2 theme.
    Any ideas?
    Andrew

    Hi Andrew,
    this is coming from the report template - Before Each Row: <tr #HIGHLIGHT_ROW#>
    Just remove the #HIGHLIGHT_ROW# if you do not need it.
    Regards Garry

  • Add background color to the summary row in the standard report

    Hi All,
    I have a standard SQL report that have the sum at the bottom of the report by checking the compute sum. How do I add the background color to that row.
    Would you please help?
    I use APEX version 4.0.1
    Thanks,
    Nina

    Hi Nina,
    Take a look at the example at http://apex.oracle.com/pls/apex/f?p=50942:91. It is using the static ID attribute "MYTABLE" and conditionally applying background color to the cell which contains the text "Report Summary".
    &lt;script>
    //Report Summary
    $("#MYTABLE tbody tr td table tbody tr td:contains('Report Summary')").each(function(){
      $(this).parent('tr').children().css("background-color","#FFFF33"); ;
    &lt;/script>Thanks,
    Manish

  • Highlight row in standard report based on value in column...

    I am trying to highlight rows of a standard report based on the value of the column TICKET_TYPE.
    I have been following the post: Highlighting a ROw in a tablular form based on a column in the row
    but having difficulty. I receive the following error:
    ORA-06550: line 1, column 34: PLS-00201: identifier 'SHRIMP' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored
    ERR-1025 Error processing PLSQL expression. SHRIMP = 'SHRIMP'
    My report query is:
    select T.TRIP_ID,
    T.TRIP_ID trip_show,
    T.TRIP_ID trip_select,
    T.DAYS_AT_SEA,
    T.NBR_OF_CREW,
    T.TRIP_START_DATE,
    T.VESSEL_ID,
    o.ticket_type ticket_type
    from TRIPS T, one_ticket_type o
    where t.dea_permit_id = :G_DEA_PERMIT_ID and t.trip_id = o.trip_id
    I have created a new template called one-ticket-highlight.
    row tempate 1 = <td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t14data" style="background:red">#COLUMN_VALUE#</td>
    row template 1 condition = use based on pl/sql expression
    row template 1 expression = #TICKET_TYPE# = 'SHRIMP' (**** I have also tried without the quote)
    any thoughts? thanks!!
    Edited by: KEH813 on May 25, 2010 11:10 AM

    Hi,
    You can achive the same using javascript without changing the page template.
    http://apex.oracle.com/pls/apex/f?p=27576:8
    here is the code for the same
    <style>
    .myclass{ background-color:red;text-align:center}
    </style>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js "></script>
    <script>
    $(function(){
       $("td [headers='DEPTNO']").each( function(i){
           if($(this).html() == $v('P8_DEPTNO'))  //value of the textfield
               ele = $("td [headers='ENAME']").eq(i)
               ele.removeClass('t20data');   //i'm using theme 20 so t20data .. u need to change this part
               ele.addClass('myclass');
    </script>Regards,
    Shijesh

  • Highlight and disable report row

    Apex 4.2.1
    In prior releases, the recommended way to highlight a row in a classic report region involved creating a new generic column report template and using the PL/SQL condition on the template to add a CSS class/style to the report data cell.
    Thats's too cumbersome! Is this still the easiest way to do it or is there some nifty, declarative, jQuery-powered way to implement this in 4.2.1?
    By disable I mean that if there are some actionable INPUT fields on the row (INPUT tags like checkbox or radionbutton), they should be disabled/grayed out.
    Thanks

    :-) I guess some jQuery magic like
    $('table.report-standard td').css('background-color','pink');
    $('table.report-standard tr').find('input,select').attr('disabled','disabled');works but doing it conditionally based on some data in the row is slightly more tricky. Something like td:contains("foo").closest("tr").find('input,select') should work.
    Anyway, I think I got the general idea. Thanks

  • Theme 24 - Standard report - Clear hover highlighting

    APEX 4.2.1
    Theme 24. Report template Standard has the following style table.uReport > tbody > tr:hover > td {
        background-color: #EFEFEF;
    }How can I get rid of this? I copied the template to a custom template, added a conditional column template with a class but the tr:hover gets in the way and overrides the background color. In other words, Firebug shows that table.uReport > tbody > tr > td.my_class {background-color:pink} is over-ridden by the APEX generated style above.
    Yes, adding the *!important* keyword to my inline CSS does help to suppress the hover on the td.my_class rows but for the other rows the hover still kicks in. I do not want the hover, period. I thought clearing out the Row Highlighting attributes in the Template properties page would do the trick but that doesn't help, the hover behaviour seems to be hard-wired into the Standard template.
    Help? Thanks

    More of the sameHm, I tried that and it doesn't appear to give the result I am looking for. There are 3 colors (white, gray-ish and pink). Hovering over the grayish rows turns them to white (inherit). I want no hover effect.
    Maybe some surgically placed !important keywords and inherits will do the trick but this is too darn painful. Also, I wouldn't know to use the *#F8F8F8* color without diving into the page source and/or Firebug! Kinda goes against the declarative, easy-to-use ethos of APEX!
    position the #PAGE_CSS# substitution string after the theme CSS reference in page templates, so that overrides can be applied at page level using the cascade, avoiding most specificity concerns.Not sure I understand. The No Tabs - No Sidebar page template in Theme 24 does have the #PAGE_CSS# after the #THEME_CSS# but there is a hard-wired reference to theme_24/css/4_1.css after that (see below). I am confused, what's the difference between THEME_CSS and theme_24/css/4_1.css?
    Besides, even after moving the PAGE_CSS right before the closing HEAD tag, I still get the hover effect. Why is this? (I left the page at this point, if you want to poke around)
    The order was changed in 4.0 to allow theme-specific styles for Interactive Reports to override the default IR styling in core APEX CSS (another component included in the #HEAD# substitution). They should have used another way to do this as it was a lot easier to talk noobs through CSS overrides using page HTML Headers than it is now...)I couldn't agree more with your summary and recommendation! This is a major headache IMHO. It used to be so easy to override built-in styles by simply including CSS snippets in the page header without worrying about the complexities of cascades, specificity and assorted CSS wizardry!
    Can someone from the Oracle APEX team please review and comment on the rationale behind this decision and what the recommendation is for the situation we are discussing?
    However, in this case the simplest approach might be to include an inline style in the report templateGasp, Doc, say it ain't so! Mixing markup and presentation, nooooo that's so 1990s! Seriously though, I added that to the page but I still see the hover effect. Sigh, this is too frustrating, I give up.
    <!DOCTYPE html>
    <!--[if lt IE 7 ]> <html class="ie6 no-css3" lang="&BROWSER_LANGUAGE."> <![endif]-->
    <!--[if IE 7 ]>    <html class="ie7 no-css3" lang="&BROWSER_LANGUAGE."> <![endif]-->
    <!--[if IE 8 ]>    <html class="ie8 no-css3" lang="&BROWSER_LANGUAGE."> <![endif]-->
    <!--[if IE 9 ]>    <html class="ie9" lang="&BROWSER_LANGUAGE."> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!--> <html lang="&BROWSER_LANGUAGE."> <!--<![endif]-->
    <head>
      <meta charset="UTF-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
      <title>#TITLE#</title>
      <link rel="icon" href="#IMAGE_PREFIX#favicon.ico" type="image/x-icon">
      <link rel="shortcut icon" href="#IMAGE_PREFIX#favicon.ico" type="image/x-icon">
      #APEX_CSS#
    #TEMPLATE_CSS#
    #THEME_CSS#
    #PAGE_CSS#
    #APEX_JAVASCRIPT#
    #TEMPLATE_JAVASCRIPT#
    #APPLICATION_JAVASCRIPT#
    #PAGE_JAVASCRIPT#
    #HEAD#
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <link rel="stylesheet" href="#IMAGE_PREFIX#themes/theme_24/css/4_1.css">
      <script src="#IMAGE_PREFIX#themes/theme_24/js/4_1.js"></script>
    </head>
    <body #ONLOAD#>
      <!--[if lte IE 6]><div id="outdated-browser">#OUTDATED_BROWSER#</div><![endif]-->
      #FORM_OPEN#
      <div id="uBodyContainer">

  • Cannot edit a field that is "Standard Report Column" when new row added

    Hi everyone,
    I have created a master-detail form from the wizard and within the detail report region source I have used apex_item.xxx API
    example;
    select C1, C2,
    CASE when C2 ='N' then
    apex_item.select_list_from_query(3, C3,'select a1 d, a2 r from table1', 'ENABLED', 'NO',null,null, 'f03_#ROWNUM#')
    else
    apex_item.select_list_from_query(3, C3,'select a1 d, a2 r from table1', 'DISABLED', 'NO',null,null, 'f03_#ROWNUM#')
    END C3
    from table;
    All columns C1,C2,C3 are defined as "Standard Report Columns".
    The results allows the column C3 field to be enabled or disabled for input depending on a condition.
    The problem is when you hit the default button "Add Row" to add a new row. The row is non-editable and is populated with null values.
    What I want is to allow input when a new row is inserted into the multi-row detail form.
    Can any one help?
    Is there a way to change the Display As field for the new row columns to "text field" from "standard report column" dynamically?

    I think you will need to use the old way of adding rows instead of the new one. I remember having headaches trying to get it working.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Display Sales Quotation Row Text in SAP Standard Report

    Dear Experts,
    I need to display sales quotation row text in crystal report.
    S.no    Item Code  Item Des   Qty    Price
    1        AAA           AAAAAA     1      100
    2        BBB           BBBBBB     5      200
    3          CCCCCCC---->Row Text    800
             qqqq           qqqqqqqq    1       100
             www           wwwww     5       500
             eeee            eeeeee      2       200
    4      DDD           DDDDD      1      100
    I need to display in crystal report above format
    Please help me how to do this...Very Urgent...  

    Well - it's a report so there won't be a user exit. I think your options are what the others (and you) have suggested - change the standard program or make a copy.
    There are different opinions on the forum about which to do.
    Rob
    PS - you're not bothering anyone. We like problems.
    Message was edited by: Rob Burbank

  • SQL Report Row Highlighting

    Hi,
    Hoping someone can please assist but I am unsure how to highlight a row within my SQL Report based on a condition, i.e. either a DECODE or CASE statement being true - if so, would like that report highlighted light blue say.
    Any help, links,examples would be much appreciated.
    Thanks.
    Tony.

    This should help
    Conditional item formatting (color)
    you will have to tweak it a bit, but its a way forward for you.

  • Iinsert the row in standard report

    hello,
    i want to insert the row in standard report i.e. for remarks, kindly explain me how to do same, please explain me in step by step.
    thanks
    suja

    Hi Sujatha,
    If you would like to ADD a FIELD to a standard table, please follow the below given procedure.
    Go to SE11. Open the standard table.
    Click on button APPEND STRUCTURES.
    You might get a warning "No append defined for table MAKT". Hit Enter.
    Now enter structure name. E.G., ZTEST.
    Enter the description for the structure.
    Enter the FIELD NAME that you want to append to the table.
    Save and activate.
    <b>Reward points for helpful answers.</b>
    Best Regards,
    Ram.

  • Apex 4 -- Standard, Alternating Row Colors row highlight broken

    template: 14. Standard, Alternating Row Colors in apex 4.0 appears to have it mouse-over row highlight colors reversed (except for the first row, which is not highlighted)
    when first displayed, the rows are displayed white/gray/white...
    mousing over the first row does nothing, mousing out does nothing
    mousing over the 2nd row does nothing, mouse out changes it to white
    mousing over the 3rd row does nothing, mouse out changes it to gray
    etc

    I noticed this behavior too, very annoying. Did someone found a way to fix the template ?

  • Changing Row color of standard SQL report

    Hi,
    I am trying to follow this post to change the color of a row in APEX SQL report. Change Colour of Row - Oracle APEX SQL Report
    It's a bit outdated, and trying to figure out how to get to this page: http://img7.imageshack.us/img7/4782/columntemplate.jpg in APEX 4.2 where I can conditionally set background color.
    I am using theme 13 (legacy) and made a copy of the report region. Edited it but cannot find an equivalent section of that apex 3.1 screenshot.
    Any help appreciated.

    William Wallace wrote:
    I sure was :) Cheers for pointing it out.
    Just another question, there are 4 options for the #COLUMN_VALUE# which I have background color conditionally (just like in that screenshot) based on one of the column values. The column can be of 1..5 values, however I only have 4 conditions to work with in the template editor.
    So what APEX is doing is since it can't find a 5th matching condition, it picks the very first one and applies it on it (even though the condition doesn't match).
    Is there anyway I can incorporate a 5th option/condition for column templates? Cheers.Not using that technique. There are a couple of options: another template-based approach using a custom named column report template, or using jQuery. I generally prefer the template method as everything runs on the server.
    1. Start by including a column containing the condition logic to generate a class value in the report query:
    select
            , case
                when sal < 1000 then 'low'
                when sal between 1000 and 2000 then 'medium'
                when sal > 2000 then 'high'
              end sal_class
    from
              empThen create a custom named column report template:
    2. Go to: Shared Components > Templates > Create
    3. In the wizard select: Report > From Scratch
    4. Enter/select:
    Name: [Name for this template]
    Theme: [Your current theme]
    Template Class: Custom 1
    Template Type: Named Column (row template)
    5. Click Create.
    6. Click the Status Report link in the Templates report.
    7. Enter the following properties:
    Row Template 1
    <tr class="#SAL_CLASS#"><td>#1#</td><td>#2#</td>...include a cell with a column substitution for every column in your report...</tr>i.e. the column with the conditional logic in the query is used to apply the required class to the row.
    Before Rows
    <!-- Copy the Before Rows definition from the Standard report template for your current theme and paste here -->
    <tr><th>#1#</th><th>#2#</th>...include a header with a column substitution for every column in your report...</tr>
    After Rows
    <!-- Copy the After Rows definition from the Standard report template for your current theme and paste here -->Add CSS to style the rows:
    8. Edit the Page CSS Attributes for the report page:
    Inline
    tr.low td { background-color: yellow; }
    tr.medium td { background-color: white; }
    tr.high td { background-color: red; }9. Change the report to use the new template.
    For the alternative jQuery approach, Tom created an example for this thread: +{thread:id=2487955}+

  • Sales quote layout rows doubled in crystal report layout

    Dear All,
    Sales quote layout rows doubled in crystal report layout.
    In sales quote layout the rows are doubled. Even in the standard layout. If the quote contains only two rows. Then it is doubled as 4 rows in the crystal report layout.
    It is happening in the particular database. Other database are working fine. I request you people to help me to overcome this issue.
    Regards,
    Siva

    Hi Siva,
    If this is regarding CR in SAP B1 then please repost to the SAP Business One Application space.
    -Abhilash

  • How to add new fields to standard reports

    hi friends,
                 im into ABAP and working across all modules..the basic thing is users and functional people are not satisfied with the standard reports..they need some logic change or to add some more fieldsinb the standard reports.For logic change we have to copy the standard to zprogram and can do or create a new program itself..but in many cases they ask for extra fields.how to achive it ..
    for example my requirement now is adding vendor name field to the report FAGGL03 ....i found a badi and have make changes to it ...now the vendor name will be coming in sgtxt over writing the text ...but they need text also...now what shall i do???
    append structure vendor name field in faglposx table ....???how to find out the final internal table from where the output is coming ????
    ?when we check the standard rewport codes...there are lot of include statements perform statements etc  ...how to find out the final structure or internal table which has the output values..???

    hi
    it would be better if u giv full name of the report
    if ur displaying the data in alv then search for the
    word REUSE_ALV_LIST_DISPLAY REUSE_ALV_GRID_DISPLAY from which u can get the final table name
    then check the data that is comming into
    try using implicit enhancement or any other exit in the declaration and declare a new structure with the field and append it to the field catalog
    if ur displaying the data using write statement
    then create a zprogram and add a write statement
    fi ur unable to find here the final table then after displayign the report start the debugging and double click on any row to find out more easily
    shiva

Maybe you are looking for