IR Report Freeze Column Header Row

In Interactive Report, Can we freeze the column header row ? This is a most wanted requirement asked by customers. More than 50 times requested in past month.
Please help

I have been playing with this problem and came up with this potential solution that has so far worked for me.
Caveats: I am new to this type of coding so check it carefully. It only works with Internet Explorer (its what we use at work). I hope to have a Firefox version someday. Some code used was found online. I gave it proper credit in my usage.
Instrcutions:
In the HTMLHeader of the Edit Page, paste the code shown below. It will lock/freeze the header of an interactive report and (optionally), any number of columns to the left of the report.
To customize it for your needs,
1. edit the line that reads: var LOCKED_COLUMNS=2; to reflect the number of columns to be locked (0 won't lock anycolumns)
2. edit the style section that reads:
<code>
div#apexir_DATA_PANEL
width: 300px; height=200px; overflow: scroll; position:relative; float:left;
</code>
to reflect the width and height for you scrolling window.
3. optionally turn of the pagination (under Pagination in the Report Attribute pagefor the region) if you want to scroll through your entire dataset without paging [possible performance implications].
I tested this with Apex 3.2 and with several themes (1, 3 and8). Hopefully it will work for you.
The code follows:
=====================================
<code>
<script>
// This code copied from: http://javascript.about.com/library/bldom08.htm
document.getElementsByClassName = function(cl)
var retnode = [];
var myclass = new RegExp('\\b'+cl+'\\b');
var elem = this.getElementsByTagName('*');
for (var i = 0; i < elem.length; i++)
var classes = elem.className;
if (myclass.test(classes)) retnode.push(elem[i]);
return retnode;
// End of code copied from: http://javascript.about.com/library/bldom08.htm
var LOCKED_COLUMNS=2;
function applyCSS()
var data_Table=document.getElementsByClassName('apexir_WORKSHEET_DATA');
var tr_Tags=data_Table[0].getElementsByTagName('tr');
for (var i=0;i<tr_Tags.length;i++)
var tab_Cells=tr_Tags[i].childNodes;
for (var j=0; j<LOCKED_COLUMNS; j++)
if (tab_Cells[j].nodeName != 'TD')
{ tab_Cells[j].setAttribute('id', 'Lock_Lateral_Vertical'); }
else
{ tab_Cells[j].setAttribute('id', 'Lock_Lateral'); }
window.onload=applyCSS;
</script>
<!--[if IE]>
<style id="Lock_CSS">
div#apexir_DATA_PANEL
width: 300px; height=200px; overflow: scroll; position:relative; float:left;
table.apexir_WORKSHEET_DATA th
position: relative; z-index: 14; display: table;
top: expression(document.getElementById("apexir_DATA_PANEL").scrollTop-3);
table.apexir_WORKSHEET_DATA td
border: solid 1px grey;
td#Lock_Lateral
background-color: #999999; position: relative; z-index: 15; display: table;
left: expression(document.getElementById("apexir_DATA_PANEL").scrollLeft-3);
th#Lock_Lateral_Vertical
position: relative; z-index: 21; display: inline;
top: expression(document.getElementById("apexir_DATA_PANEL").scrollTop-3);
left: expression(document.getElementById("apexir_DATA_PANEL").scrollLeft-3);
</style>
<![endif]-->
</code>
================================
ackness

Similar Messages

  • FREEZE COLUMNS AND ROWS IN WEB REPORT - PLEASE ADVISE ME

    Hi Experts,
    I have a web template that contains a query. My customer wants to freeze columns and rows in this report like we do in Excel. I know that in BW 3.5 this is not a standard feature of Table item. In forum I have found some messages regarding with this issue. I inserted a JavaScript code that I have found in forum, but this does not help. A codewriter wrote some other JaveScript for example  alert(), that works but some part of taken code from forum such as defined functions do not work.
    Other solutions advised in forum such as fixing row numbers or column numbers do not fix my problem.
    My questions:
    1 -  In new version of BW, BI 7.0 have this issue with WAD in standard been solved?
    2 - Does it really possible at the same time rows and columns to freeze? I want to freeze 2 rows from top, 2 columns from left.
    Could anyone have an idea?
    Best regards,
    Songul

    Hello,
    This will be implemented with SPS13.
    https://websmp204.sap-ag.de/~sapidb/011000358700004483762006E
    And before SPS13, i frame is useful to realize what you want to do. Using 2 "Analysis" web item. and display of 1st analysis web item is restricted only thin the header of the table and the 2nd Analysis web item is used as "table". display of this "analysis" is also restricted to 10 - 30 rows.
    but this consume hardware resource.
    <sample>
               <div style="OVERFLOW: auto; WIDTH: 1000px; HEIGHT: 20px" >
                   <bi:ANALYSIS_ITEM name="ANALYSIS_ITEM_2" designwidth="400" designheight="20" >
                       <bi:DATA_PROVIDER_REF value="DP_1" />
                       <bi:NEW_LINES_COUNT value="0" />
                       <bi:NEW_LINES_POSITION value="TOP" />
                       <bi:DATA_ROW_FROM value="1" />
                       <bi:DATA_ROW_TO value="0" />
                   </bi:ANALYSIS_ITEM>
               </div>
               <div style="OVERFLOW: auto; WIDTH: 1000px; HEIGHT: 200px" >
                   <bi:ANALYSIS_ITEM name="ANALYSIS_ITEM_1" designwidth="400" designheight="200" >
                       <bi:DATA_PROVIDER_REF value="DP_1" />
                       <bi:DATA_COLUMN_FROM value="1" />
                       <bi:DATA_ROW_TO value="0" />
                   </bi:ANALYSIS_ITEM>
               </div>
    Kind regards,
    Masaaki

  • Excel like 'Freeze column header' functionality in sharepoint OOB list view webpart

    Hi,
    I have OOB external list dropped on a page as listview webpart. It contains many records and hence while scrolling down headers are no available, hence it should freeze all column headers while scrolling down the page. Its directly dragged and dropped
    on site page hence no server side formatting can be done.
    Is there any way we can apply some client side script to freeze column headers to listview webpart while scrolling down? or any settings that can be done to acheive this?
    Thanks in advance.
    Regards,
    Rahul

    Hi Rahul,
    Normal techniques for freezing the header row of an HTML table tend to fall short when it comes to SharePoint 2010 lists due to the lack of THEAD elements.
    You can try something like this, although you may want to test it in various browsers in case the column heading alignment is off.
    <style>
    .ms-viewheadertr{background-color:white;}
    </style>
    <script>
    /* wrap the table in a div, set its height, give it scrollbars, and move it down */
    var myTable = document.querySelector(".ms-listviewtable");
    var wrapperDiv = document.createElement('div');
    wrapperDiv.setAttribute("ID","FreezePaneWrapper");
    wrapperDiv.setAttribute("style","OVERFLOW: auto; HEIGHT: 400px; padding-top:38px;");
    wrapperDiv.appendChild(myTable.cloneNode(true));
    myTable.parentNode.replaceChild(wrapperDiv,myTable);
    /* Freeze the header row and move it up*/
    var headerRow = document.querySelector(".ms-viewheadertr");
    document.getElementById("FreezePaneWrapper").style.width = "" + headerRow.scrollWidth + "px";
    headerRow.style.width = "" + headerRow.scrollWidth + "px";
    headerRow.style.position = "absolute";
    headerRow.style.top = ""+(headerRow.offsetTop-39)+"px";
    /* Tell the header's columns to be the same width as the cells in the first "alternating" row */
    var columns = document.querySelector("table.ms-listviewtable tr.ms-alternating").querySelectorAll("tr>td");
    headers = document.querySelectorAll("tr.ms-viewheadertr th");
    for(var i = 0; i < headers.length; i++){
    if(columns[i].scrollWidth > headers[i].scrollWidth){
    headers[i].style.width = ""+columns[i].scrollWidth + "px";
    }else{
    columns[i].style.width = ""+headers[i].scrollWidth + "px";
    </script>
    Edit: Also, you may want to inspect the HTML attributes on the external list view to be sure the class names match up with the querySelector parameters above. Specifically, the table should have a class of "ms-listviewtable", the header row should
    have a class of "ms-viewheadertr", and rows of alternating background color should have a class of "ms-alternating".
    If any of those are different in your case, you may be able to adjust the above code accordingly.

  • How can I freeze the header row in Numbers '08

    Hello,
    I've read through support communities and looked high and low through numbers, but can't seem to find a way to freeze my header row.  Any ideas?  Thanks!

    Hi April,
    Upgrade to Numbers '09, where the feature was added.
    The closest you can come in Numbers '08 is "Repeat Headers" in the Table menu, which will show the header row at the top of each page of the document as it would be printed.
    Regards,
    Barry

  • Numbers-freezing columns and rows

    Can you freeze columns and rows in numbers although they are not designated as headers?

    FYI   I was looking for information in these old posts on the Freeze function in Numbers.  
    After looking through numerous posts and finally talking with an Apple Tech, we found that the freeze function was not in Number 08, but added in Number 09.   We were both surprised that this basic spreadsheet function was missing from 08
    With this function you can lock/freeze the top row and/or column so as you scroll through the spreadsheet, you can see you first rows or columns while looking at the data in the middle of the  spreadsheet.  
    I am not an Apple representative, but the only way to fix this and other flaws in Number 08 is to upgrade to 09 for $19.99.   Hope this helps.

  • Freeze columns or rows in Desktop

    Is it possible to freeze columns and rows in discoverer desktop? If so, how is it done ? all help gratefully received.

    In Discoverer Desktop, you can select a column and use the menu option Format >> Columns >> Width... and enter a value for the column width.
    Regards
    Discoverer Product Management

  • Freeze columns and rows easily

    I am new to numbers and although I had some difficulties, I have yet to freeze columns and rows in a simple way as in excel. I need to find a tool to focus titles without merging cells, this is something like "Center Across Selection". There is this tool? How I can actually freeze columns and rows easily?

    Numbers automatically repeats the column headers when you are in "Page View".  To enable page view select the menu item "View > Show Print View".
    There is no center across selection.  You can add a text box which you place in front of your table that is as wide as the group of cells you wish to centered on, with the text formatted so it is centered.
    I left the text box above the table, but you should move on top of like:

  • How to freeze column and row headers of a table

    How to freeze column and row headers of a table in jsp and javascript. An example is available in
    http://www.massless.org/_tests/grid1/ pls help to find a solutionj
    Thanks in anticipation
    Sreejesh

    At least I don't stop you from that. I also don't see any benefits in this topic.
    Success.

  • Freezing columns and rows in an Interactive Report

    version 3.2.1
    Hello,
    How can I freeze columns and/or rows in an Interactive Report so they don't scroll off the screen?
    Thanks,
    Joe

    In the header html, enter the following
    freeze(rownum=>1,degree=-100,scale=centigrade);

  • Freeze columns and rows for scrolling in HTML ouput

    Hi everyone!
    I have an BIP report with a crosstab generating a HTML output and the table tends to get very big in the ouput, both vertical and horizatal wise, and I am looking for a way to freeze the first column when scrolling horizontally and the header row when scrolling vertically.
    Is there a way to accomplish this? It would help me a lot!
    Thanks,
    Magnus

    I saw in another tread (Freeze column headers in a table and enable vertical scroll bar on the rows that this user have seen a demo of what I want to accomplish. Nothing that you are aware of?
    Or, can it be done with Excel output?
    /Magnus

  • Report Painter Column Header to display on continuing page

    Gods of FICO,
    I've report painter issue. When out of a report is printed, and when it is longer than one page..... the column header description is not getting displayed on second page.
    how can i show column header description on subsequent pages?
    thanks

    Hi,
    I have the same issue. I have also de-selected the 'Allow row to break across pages' for the whole table but still the table breaks and continues on the next page.
    I see that the question has been answers correct but no solution provided. I would appreciate if you could post the solution.
    Regards,
    Hakan
    Edited by: HakanB on 2011-maj-04 00:05

  • Report painter report with two header rows

    Experts,
    I have managed the variable values in report painter but in display output i am unable to recognize the
    value displayed for march / April is actual or planned
    Please find attached screen shot for the same...
    Is there any way to have both the information on header row?
    Thanks
    Sagar C'kar

    Hi Sagar...
    Please change the short, medium and long text as you wish (please have all the description in the long text), by default system displays with the medium text, but no need to worry, when you keep the cursor on the head column of the text (where medium text is maintained), system displays with long text also. By this you can see the long text. This option we may use for adding additional text there, maintain some text at medium text and maintain additional text at long text option, so when you keep the cursor at head of the column with medium text, you see long text in addition.
    If you want to have the long text instead of short or medium text make changes like this..
    By this you make the text length at maximum i.e. 21 digits I suppose and then.....
    By the above you select "long text" as default
    Regards..
    Jose

  • Freezing columns and rows

    Hi. I don't use spreadsheets a lot so I have a basic question. I have a spreadsheet and I'd like to "freeze" the first row as well as the first two columns. Can anyone tell me how to do it?
    I think "freeze" is the right term, but I'll explain a little more in case it isn't. I want the top row to stay visible as I scroll down to see rows that are beyond the first screen. Likewise, I'd like my first two columns to stay visible as I scroll to the right.
    Thanks.

    Header rows & column do show at the top of each page if you have print view turned on. Click the small page icon at the bottom left of the document or from the view menu (top item).

  • Interactive Report (IR) column heading: filtered items number & flashlight

    Hello everyone
    several hours of searching through the forum did not provide me with leads or answers to 2 questions. Both are related to the IR column heading menu and options. Let's start with a copy of the relevant portion of the interactive report help screen:
    Column Heading Menu
    Clicking on any column heading exposes a column heading menu.
    [snip]
    Text Area is used to enter case insensitive search criteria (no need for wild cards). Entering a value will reduce the list of values at the bottom of the menu. You can then select a value from the bottom and the selected value will be created as a filter using '=' (e.g. column = 'ABC'). Alternatively, you can click the flashlight icon and the entered value will be created as a filter with the 'LIKE' modifier (e.g. column LIKE '%ABC%').
    List of Unique Values contains the first 500 unique values that meet your filters. If the column is a date, a list of date ranges is displayed instead. If you select a value, a filter will be created using '=' (e.g. column = 'ABC').
    Q1: Why do I not see a flashlight icon? I looked everywhere in the report definition to "enable" it, to no avail.
    Q2: Although we've found IRs to be incredibly useful and embraced by end users, we are having issues when dealing with large datasets. Let's look at searching for people's first/last name in our CONTACTS table. The table is ~28,000 names long. If one attempts to use Column Heading menu to "filter" for any name outside the first 500 unique values, the search does not work. Yes, I know that a workaround is to use Actions Menu icon filter... but, it sure is misleading to have a search which does not go beyond letter B in the list of last names. Furthermore, I do not see a way to DISABLE Column Heading Text Area, and avoid user confusion.
    I suspect that "List of Unique Values contains the first 500 unique values" was set for the performance purposes. Is there a way to set that number anywhere? Have it customized for each column? (columns county and state could be <100, for example)
    Thanks an advance to any advice.
    Vojin

    @Prabodh: what you say is only changing the default image for the column selector at the search bar level. What i think is being looked for is an icon on the popup when a column header is clicked in an IR. Don't bother: there is none.
    @Vojin, Tonibony:
    I also ran into this problem with IRs and the useless column header box. If you want to hide the unique values list, it is a bother. First of all, you can't disable the finding of values, this is embedded in the widget ajax code. Then if you want to just hide the list, there is no real event you can hook up to. The poping up of the box is an ajax callback, and is part of the IR javascript, but this callback does not trigger any event (no apexafterrefresh for example, which is understandable). I've worked around this by overriding/extending the method which is called when ajax is done loading within the IR code. Here is a piece of code which does this (call it on page load):
       // _Finished_Loading is called when the IR is done with a GET action
       // because the posts are synchronous in this report, and no events
       // or hooks are available, the best way to preserve functionality
       // yet extending it is to override the original function, yet
       // keep the base code
       // apexafterrefresh cant be used since it is not triggered after
       // the widget ajax
       var or_Finished_Loading = gReport._Finished_Loading;
       gReport._Finished_Loading = function(){
           //overriden, but still have to call orinigal!
          or_Finished_Loading();
          //SORT_WIDGET is the widget containing all the header elements
          if(gReport.current_control=='SORT_WIDGET'){
             // hide the original dropdown box
             $("#apexir_rollover_content").hide();
       };If you're interested, i've recently developed a plugin for use in my interactive reports which works around some of these limitations. For me, the headers are much more userfriendly than the actions > filter menu. So what i've done is: hide the orignal dropdown, and turn the searchfield into an autocompletion field, which will progressively search through the distinct column values in the IR with ajax. I've even made an option to have the searching behave like a "contains" or a "like". I'm working on a post about it, with background, documentation and source code. I'll add a post here when i finish it up, you can see if that helps you.
    I also would like to add a button later on which will simply add the entered value as a "like %value%" filter. I know how to do this and what to do, i'm just a bit short on time at the moment. I actually think that adding the button in the layout may be the hardest part... :')

  • Sub report in column header

    Infinite loop creating new page due to column header overflow.
    I have a sub report on the column header which works,
    Because my sub report return different records from data source, it fails and get infinite loop error message like above when I have 9 records, it works less than 9 records.
    I would like to know my sub report returns records some times more, are there any place for my subreport?
    Are there limit for sub report?
    Your help and information is great appreciated,
    Regards,
    Iccsi,

    Thanks for the message and help,
    My sub report link to a data soruce which is a stroed procedure running from MS SQL server.
    The stroed procedure returns data based on data base what data in the table.
    It looks like the sub report on the Report Builder limited by the length of the report band.
    I tried to move to column header, column footer, report footer all the same, when the sub report growth then it fails to generate the reports.
    Regards,
    Iccsi,

Maybe you are looking for

  • Simple GUI playing mp3 files

    Hi everyone , i am building a simple GUI playing mp3 files in a certain directory. A bug or something wrong with the codes listed down here is very confusing me and makes me desperate. Can anyone help me please ? import javax.swing.*; import javax.me

  • How do i copy a cell reference to another tab in a sheet

    I need to copy a cell reference in another tab in a sheet, but do not know how..

  • Dr Watson Postmortem Debugger message after installing Adobe Reader 9

    After I installed 'Adobe Reader 9' I was greeted with a 'Dr Watson Postmortem debugger' message so then I uninstalled Adobe and haven't had the dr.watson message since. What can I do as lots of sites require Adobe Reader such as 'youtube'. Can anyone

  • Regarding ALV format

    Dear All: i want to generate a withholding tax report with following format. i populated two internal tables for vendor information and withholding tax information. but cannot bring the format like this: Vendor      10000012     Vendor Name     ABC T

  • Using Archiver to replicate tables

    Hi, I'm trying to replicate a singular table between two instances content server using archiver. CREATE TABLE TEST ID NVARCHAR2(20) NOT NULL, SCHCREATETIMESTAMP TIMESTAMP(6), SCHMODIFYTIMESTAMP TIMESTAMP(6), SCHSOURCEID NVARCHAR2(50) When I insert o