Does anyone know how to freeze the column headings?

I have been instructed to freeze the column of a report header, so of as you can freeze cells in Excel.

End users want to scroll through the data in the report and again, see.

They would also like to see the identifier field of line, in my case the name of the employee, when they scroll to the right.

Someone knows how to do this? If so, I'd like a few examples.

Hello

Here are the settings that I have for my report model on my example page:

Before the lines:

<table cellpadding="0" border="0" cellspacing="0" summary=""  class="t18Standard">
<tr><td>
<div style="border:1px solid silver; padding:0px; margin:0px; background-color:#EFEFEF;">
<table id="reportheadings" class="t18Standard">

Before the column headers:

(this is blank)

Model column title:

<th class="t18ReportHeader" #ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>

After the column header:

</tr></table></div>
<div id="reportdiv" style="overflow-y:scroll; border:1px solid silver; padding:0px; margin:0px;">
<table id="reportbody" class="t18Standard">

Before every line:

<tr #HIGHLIGHT_ROW#>

Column model 1:

<td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data">#COLUMN_VALUE#</td>

(None of the conditions not set for this model because it is used by all lines)

After each line:

</tr>

After the lines:

</table>
</div>
<div class="t18CVS">#EXTERNAL_LINK##CSV_LINK#</div><script type="text/javascript">
function setwidths(w)
{
 var t1 = document.getElementById("reportheadings");
 var t2 = document.getElementById("reportbody");
 var t1rows = t1.rows;
 var t2rows = t2.rows;
 var t1cells;
 var t2cells;
 var k;
 var r;
 for (r = 0; r < t1rows.length; r++)
 {
  t1cells = t1rows[r].cells;
  for (k = 0; k < t1cells.length; k++)
  {
   if (w[k] == 0)
   {
    t1cells[k].style.display = 'none';
   }
   else
   {
    t1cells[k].style.width = w[k];
   }
  }
 }
 for (r = 0; r < t2rows.length; r++)
 {
  t2cells = t2rows[r].cells;
  for (k = 0; k < t2cells.length; k++)
  {
   if (w[k] == 0)
   {
    t2cells[k].style.display = 'none';
   }
   else
   {
    t2cells[k].style.width = w[k];
   }
  }
 }
}
function setdivheight(h)
{
 var d = document.getElementById("reportdiv");
 d.style.height = h;
}
</script>
</td></tr><tr><td>#PAGINATION#</td></tr></table>

On the area of my page, in the footer of the region:

<script type="text/javascript">
setwidths(new Array(75, 200, 75, 0, 200));
setdivheight(250);
</script>

Set the entry setwidths (...) to specify the width of the columns in your table - in this case, there are 5 columns and column 4 is hidden (width = 0). Adjust the value setdivheight() to the desired height for the div that wraps the data table part.

Andy

Tags: Database

Similar Questions

Maybe you are looking for

  • By pressing the control button automatically zooms; How can I disable zoom?

    I can copy more text using Ctrl + C, is because as soon as I press the control key, FireFox is used in zoom mode [No, my touch more isn't stuck!] and increases the page at the maximum size. Since I have no use for the zoom feature, how can I disable

  • identification of the apps as Favorites

    Is there a way to mark an application as a favorite? For example, if there are four similar applications in a folder on a screen of the iPad (for example pdf reader/mark-up apps), is there a way to flag/tag, one of them as the favorite?

  • missing sleep for windows xp professional option

    I have windows xp professional, my anti-virus found and deleted a few problems, now I have my backup option is grayed and I can't it to sleep even when I close the lid of the laptop, ideas?

  • Adobe After Effects - Wer hat are und kann give cash?

    Mich wurde das neue AE ja just 23,79 im Abo kostet das interessieren.(1) Wenn ich nur AE hole über dieses Abo, der ist als Adobe Media Encoder tool dann mit dabei? Falls nicht, wie produziere ich meine Kreation exported?(2) Welchen advantage hat der

  • help to install and export portal 10g and 11g

    Hi all.Machine 1 to enterprise linux 4.7, forms, oracle, portal, and collaboration suite 10 g 2 Machine 2 enterprise linux 5.5 database11.2, weblogic 10.3, formulas reports 11.1.1.4 first of all, I need to install the GR 11, 2 portal on machine 2expo