Highlight row in report?

I have a SSRS report which displays hundred of rows. I was wondering if there is anyway i can highlight the rows so that i can easily know on which row i am while accessing the report.
Any thoughts?
creativity..

Hi Sanjeev,
If I understand your question correctly, you want to alternate the color of every other row so that you can easily tell which row you are on as you visually scan across a page.  If so, this is how I do it:
Click anywhere on your tablix so that the grey border boxes appear showing the frame of your table.
Click on the grey border box to the left of the row that you wish to have alternate row color.  This should outline a bold box around every cell in the row.
Press the F4 key to bring up your properties pane.
Go to the Background color property of in the property pane and click on the little down arrow showing a color pallette.
Click on Expression and enter an expression similar to the following:
=iif(RowNumber(Nothing) Mod 2 = 1, "Khaki","White")
The above expression will cause every other row in your output to be Khaki or White
Done
Of course, if your request is to dynamically highlight your row as you mouse over it in the browser, then I don't think there is a way you can do this in SSRS.
Good luck!
-Dan
DJAnsc

Similar Messages

  • Classic report - Highlight row

    APEX 4.2.1
    With all the latest and greatest dynamic action and jQuery goodness in 4.2.1, what is the easiest, declarative way to highlight rows in a classic report region (Generic Column Template) based on data condition using values on the row, using #COL# notation? e.g. If SAL > 1000 and DEPT = Marketing, highlight row in red or some such.
    In prior versions, this involved copying the Generic Column Template to one used just by this report and use the (up to 4) Column Templates with a PL/SQL expression.
    Thanks

    Custom report templates are okay if your needs are straightforward. But you said it already, there are only four different flavors to chose from.
    Here is a solution that'll work on all pages if once installed and can be extended to a multitude of visual attributes. Only an example that you may want to adapt to your liking.
    Edit Page, "CSS, Inline", or via Shared Components > CSS files
    td.color1 {background-color:#9F9} /* Table cell gets colored in light green  */
    td.color2 {background-color:#FF9} /* Table cell gets colored in light yellow */
    td.color3 {background-color:#F99} /* Table cell gets colored in light red    */
    /** and so forth, followed by as many declarations as you need... */Page Template, "Function and Global Variable Declaration":
    /** Change the visual appearance of your classic report as you like after it's rendered */
    function customClassicReportDisplay(){
      /** Transfer the color class from the text to the table cell */
      $('td span.color1').closest('td').addClass('color1');
      $('td span.color2').closest('td').addClass('color2');
      $('td span.color3').closest('td').addClass('color3');
      // and so forth, followed by as many declarations as you need...
    }This jQuery code can be simplified, especially the handling of many lines for many colors can still be compacted, which makes it more difficult to understand though.
    Page Template, "Execute when Page Loads":
    /** Perform the function on Page Load */
    customClassicReportDisplay();
    /** Perform the function after Partial Page Rendering */
    $('form').bind('apexafterrefresh', function(){
      customClassicReportDisplay();
    });Here comes the trick. In the SQL statement, you wrap a <span> HTML tag with a different class declaration around each value that you want to color.
    SELECT '<span class="color' || case when some_value > 100 then '2' else null end || '">' || some_value       || '</span>' AS some_value
         , '<span class="color' || decode(some_other_value, 'too much', '3', NULL)   || '">' || some_other_value || '</span>' AS some_other_value
         , '<span class="color' || case when last_value between  0 and  10 then '1'
                                        when last_value between 11 and  50 then '2'
                                        when last_value between 51 and 100 then '3'
                                        else null end                                || '">' || last_value       || '</span>' AS last_value
      FROM ...This obviously makes the SQL a bit more complicated but in my opinion, I think this is a data driven topic and therefore just fine. Hence you say "depending on value ranges I want to change something" - and that belongs to SQL. WHAT you want to do (here: change color) is then up to your JS and CSS declaration. If you shift the SQL code into a view it's better to maintain and won't get spoiled by non-savvy third party developers...
    I know that's not what you originally asked for, because there is no #COL# notation, but for me it's the most flexible solution I can think of under APEX.

  • 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 Rows/Fields in Inetractive Report

    What is the best way to conditionally highlight rows/field in an Interactive Report? I don't want to create filters that the users can see/turn off

    Hello Bob,
    Before you have to think about what happens (or should happen) if a user creates his own highlighting. That will interfere with the highlighting you created....
    But you can set highlighting for a field in the select statement:
    select      "DEMO_ORDER_ITEMS"."ORDER_ITEM_ID" as "ORDER_ITEM_ID",
          "DEMO_ORDER_ITEMS"."ORDER_ID" as "ORDER_ID",
          "DEMO_ORDER_ITEMS"."PRODUCT_ID" as "PRODUCT_ID",
          CASE
             WHEN UNIT_PRICE < 200 THEN
             '<span style="display:block;width:30px;background-color:red;color:darkgreen;">'
             || unit_price
             || '</span>'
             ELSE to_char(unit_price)
             END UNIT_PRICE,
          "DEMO_ORDER_ITEMS"."QUANTITY" as "QUANTITY"
    from      "DEMO_ORDER_ITEMS" "DEMO_ORDER_ITEMS"But remember that the outcome of your query now changed. If you sort upon UNIT_PRICE the <span> tag also is taken into consideration.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Highlight row

    all,
    i'm using the "Background color for current row" property in the report template to define the background color of rows when the mouse is over it. is there a way to define the color of the font for the highlighted row also?
    thanks in advance,
    paul

    See the same example
    http://htmldb.oracle.com/pls/otn/f?p=24317:111
    Modifiying the FG color is not a builtin feature, but you can piggyback on the code generated by the background color feature.
    Add the following to the region footer to override the generated code
    <script type="text/javascript">
    var rowStyleHoverFG = new Array(15);
    function row_mouse_over404667826284618949(rowNode,currentRowNum) {
                    rowActive = 'Y';
                    for( var j = 0; j < rowNode.childNodes.length; j++ ) {
                        if (rowNode.childNodes[j].tagName=='TD') {               
                            rowStyleHover[currentRowNum] = rowNode.childNodes[j].style.backgroundColor;
                            rowStyleHoverFG[currentRowNum] = rowNode.childNodes[j].style.color;
                            rowNode.childNodes[j].style.backgroundColor = '#ffffc1';
                            rowNode.childNodes[j].style.color = 'green';
                function row_mouse_out404667826284618949(rowNode,currentRowNum) {
                    rowActive = 'N';
                    for( var j = 0; j < rowNode.childNodes.length; j++ ) {
                        if (rowNode.childNodes[j].tagName=='TD') {               
                            rowNode.childNodes[j].style.backgroundColor = rowStyleHover[currentRowNum];
                            rowNode.childNodes[j].style.color = rowStyleHoverFG[currentRowNum];
    </script>Change the green color to anything you want.
    Hopefully this becomes a standard feature in the next release so we wont have to hack into it like this.
    Hope this helps.

  • About highlight row

    Hi all,
    I tried to highlight rows in my report.
    <?if@row:position() mod 2=0?> <xsl:attribute name="background-color" xdofo:ctx="incontext">lightgray</xsl: attribute><?end if?>
    But I found if I use this in the default template(using report wizard), it doesn't affect any rows.No any highlight.
    If I added this code in the table that I created by hand or using table wizard, it works well.I can see gray highlight in every second row.
    I made this two templates exactly same, but the first one didn't work.I tried to copy the code to a table which is created by myself, it works.
    Is it a bug or something else?Any suggestions and answers are welcome.I really appreciate it.
    Thanks.

    Yes Dude,
    even i faced some issue like this,
    I think its not bug, due to wrong formatting in the table which we could not see in RTF file,
    that is not working,
    even i did it newly and i got it correct :).
    It has been made so simple for people who are not tech-savy.
    http://blogs.oracle.com/xmlpublisher/2007/08/09

  • Highlight row on mouseover

    See
    http://htmldb.oracle.com/pls/otn/f?p=24317:106
    Selecting a radiobutton and Clicking the Submit button highlights the selected row.
    But when I mouseover the highlighted row, the color changes due to the mouseover stuff defined in the Alternating Row Colors template.
    How can I disable all the mouseover stuff?
    Thanks

    See
    http://htmldb.oracle.com/pls/otn/f?p=24317:111
    The row color changes as you mouseover the rows. As you say, the color is defined in the "Background color for current row" on the Row Highlighting section on the Report Template
    My question was: How do I suppress this mouseover stuff from being generated on the report region? The mouseover code seems to be hardcoded by the HTML DB engine, I didnt see a way to suppress it on the Report Templage page.
    Thanks

  • How to disable highlighting in Crystal Reports 2008

    Hi,
    does anyone know how I can disable highlighting of fields when using the .NET 2.0 CrystalReportViewer 2008?
    See as example: http://i31.tinypic.com/30ivshs.png
    The problem is, that the highlighting is meaningless and thus confusing, and additional to that it also leaves lightgray artifacts (background of the field9 on the screen after highlighting. The latter problem is not happening on every configuration though, probably related to color settings.
    Regards,
    Florian

    I do not see this highlighting in my reports, unless I design them to be as such. Questions and a suggestion:
    Do you see this highlighting in the CR designer?
    Is this a web or a win app?
    Download SP 2 for CR 2008 (12.x) and see if this helps. SP 2 is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
    Ludek

  • Custom row-fetch and how to get column values from specific row of report

    Hi -- I have a case where a table's primary key has more than 3 columns. My report on the
    table has links that send the user to a single-row DML form, but of course the automatic
    fetch won't work because 1) I can't set more than 3 item values in the link and 2) the
    auto fetch only handles 2 PK columns.
    1)
    I have written a custom fetch (not sure it's the most elegant, see second question) that is working
    for 3 or few PK columns (it references the 1-3 item values set in the link), but when there are
    more than 3, I don't know how to get the remaining PK column values for the specific row that was
    selected in the report. How can I access that row's report column values? I'll be doing it from the
    form page, not the report page. (I think... unless you have another suggestion.)
    2)
    My custom fetch... I just worked something out on my own, having no idea how this is typically
    done. For each dependent item (database column) in the form, I have a source of PL/SQL
    function that queries the table for the column in question, using the primary key values. It works
    beautifully, though is just a touch slow on my prototype table, which has 21 columns. Is there
    a way to manually construct the fetch statement once for the whole form, and have APEX be smart
    about what items get what
    return values, so that I don't have to write PL/SQL for every item? Because my query data sources
    are sometimes in remote databases, I have to write manual fetch and dml anyway. Just would like
    to streamline the process.
    Thanks,
    Carol

    HI Andy -- Well, I'd love it if this worked, but I'm unsure how to implement it.
    It seems I can't put this process in the results page (the page w/ the link, that has multiple report rows), because the link for the row will completely bypass any after-submit processes, won't it? I've tried this in other conditions; I thought the link went directly to the linked-to page.
    And, from the test of your suggestion that I've tried, it's not working in the form that allows a single row edit. I tried putting this manually-created fetch into a before header process, and it seems to do nothing (even with a hard-coded PK value, just to test it out). In addition, I'm not sure how, from this page, the process could identify the correct PK values from the report page, unless it can know something about the row that was selected by clicking on the link. It could work if all the PK columns in my edit form could be set by the report link, but sometimes I have up to 5 pk columns.
    Maybe part of the problem is something to do with the source type I have for each of the form items. With my first manual fetch process, they were all pl/sql functions. Not sure what would be appropriate if I can somehow do this with a single (page level?) process.
    Maybe I'm making this too hard?
    Thanks,
    Carol

  • How to convert colon separated column values in multiple rows in report

    Hi All,
    I want to display colon separated values from a column, in a multi row in report.
    For example i have a column1 in a table with value 'A:B:C' , column2 has value '1'.
    i want to show in a report three rows using these two columns like
    column1 column2
    A 1
    B 1
    C 1

    Here's one way:
    SQL> create table test (col1 varchar2(20), col2 number);
    Table created.
    SQL> insert all
      2    into test values ('A:B:C', 1)
      3    into test values ('Dg:Ezs', 2)
      4  select * from dual;
    2 rows created.
    SQL> select
      2    t.col2,
      3    regexp_substr(t.col1, '\w+', 1, t2.column_value) c1
      4  from test t,
      5    table(cast(multiset(select level
      6                        from dual
      7                        connect by level <= length(t.col1) - length(replace(t.col1, ':', '')) + 1
      8                       ) as sys.odcinumberlist )) t2
      9  order by 2, 1;
          COL2 C1
             1 A
             1 B
             1 C
             2 Dg
             2 Ezs
    SQL>Edited by: Littlefoot on Jan 31, 2012 10:13 AM

  • Add row in report FBL1N

    Hi Gurus,
    I have requirement to add rows in report FBL1N in order to display  all item  per document ( like in document overview ) in the same screen.
    I applied note 112312 to display offset a/c (BTE with FM LINE_ITEMS_GET_GKONT) but partialy  resolve my pb that is one item is displayed.
    I would like to know how to do this, if i have to use BADIs (such BADI FI_ITEMS_MENUE01 ) and witch one  or clone de STD or customazing.
    Thanks in advance.

    Ok,
    trx FB1N, after selection give me :
       DocumentNo Type     Doc..Date  Offst.acct
       5300029134 TL       22.05.2007  600819   => one account per document
       5300034345 TL       07.06.2007  600819    
       5300038636 TL       21.06.2007  600819    
       5300038637 TL       21.06.2007  600819    
       4200014129 FA       28.02.2007 40811030  
       4200012196 FA       31.03.2007 40811030  
       4200013351 FA       31.03.2007 60640000  
    details of fisrt document (n° 5300029134) give 4 line items :
    Itm PK  Account   Account short text         Amount
       1 25   600819     LYRECO                 20,524.36
       2 39   600819     LYRECO                 20,524.36-
       3 50   51110040   BN att FGX LCR n.D.    20,524.36-
       4 40   51119800  En cours E à P         20,524.36
    my requirement is to display 3  account ( 600819, 51110040 and 51119800)  given in details of document  in column Offst.acct  when excute FBL1N in stead of one. like this :
    DocumentNo Type     Doc..Date  Offst.acct
       5300029134 TL       22.05.2007  600819 
       5300029134 TL       22.05.2007   51110040    
       5300029134 TL       22.05.2007   51119800 
       5300034345 TL      07.06.2007   600819    
       5300038636 TL       21.06.2007  600819    
       5300038637 TL       21.06.2007  600819    
       4200014129 FA       28.02.2007 40811030  
       4200012196 FA       31.03.2007 40811030  
       4200013351 FA       31.03.2007 60640000  
    I hope that is more clear,thanks fo your patience.

  • How to hide edit link for  some rows in report? (according to value of col)

    Helo,
    How to hide edit link for some rows in report? (according to value of column)
    regards
    siyavuş

    Hi siyavuş
    You can do this by taking the edit link off the report and putting it into your report SQL.
    Use something like Select CASE WHEN (condition)  THEN
    'Put your edit link in here as an html Anchor like<a href="(target)">Edit</a>'
    ELSE
    tt.value
    END edit_link
    FROM test_table tthope it helps,
    Gus..
    You can reward this reply (and those of other helpers) by marking it as either Helpful or Correct.
    This allows forum users to quickly find the correct answer.
    ;-)

  • Remove/delete the row with Report Name above header while exporting SSRS to excel

    I wanted to make sure to delete the top most row with Report name in SSRS report while exporting to excel.
    I didn't find any way to do so, My report don't need a report name actually i deleted  the text still a blank row appears in excel.
    Is there any property hidden i need to look for this requirement?

    Invalid definition.
    The report definition is not valid.
    Details: The report definition has an invalid target namespace
    'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition'
    which cannot be upgraded. (rsInvalidReportDefinition)

  • IR highlight row error

    Hi,
    I have two columns in IR
    - Amount to be paid
    - Paid amount
    I would like to highlight rows that have remain amount =0
    so I created a Compute column Name Remain Amount = Amount to be paid - Paid amount
    and created highlight condition where Remain Amount = 0
    but I catched the error when apply the condition
    ORA-20001: get_dbms_sql_cursor error ORA-00904: "Remain Amount null(null)": invalid identifier
    Please help me out.
    Thanks

    Hi,
    Is it possible that one or more of your records doesn't have a value in one/both of the fields? Try using NVL(columnname, 0) to ensure that any nulls are converted to 0 (zero)
    Andy

  • Left Group style report highlight row issue

    I have a Left group style report that I need rows highlighted for sub-total lines in the report. I have coded it with the following in a fiield after the for each of the report
    <?if@row:PERF_NON_PERF='Sub-Total'?><xsl:attribute name="background-color" xdofo:ctx="incontext">yellow</xsl:attribute><?end if?>It highlights MOST of the row but ends up missing the last few columns. The page setup has been set to landscape to maximize the amount of data being displayed.
    I can send along sample data and rtf file if needed, just seems rather... Weird...
    Any help would be welcome..
    Thank you,
    Tony Miller
    Dallas, TX

    Bump.. Anybody have an idea on how to have highlight for entire row of a landscape based report?
    Thank you,
    Tony Miller
    Dallas, TX

Maybe you are looking for

  • Restricting some sales orders in Report

    hi i have a problem , i want to restrict some sales orders based one the following logic , can any one help me in coding this logic if ( 0Doc_categ = k ( Credit memo request) or H (Returns)) get( Sales Documents ) for all these sales Documents get Re

  • Error While Using MDT 2013 to Refresh Windows XP to Windows 8.1 during Computer backup to network

    Hi, I am getting below error in Deployment Summary  while Computer backup to network during Refresh from XP to 8.1 through MDT 2013. 1. I followed URL- http://blogs.technet.com/b/mniehaus/archive/2014/01/09/migrating-from-windows-xp-to-windows-8-1-us

  • How to create a parameter?

    dear friends i'm a recent oracle developer. i face a problem in the graphic builder . i need to create a peremater within the graphic builder . i issued this sql command select sum(sal),sal_date from salary_table where sal_date between :para_d1 and :

  • IPod nano 7th gen won't charge.

    I bought it in July, everything has worked well. Yesterday the battery had run out, and now it won't read the charger - and I have tried multiple chargers. I have also tried resetting while plugged in, and that did not help either. Any ideas?

  • How do you separate UDP data streams

    Hi.  I'm currently using LabVIEW 2013  to read in a UDP data stream (packet) that contains various parameters.  I am successful in receiving the UDP packet using the UDP Open and UDP Read vi.  On the data out of the UDP Read I have it running into th