Freezing header in a table

Hi friends,
How can I freeze header in a table? If not possible with a table, can I use any other web bean in OAF. Or can I use CSS or javascript or extending a TableBean.
Need a solution as soon as possible.
Thanks,
Amar.

Hi Amar,
do you need something like "freezing the header and making the rows scrollable like yahoo mail"?
If yes, then its not possible in OAFramework.
--Prasanna                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Including both the Jquery script to calculate the total of calculated column and freeze header row

    Hi
    I managed to get this code from here,
    http://techtrainingnotes.blogspot.in/2013/03/freezing-title-row-of-sharepoint-2010.html done on the page 
    I also managed to get this code from here, http://www.sharepointed.com/2012/11/28/jquery-total-calculated-column-in-sharpoint-2010/ done on another page.
    However, I need this to be done on the same page. When I do this, I only get the freeze header thingy to be up and not the calculated column. Could something be blocking. 

    Hi,
    You take the code below for a try in your environment after modified it a bit to suit the structure of your page:
    <script type="text/javascript" src="../../SiteAssets/js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    // update the list after the page has loaded
    _spBodyOnLoadFunctionNames.push("TTNListScroll");
    function TTNListScroll()
    // Scrolling list code from TechTrainingNotes.blogspot.com
    // Edit the next line with your list's summary name
    var SummaryName = "List28_frozenheader ";
    var TTNmyTable;
    var TTNListDiv = document.createElement('div');
    var TTNHeadingDiv = document.createElement('div');
    var tables = document.getElementsByTagName("table");
    for (var i=0;i<tables.length;i++)
    if(tables[i].summary == SummaryName)
    TTNmyTable = tables[i];
    break;
    if(TTNmyTable == undefined)
    // // Table not found!
    // you may want to comment out the next line after testing
    alert("table '" + SummaryName + "' not found");
    return;
    // make a copy of the table for the heading area
    TTNHeadingDiv.appendChild(TTNmyTable.cloneNode(true));
    TTNHeadingDiv.id="TTNheading";
    TTNListDiv.appendChild(TTNmyTable.cloneNode(true));
    TTNListDiv.id="TTNlist";
    TTNListDiv.width="100%";
    // udpate the page
    var TTNnode = TTNmyTable.parentNode;
    TTNnode.replaceChild(TTNHeadingDiv, TTNmyTable);
    TTNnode.appendChild(TTNListDiv);
    // hide the heading row of the main list
    TTNListDiv.childNodes[0].rows[0].style.visibility='hidden';
    // make the DIV for the heading the same width as the main list
    TTNHeadingDiv.childNodes[0].style.width = TTNListDiv.childNodes[0].offsetWidth;
    getSum(3);
    //pass the column number to this function
    function getSum(col)
    var m = "$"; //change to "" for non-money format
    var arrayList = $("table.ms-listviewtable:first> tbody> tr:gt(0)").find(">td:eq("+col+")");
    var x = 0;
    var p1 = "";
    var p2 = "";
    $.each(arrayList, function(){
    //console.log('$(this).text(): '+$(this).text());
    x += Number($(this).text().replace(/\$|,|\)/g, "").replace(/\(/g,"-"));
    //console.log('x: '+x);
    //format for negative numbers
    if (x < 0)
    p1 = "(";
    p2 = ")";
    x = Math.abs(x);
    $('#diidSortcal').attr('visibility','visible');
    $('#diidSortcal').text($('#diidSortcal').text()+'(sum: '+x+')');
    function addCommas(nStr)
    //formats number
    nStr += '';
    x = nStr.split('.');
    x1 = x[0];
    x2 = x.length > 1 ? '.' + x[1] : '';
    var rgx = /(\d+)(\d{3})/;
    while (rgx.test(x1))
    x1 = x1.replace(rgx, '$1' + ',' + '$2');
    return x1 + x2;
    </script>
    <style type="text/css">
    #TTNheading
    height:28px;
    #TTNlist
    height:200px;
    overflow-y:scroll !important;
    overflow-x:auto
    </style>
    Then you might get something like this:
    Feel free to reply if there are still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Freeze Header Issue in BI4.1 SP2

    Hi,
    I have noticed that the freeze header doesn't work fine when in a report I have:
    - section
    - Outline active
    - sections are collapsed
    In that scenario the header of my table aren't freeze.
    Someone else have noticed these behaviour?
    Thanks,
    Laura

    Hi Laura,
    Go through this video how Freeze header works in Webi 4.1
    Freeze Header Rows or Columns: SAP BusinessObjects Web Intelligence 4.1 - YouTube
    Web Intelligence 4.1: Freeze header rows or columns
    http://webcache.googleusercontent.com/search?q=cache:itt9HuVru5sJ:www.sapimprovementfinder.com/public/index.php/note/exp…

  • Q: Freeze header row in BI7 web template...

    Hi Experts,
    I have created a web template in BI7, and I would like to freeze the header row so that when I scroll down, I can still see the name of the different columns.
    Does anybody know if/how this can be done?
    Thank you in advance,
    Mikael

    Hi,
    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.
    sample:
            <body style="BACKGROUND-COLOR: white" >
                <bi:QUERY_VIEW_DATA_PROVIDER name="DP_1" >
                    <bi:INITIAL_STATE type="CHOICE" value="QUERY" >
                        <bi:QUERY value="ZARQU1010" text="cost" />
                    </bi:INITIAL_STATE>
                </bi:QUERY_VIEW_DATA_PROVIDER>
                <bi:TEMPLATE_PARAMETERS name="TEMPLATE_PARAMETERS" />
                <p >
                    <strong >
                        <font style="BACKGROUND-COLOR: transparent" color="lightseagreen" >fix header</font>
                    </strong>
                </p>
                <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>
    <!-- insert data providers, items and other template content here -->
            </body>
    But note that this consume additional Java resource, see note 927530 BI Java Sizing.
    Kind regards,
    Masaaki

  • How do I Freeze Columns in HTML Tables

    How do I Freeze Columns in HTML Tables when scroll vertically as well as horizontally? (header and some columns on LHS). I generate a JSP report which got more than 1000 rows. Please advise. Thanks.

    Gooooooooooooooooogle searched "Freeze Columns in HTML Tables"
    So many solutions available !!!!!
    see the 1st link
    http://web.tampabay.rr.com/bmerkey/examples/locked-column-csv.html

  • Header Area of Table is not printing on Next Page in SMARTFORM

    Hi All,
    I am facing one problem while Developing a smartform for Delivery.
    I want the same data to be copied to the Next page which is coming on first page. I copied the Main window to Next page with all the details but the Header of the Table is not printing on the Next(Second) page.
    Please help me out regarding this...
    Thanks in advance for your help....
    Thanks & Regards,
    Digamber

    Hi,
    If you are talking about the table (which you created in the main window) and you want the header of the table to be printed on the next page. Is it because of overflowing that's why its printed to the next page?
    If yes, the header cannot be printout out.
    Just for your information. If you want a window in the first page to be copied to all subsequence pages, set the window type to be copies window.
    Hope it helps.

  • How to insert a button on the column header of a table in webdynpro java

    Hi
    Can anyone tell me how to insert a button on the column header of a table in webdynpro java?
    regards
    sunit

    Hi sunit,
    Instead of adding button in the column header , in the column
    add a fixed top cell.
        right click on the column
        Insert FixedTopCell
        Right click on the fixedTopCell
        insert Editor.
       select button.
    then button will be only in the top most row.
    Hope it will satisfy ur requirement
    Regards
    Smitha

  • ADF: coloring the complete header section of table

    Hi Everyone,
    im using Jdev 11G.
    I have created ADF Read only table on the page.
    The table cosists of 15 columns.
    To color the column heading and to make it bold i usesd the below script in the source of my page:
    <f:facet name="header">
    <f:verbatim>
    <table cellspacing="0" cellpadding="0"
    border="0" width="100%"
    style="background-color:#CPD8A1; width:100.0%; height:inherit;">
    <tr>
    <td width="100%" style="font-weight:bold;">Name </td>
    </tr>
    </table>
    </f:verbatim>
    </f:facet>
    Now the problem is:
    one of the column in my table is: "Customer's current residential address".
    Now when i redused the space for this column the heading splited to two parts one on the top of other.
    so the height of the header section for the table has increased so the background color is coming only for text not for the complete header part.
    For suppose the first column is SNO then the background color is for only till SNO but the header height has increased so the remaining space it is coming hasbackgraound white.
    Now i want the same background color for the complete header section without any white color.
    I think im clear with my requirement...
    Any ideas wil be really helpful.
    Thank you.

    One more hint, Oracle ADF has a skin editor which greatly helps you with your task. Depending on you JDev version you cna use the build in version (11.1.2.x) or use the stand alone version which you can donwload from http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html (bottom of the page and make sure you read the instructions+).
    Timo

  • Fixed header for Pivot Table

    Is there any way to show the fixed row header for Pivot Table. Currently its showing on hover.
    Thanks
    Suneesh

    Hi,
    I also have this problem. My view is using 3 EO, my third tables have multiple rows and I want these rows displayed as columns. So I'm using a pivot table to achieve this. I then only have one column in the "data" section of the pivot and all other data is to its left. I only see the column headers on hovering over the column and tha6t just wont suffice. Is there any way of modifying the width aswell?

  • Drag and drop column header in a table

    Hi all,
    I need to drag the Column header in a table dynamically. When I drag the column
    out of the table, The table should be rearranged accordingly
    NOTE: The output is displayed in the form of XML(XSL).
    Pls help me solve the problem .
    Thanks in advance,
    Ganesh

    You can implement DropTargetListener, DragSourceListener, DragGestureListener like the following:
    public class MyTree extends JTree
                implements DropTargetListener, DragSourceListener, DragGestureListener {
        public void dragEnter (DropTargetDragEvent event) {
            event.acceptDrag (DnDConstants.ACTION_MOVE);
        public void dragExit (DropTargetEvent event) {
            //System.out.println( "dragExit");
        public void dragOver (DropTargetDragEvent event) {
        public void drop (DropTargetDropEvent event) {
            // place your code for action after drop
        public void dropActionChanged ( DropTargetDragEvent event ) {
        public void dragGestureRecognized( DragGestureEvent event) {
        public void dragDropEnd (DragSourceDropEvent event) {  
        public void dragEnter (DragSourceDragEvent event) {
            //System.out.println( " dragEnter");
        public void dragExit (DragSourceEvent event) {
            //System.out.println( "dragExit");
        public void dragOver (DragSourceDragEvent event) {
            //System.out.println( "dragExit");
        public void dropActionChanged ( DragSourceDragEvent event) {
            //System.out.println( "dropActionChanged");
    }Hope this can help.

  • Error : Transaction header and line tables cannot be empty

    please can some one help me.
    when i want to create an invoice without anuy line, i have the error : Transaction header and line tables cannot be empty .
    can some one tell me how can i solve this
    regards.

    Hi,
    I really don't know if it is possible to create an invoice in AR with no transaction lines. When I interface invoices from another system to AR (and there is no need to detail inventory items), I use a single line with a dummy inventory item or with no inventory item (inventory_item_id and warehouse_id set to null) in transaction lines, and I use the description field to describe the link to the other software in a user-friendly way.
    Regards,
    Ketter Ohnes
    Message was edited by:
    Ketter Ohnes

  • Opportunity Header and Item tables

    I am looking at the keys on the Opportunity Header and Item table which are GUIDs.
    I have the following scenario.
    1. My source table contains the Opportunity Header GUID
    2. My target table requires all the fields from the source table and some Opportunity Header and Item attributes
    I can write WHERE clause logic for my Opportunity Header attributes
    For my Opportunity item attributes I was going to introduce a count - this is not possible with Item GUID unless a part of the GUID is incremental for each line by 1 or there is a maintained field otherwise as part of the Opportunity Item which is a number representation for each line.
    Can someone advise
    Thanks

    Hi,
    In the CRMD_ORDERADM_H table you have the Opportunity GUID as well as the Object ID which is the opportunity id.  In the CRMD_ORDERADM_I table, you have the GUID and also the NUMBER_INT which is the item number.  See if you can use the item number.
    Thanks.

  • Getting Column names (header) of a table dynamically

    Dear Experts,
    Greetings.
    I have a requirement in which I need to get the column name (header) of a table when the user clicks on a column.
    Kindly suggest me the possible ways.
    Thanks in advance.
    Regards
    Sathya

    Hi,
    use one of the following based on your requirement
    Bind the header text to a context attribute and access this attribute from code when clicked on the column.
    Or use parameter mapping.
    Regards
    Ayyapparaj

  • How to not display the column header in the table view?

    I do not want to display the column header in the table view, how can I achieve it?

    If you're using JavaFX 8 you can use the following in an external style sheet:
    .table-view .column-header-background {
      -fx-pref-height : 0 ;
    If you're using JavaFX 2.2, the -fx-pref-height attribute is not available in css, so I think you have to resort to a lookup:
    final Region tableHeader = (Region)table.lookup(".column-header-background");
        tableHeader.setPrefHeight(0);
    As always, I feel obliged to point out that I don't really like lookups. Sometimes they seem to be the only way, though.

  • How to hide table header for empty table

    Hi,
    I wanna to hide table header for all tables which doesn't contain any data in my Adobe form. How can I do this? Helpful answers will be rewarded .

    HI Aliaksandr,
    You can use javascript to do this dynamically.
    For example, i used Adobe Designer 7.1 to add a table to a subform.
    Now, i have the object hierchy as:
    Level 1 - form1
    Level 2 - form2
    Level 3 - Table1
               -->HeaderRow
                    --> Cell1
                    --> Cell2
               -->Row1
                    --> Cell1
                    --> Cell2
    Now, i sleect the Table1 element, and write the javascript which is executed on Initialization, as
    if(this.Row1.Cell1.rawValue == "")
    this.HeaderRow.presence = "hidden" ;
    This will check that if the first row is empty, it will hide the header from the layout.
    You can use something similar for your requirement.
    Hope this helps,
    Siddhartha Jain

Maybe you are looking for

  • Missing Line items for CO-PA "BAPi_ACC_DOCUMENT_POST"

    Hi Every one, I am facing a problem while posting the documents using the standard "BAPI_ACC_DOCUMENT_POST". Problem is, if I have a multiple line items to be posted, BAPI is posting only a part of them and throwing the other documents into error wit

  • Filename generation & Auto increment filename

    Hi, I would like my program to create a filename automatically, im using the "Filename Generator" which was available online, and also the "Unique Filename" VI. The way im using this is, I let the user select a path, and feed the path to the filename

  • HP 655 notebook AC adapter

    A friend of mine needs an AC adapter to his HP 655 notebook, but I am not able to find required capacities, neither on the computer itself nor on the HP web site. We live in Sweden with a 230 V supply. I need to know output voltage and ampereage to b

  • Left USB Not Fully Recognized

    I seem to have issues with my left USB port in that it doesn't seem to get recognized by the system properly. The right USB port works perfectly every time. The best example of this is when I plug in my USB cable from my iPhone to the left USB port,

  • Merging with Oracle BI Administration Tool

    I have specific question about merging with Oracle BI Administration Tool. At first, I copied rpd by merging with no common parent. After that, I renamed all objects in business layer and presentation layer, renamed name of database, name of connecti