How to implement fixed column headers

Hi Gurus,
I got a requirement to show a fixed column header in a sql reports. That means no matter how many rows the report returns, when scrolling down, the column headers are fixed and appear on the top.
Anybody has any comments on this? If I'm not making sense, let me know and I can explain further.
Thanks in advance.

Hello Carl,
Thanks for responding!
I just realized that I did not include my name in my prior post, its Kyle, sorry about that. I also do not necessarily have an example code to show you, let me explain:
I am very much a newbie to the HTML environment. Amazingly, I was able to apply a code that would facilitate a scroll bar in my report. This code was applied to the template called Reports Region in the section entitled Definition, it basically looks like this:
<style>
.RegionScroll
width:950px;
height:225px;
overflow:auto;
border:solid 0px;
</style>
My next feat was to figure out how to fix the column headings, here is were….. well basically I guessed. First; I looked at the website describing how to implement this in three steps, to be functional in both IE and Fire Fox. I was not sure exactly were to apply the script provided, so I made a logical guess and dropped it in to the same area as my previous code. When I went to view the page the code line:
onload="MakeStaticHeader('TableId','150px')"
showed up at the top of the page (no Java script error presented itself). I concluded that I either have the wrong programming syntax, its in the wrong template and or template section. To complicate matters I have no idea of how to identify the correct TableId. I did look to view the HTML source code of the page, but found several candidates with the prefix "ID=".
Quite honestly, without a good formal understanding of HTML or CSS programming techniques, I may be biting more off than I can chew. If this is the case then would you be kind enough to point me in some direction that might help me get over this hurdle.
Thanks again for the response.
Kyle

Similar Messages

  • Fixing column headers in JSF

    How do I fix column headers when displaying tablular data using JSF? Currently, when I scroll down the column header disappear.

    The articles under the Table Component section will help you
    http://developers.sun.com/prodtech/javatools/jscreator/reference/index.jsp
    also see winston's blogs for all tweaks with tables
    http://blogs.sun.com/winston/
    Thanks
    K

  • How to fix column headers in Portal

    Hi Guru's,
    do you know is there a way to fix the report headlines like in Excel.
    E.g. I have a report with about 2000 rows and when the user scrolls down the headlines are out of the screen and he doesn't know what is in which column.
    So, we know about the possibility to restrict the rows per page to 20 rows or whatever, but then the jumping from side to side takes too much time.
    So, is there a possibility to "fix the cells" like in Excel, so the User scrolls down and always sees the column headers?
    Thanks in advance!
    Sandra

    In 7.0 Analyzer, open the workbook and go into Designer Mode.  Double-click on the analysis grid to bring up the properties screen.  Under the range field, replace the 2nd row number to the row where you want to limit the table.  Then go to the tab called Clipping, select "Scroll and Keep Lead" under Vertical.
    Dunno about 3.5.
    Edited by: Andrew Zhou on Jul 17, 2008 9:25 AM
    Oops you wanted to do this on web, not the other way around.  In WAD 7.0, open the web template (if you're using standard template, it's 0ANALYSIS_PATTERN).  Select the analysis grid and go into it's properties, change the "Number of Data Rows Displayed at Once" to your liking.

  • How to have sticky column headers in a large list?

    I have a list in sharepoint 2013.  It was created from a Microsoft Access database and so it displays like a spreasheat type list.  It is quite large and it would be nice to make the column headers "sticky" so that when you scroll down
    the page/list you can tell what the data type (header) is for the data you are looking at.
    Kind of like in excel when you do a "split" is what I am looking for .....
    Any help greatly appreciated.
    Ray

    Hi Ray,
    Please see this thread which is the same you are looking for.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/95018474-2a4e-4bb5-9786-f3895ff17eee/how-to-fix-custom-list-header-when-i-scroll-down-the-list?forum=sharepointcustomization
    Please let us know in case you face any issue while implementing this.
    Regards
    Krishana
    Krishana Kumar http://www.mosstechnet-kk.com

  • How to group the column headers using WDA ALV ?

    Hello All.
    How can I group the column headers as shown in the picture(chart), using  WDA  ALV.
    Thanks for any help !
    A
    B
    A1
    A2
    A3
    A4
    B1
    B2
    B3
    B4
    B11
    B12
    B13
    B21
    B22
    B23
    B31
    B32
    B33
    B41
    B42
    B43
    消息编辑者为:Cloud Li

    Hi ,
    This functionality was not exposed/supported in WDP ALV,however the same can be achieved in normal table(table UI element)
    The reason this isn't exposed directly in the ALV is because it is used internally when you do a grouped sort.  The ALV automatically buids group headers to explain the grouped sort/sum.
    Depending upon your requirements if you must have the group header and aren't using much else in the ALV, you might be better off using the plain old table. Below is a link to how to do group headers in the table UI element.
    Table
    Hope this helps you.
    Thanks
    KH

  • How can I set column headers in JTable?

    I only want to set 3 column headers in JTable (without TabelModel). Can you help me?

    Hello dn77,
    Here's is a little sample I just rigged up, hope it helps.
    import java.awt.*;
    import javax.swing.*;
    public class TestOne{
         public static void main(String arg[]) {
              Object rows[][] = {
                   {"One", "1", "I"},
                   {"Two", "2", "II"},
                   {"Three", "3", "III"},
                   {"Four", "4", "IV"},
                   {"Five", "5", "V"},
                   {"Six", "6", "VI"},
                   {"Seven", "7", "VII"},
                   {"Eight", "8", "VIII"},
                   {"Nine", "9", "IX"},
                   {"Ten", "10", "X"},
                   {"Eleven", "11", "XI"},
                   {"Twelve", "12", "XII"},
                   {"Thirteen", "13", "XIII"},
                   {"Fourteen", "14", "XIV"},
                   {"Fifteen", "15", "XV"},
                   {"Sixteen", "16", "XVI"},
                   {"Seventeen", "17", "XVII"},
                   {"Eighteen", "18", "XVIII"},
                   {"Nineteen", "19", "XIX"},
                   {"Twenty", "20", "XX"}
              String headers[] = {"Notation", "Decimal", "Roman"};
              JFrame frame = new JFrame("3 Column header");
              JTable table = new JTable(rows, headers);
              JScrollPane scrollPane = new JScrollPane(table);
              frame.getContentPane().add(scrollPane, BorderLayout.CENTER);
              frame.setSize(300,150);
              frame.setVisible(true);
    }-Merwyn,
    Developer Technical Support,
    http://www.sun.com/developers/support.

  • How do I input column headers in an Excel report with variable width columns?

    Hi:
    I have read this question before but I can´t open the link, when I try to download the solution I get the following : HTTP Status 404 The requested resource is not available.
    Can anyone help me with the solution ? I just want to put a header for each column (thermocouple 1, thermocouple 2, anemometer , etc).
    In advance, thanks for all your help !
    Solved!
    Go to Solution.

    Perhaps you need to take some tutorials.
    LabVIEW Introduction Course - Three Hours
    LabVIEW Introduction Course - Six Hours
    Attachments:
    Example_VI_BD.png ‏11 KB

  • Fixed jtable column headers

    Does anyone have an example of fixing column headers for a JTable. Basically I want the column headers to be displayed when scrolling down the table.

    check the examples provided in "How to use table" -
    "http://java.sun.com/docs/books/tutorial/uiswing/components/table.html"
    The tables have fixed column header when u scroll down..

  • How Do I cahnge lables(column headers) dynamically?

    Hi,
    Dynamically, how do I change column headers based on some other value is the report?
    Thanks

    If the value you want as the column header is in the XML use the element.
    If you want different column headers based on a particular element in the XML then use conditional logic (if or when) wrapped around the column headers to do the selection at run time. See the user guide for examples of conditional processing in the template.
    cheers,
    Dave

  • Remove Column Headers from a JTable in a JScrollPane

    Hi,
    I'm just wondering how to remove the column headers from a JTable in a JScrollPane.

    Here are two ways to do it, with different visual outcomes...
    import javax.swing.*;
    public class Test {
        public static void main(String[] args) {
            Object[][] rowData = {{"A", "B"}, {"C", "D"}};
            Object[] columnNames = {"col 1", "col 2"};
            JTable table1 = new JTable(rowData, columnNames);
            table1.getTableHeader().setVisible(false);
            JScrollPane sp1 = new JScrollPane(table1);
            JTable table2 = new JTable(rowData, columnNames);
            final JScrollPane sp2 = new JScrollPane(table2);
            JPanel contentPane = new JPanel();
            contentPane.add(sp1);
            contentPane.add(sp2);
            final JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setContentPane(contentPane);
            f.pack();
            SwingUtilities.invokeLater(new Runnable(){
                public void run() {
                    sp2.setColumnHeader(null);
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    }

  • Cross tab column headers display on all pages

    I made a Crystal Report with a cross tab which displays all details. In the cross tab I have 6 columns with details about the data displayed in the last 2 columns. The headers of these columns are only displayed on the first page but not on other pages. How can I add column headers to all pages? Thank you.

    Column headings should be repeated automatically, row headings can be repeated by
    1.right-clicking on the row header
    2. select Row options
    3. .select Repeat Labels on Page break
    or, when I just reviewed it in the help section it says:
    "When you create a Cross-Tab that is wider or longer than the specified page size, the program automatically spans the printing across enough pages to accommodate the size of the Cross-Tab. In the Preview tab, a line will appear at each page break. For ease in reading, column headings will be repeated on subsequent pages. Row headings can also be repeated using the Keep Columns Together option.
    To repeat row labels
    Right-click the blank top-left area of the Cross-Tab and select Cross-Tab Expert from the shortcut menu.
    The Cross-Tab Expert appears.
    Click the Customize Style tab.
    Select the Repeat Row Labels check box, if desired.
    Crystal Reports lets you designate report objects that don't expand horizontally, such as text objects, field objects, OLE objects, charts, maps, lines, boxes, and so on, to be repeated on each additional horizontal page that a Cross-Tab creates. For more information, see Repeating report objects on horizontal pages."

  • Modifying based columns headers in JSP frames

    Using JDeveloper 3.1, I' have generated a JSP project based on a data module. However, I haven' t found how to change the column headers, in the generated frames. Is it possible to do this?

    Thanks to myself, I' ve found a way:
    1/ if you use the DataWebBean "RowSetBrowser"
    you can use the method "setAttributeTitle(attributeName, theTitle_you_want);"
    2/ if you use "ViewCurrentRecord"(=VCR here) you can
    -a) create a new webbean,
    -b)copy the source from the VCR in your new bean
    -c) add the setAttributeTitle method from the
    "RowSetBrowser" bean with the class and attribute(variables) required (the compiler will tell you this !!!)
    -d) invoke the "setattributetitle" method in the "Render" method of your new bean by adding the following code:
    if ( colTitles.get(sHeader) != null )
    sHeader =(String)colTitles.get(sHeader);
    after these lines:
    for(int attrNo = 0; attrNo < attrs.length ; attrNo++)
    if(!shouldDisplayAttribute(attrs[attrNo]))
    continue;
    sHeader = attrs[attrNo].getName();
    Then, when you use the JSP element Wizard
    add the "xxx.setAttributeTitle(defaultTitle, yourTitle)
    where xxx is your bean Id
    That's it
    null

  • Fixed column headings in classical report

    Hi,
    In classical report , how to make fixed column headings .
    I mean while scrolling down the header should not get scrolled .
    Regards
    Nancy

    Hi Nancy,
    Try creating your header under TOP-OF-PAGE, as bellow so whenever a new page is called this top-of-page will be executed satisfying your requirement.
    TOP-OF-PAGE.
      PERFORM print-report_title.
      PERFORM print-column_heading.
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • How to implement column header sort

    Hi all,
    Does anyone know how to configure Oracle 9i AS Portal Release 2 column header sort.
    In Portal, Oracle has setup the IDE to sort your columns using arrow keys in the
    column headers. I would like to do the same thing without using the Custom Form.
    TIA,
    Daniel N

    I would suggest using the built in Collections framework for sorting.
    have class A implement the Comparable interface then implement the compareTo method as follows:
    public int compareTo(Object o) {
        A a = (A)o;  // <-- may cause ClassCastException if (o instanceof A) != true, but that should not be a problem.
        int value = attr1.compareTo(a.attr1);
        if (value != 0) return value;
        value = attr2.compareTo(a.attr2);
        if (value != 0) return value;
        value = a.attr3.compareTo(attr3);  //Notice I switched a.attr3 and attr3 for desc
        return value;
    }That should do it for you.
    Now put everything into an instance of java.util.List and pass that to java.util.Collections.sort(java.util.List);
    If you didn't create class A, and therefore can't add a method to it, then implement a Comparator. The idea is the same, just look at the java.util.Comparator API and use java.util.Collection.sort(java.util.List, java.util.Comparator) method to sort;

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • All my imovie events are missing after latest maverick and imovie 10 update

    Hi, I updated to Mavericks, and updated iMovie. I opened up iMovie and it says that all the original files are missing. It suggests to try and re-import the files, but I cannot find them anywhere on my computer. I am missing hours of footage, and I h

  • Bandwith Problem with Flashes over Terminal Server

    I get huge problems with viewing flash on Citrix Terminal Server. Everytime a user opens up a website with Flashes in it, it consumes the rest off the bandwith. This slows down all other user on the site. This happens over RDP and ICA Connection. Mic

  • Reinstall CS6 Design standard onto a new laptop?

    I purchased and installed CS6 Design Standard onto a laptop that previously bit the dust. I am unable to locate my serial number, but I do have the installation CD's and product codes. Is there anyway I can install the Adobe CS6 Design Standard onto

  • Actionscript 3 and navigateToUrl Method

    Hi All, I have a flash file with some buttons to open web addresses , I have made xml file to store my URL and then read them and parse them and assign the buttons functions to open url: btnRadio.addEventListener(MouseEvent.CLICK, function() { naviga

  • Sharing of video between multiple applications,

    Is there software that allows the sharing of the iSight cam between multiple applications at the same time.