Freeze Panes Functionality

I am required to develop a report that has a large number of columns. For readability the first 3 columns must remain frozen during horizontal scrolling (much like excel freeze panes).
So far I have achieved this with two regions with different column sets from the same report displayed next to each other, This way I can make the right hand report region scroll (<div> tags in the Header & Footer of this region)while leaving the left hand report static.
This leaves me with a problem where I need to link the pagination of both report regions. I am trying to change the SQL on the right hand report to only return the records displayed in the right hand region, my SQL for the right region Looks something like this but does not work:
Select * from TABLE_NAME WHERE ID IN (:P3_LEFT_REGION)
I believe it is because I am trying to reference a region as a list which I cannot do or am doing wrong.
So my question is "Is there a better way to do this and how?"

wow, it would cost your company so much less if your users can just download into Excel and do the fancy stuff there.
Next they are going to ask you for more Excel-like functionality.

Similar Messages

  • JTextArea with freeze pane functionality

    Greetings. I am trying to implement a plain text viewer that has some sort of "freeze pane" functionality (like that found in MS Excel)
    I took the approach of using 4 JTextArea and put them into a JScrollPane, its row header, column header and upper-left corner. All these text areas share the same document.
    Everything works as expected. When I scroll the lower-right pane, the row and column headers scroll correspondingly. The problem I have is that the document in the lower-right pane now shows duplicate portion of the document that is already showing in the row and column headers.
    Knowing that this should merely be a matter of shifting the Viewport on the document, I went through the documentation and java source, and just couldn't find a way to translate the view. SetViewPosition() works to a certain extent, but the scrollbars allow users to scroll back to the origin and reveal the duplicate data, which is undesirable.
    Your help with find out a way to relocate the view to the desired location is much appreciated.
    khsu

    some sample code attached (with a quick hack in attempt to making it work, at least presentation-wise)
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.plaf.*;
    import javax.swing.plaf.basic.*;
    import javax.swing.text.*;
    public class SplitViewFrame extends JFrame {
        int splitX = 100;
        int splitY = 100;
        public static void main(String[] args) {
            // Create application frame.
            SplitViewFrame frame = new SplitViewFrame();
            // Show frame
            frame.setVisible(true);
         * The constructor.
         public SplitViewFrame() {
            JMenuBar menuBar = new JMenuBar();
            JMenu menuFile = new JMenu();
            JMenuItem menuFileExit = new JMenuItem();
            menuFile.setLabel("File");
            menuFileExit.setLabel("Exit");
            // Add action listener.for the menu button
            menuFileExit.addActionListener
                new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        SplitViewFrame.this.windowClosed();
            menuFile.add(menuFileExit);
            menuBar.add(menuFile);
            setTitle("SplitView");
            setJMenuBar(menuBar);
            setSize(new Dimension(640, 480));
            // Add window listener.
            this.addWindowListener
                new WindowAdapter() {
                    public void windowClosing(WindowEvent e) {
                        SplitViewFrame.this.windowClosed();
            makeFreezePane();
        void makeFreezePane() {
            Container cp = getContentPane();
            Font font = new Font("monospaced", Font.PLAIN, 14);
            OffsetTextArea ta = new OffsetTextArea();
            ta.setSplit(splitX, splitY);
            ta.setOpaque(false);
            ta.setFont(font);
            // read doc
            readDocIntoTextArea(ta, "..\\afscheck.txt");
            JScrollPane jsp = new JScrollPane(ta);
            jsp.getViewport().setBackground(Color.white);
            Document doc = ta.getDocument();
            // dump doc
            //dumpDocument(doc);
            JViewport ulVP = makeViewport(doc, font, 0, 0, splitX, splitY);
            JViewport urVP = makeViewport(doc, font, splitX, 0, 20, splitY);
            JViewport llVP = makeViewport(doc, font, 0, splitY, splitX, 20);
            jsp.setRowHeader(llVP);
            jsp.setColumnHeader(urVP);
            jsp.setCorner(JScrollPane.UPPER_LEFT_CORNER, ulVP);
            jsp.setCorner(JScrollPane.UPPER_RIGHT_CORNER, new Corner());
            jsp.setCorner(JScrollPane.LOWER_LEFT_CORNER, new Corner());
            jsp.setCorner(JScrollPane.LOWER_RIGHT_CORNER, new Corner());
            cp.setLayout(new BorderLayout());
            cp.add(jsp, BorderLayout.CENTER);
        void readDocIntoTextArea(JTextArea ta, String filename) {
            try {
                File f = new File(filename);
                FileInputStream fis = new FileInputStream(f);
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                int br = 0;
                byte[] buf = new byte[1024000];
                while ((br = fis.read(buf, 0, buf.length)) != -1) {
                    baos.write(buf, 0, br);
                fis.close();
                ta.setText(baos.toString());
            } catch (Exception e) {
                e.printStackTrace();
                ta.setText("Failed to load text.");
        protected void windowClosed() {
            System.exit(0);
        JViewport makeViewport(Document doc, Font f, int splitX, int splitY, int width, int height) {
            JViewport vp = new JViewport();
            OffsetTextArea ta = new OffsetTextArea();
            ta.setSplit(splitX, splitY);
            ta.setDocument(doc);
            ta.setFont(f);
            ta.setBackground(Color.gray);
            vp.setView(ta);
            vp.setBackground(Color.gray);
            vp.setPreferredSize(new Dimension(width, height));
            return vp;
        static void dumpDocument(Document doc) {
            Element[] elms = doc.getRootElements();
            for (int i = 0; i < elms.length; i++) {
                dumpElement(elms, 0);
    static void dumpElement(Element elm, int level) {
    for (int i = 0; i < level; i++) System.out.print(" ");
    System.out.print(elm.getName());
    if ( elm.isLeaf() && elm.getName().equals("content")) {
    try {
    int s = elm.getStartOffset();
    int e = elm.getEndOffset();
    System.out.println(elm.getDocument().getText(
    s, e-s));
    } catch (Exception e) {
    System.out.println(e.getLocalizedMessage());
    return;
    System.out.println();
    for (int i = 0; i < elm.getElementCount(); i++) {
    dumpElement(elm.getElement(i), level+1);
    class OffsetTextArea extends JTextArea {
    int splitX = 0;
    int splitY = 0;
    public void setSplit(int x, int y) {
    splitX = x;
    splitY = y;
    public void paint(Graphics g) {
    g.translate(-splitX, -splitY);
    super.paint(g);
    g.translate( splitX, splitY);
    /* Corner.java is used by ScrollDemo.java. */
    class Corner extends JComponent {
    protected void paintComponent(Graphics g) {
    // Fill me with dirty brown/orange.
    g.setColor(new Color(230, 163, 4));
    g.fillRect(0, 0, getWidth(), getHeight());

  • Freeze Panes functionality for Web

    Hello,
    In Microsoft XL, we have freeze Panes functionality with which, columns and rows can be freezed. This is important in the situation where we have too many columns and when want to view last column, rows disappear and difficult to know which rows it is referring to.
    Now coming to question, I have BW reports which I am displaying on web browser. Can we freeze the panes on Web browser? Is there some standard functionality to do the same? Do we have some standard script for the same.
    Please do suggest.
    Regards
    Pank

    In BW 3.5 it is standard functionality using the properties of the TABLE Web Item namely...
    <b>Number of data columns displayed at one time (BLOCK_SIZE_COLUMNS)
    Columns scrolled per step (BLOCK_STEP_SIZE_COLUMNS)</b>
    Additionally the same is possible for setting the table size in rows...
    <b>Number of data rows displayed at one time (BLOCK_SIZE)
    Rows scrolled per step (BLOCK_STEP_SIZE)</b>
    for releases lower that BW 3.5
    lookup the how to document
    <b>How to… Change Page Scrolling in a Web Table Item</b>
    Hope that helps!
    Rishi

  • Freeze panes in OBIEE

    Hi Experts,
    I have a very big report (pivot table) and the column names for that report goes off the screen while scrolling down to see the bellow reports. Now the business requirement is can we freeze the column names similar to Excel?? Is there any work arrond and please suggest me some idea to try.
    Thanks,
    DK

    user,
    Refer :FREEZE PANE functionality in OBIEE  is it possible ???
    or http://blog.somerlott.net/2009/12/15/obiee-freeze-pane-headers/
    thanks,
    Saichand.v

  • Excel freeze panes on WEB APPLICATIONS

    Hi Experts,
    Does anybody know how to implement something like the "excel freeze panes functionality" (freeze columns headers on top of the pages) for web applications?
    We are using BW 7.0 (SAP Netweaver 2004s BI).
    Thanks in advance.
    Best regards,
    Raphael

    Hi Raphael,
       Did you check the Analysis Item Properties, you should be able to define how many Data Columns to be displayed, I dont have my system now but i think you can set a Web Property for this, or you can simply write javascript function for this
    thanks,
    Deepak
    SAP BI Consultant
    DNTech

  • Excel's Freeze Pane Property  in RTF template for XML Publisher Report

    Hi all,
    I have created RTF template and it's output type is Excel.
    I want to apply Freeze Pane Property of Excel in rtf template so that it can be applied to Excel Output.
    Please let me know any information regarding this.
    ta,
    P

    I am looking for the same functionality. Did you ever got answer for this?

  • Office Web Apps Server June 2013 Cumulative Update Excel Freeze Pane and Hide/Un-hide Feature Missing

    Hi,
    I have recently updated the Office Web Apps Server to the June 2013 Cumulative Update (KB2817350) which was published with the new features that allow rendering of freeze pane, hide/un-hide the excel worksheet and row/columns, Header
    Row Snapping, Sorting, Data Validation and Autocomplete. i have followed the TechNet article (http://technet.microsoft.com/en-us/library/jj966220.aspx)
    to update the office web apps server. Current setup is a SharePoint 2013, SQL 2012 and Office Web Apps server. All server are installed on Windows server 2012.
    3vild3vil

    Hi,
    Sorry to inform you that these new features are specific to cloud Excel Web App in both SkyDrive and Office365. There is no update available for on-premise Excel Web Apps installed locally
    yet. Thank you for your understanding.
    http://blogs.office.com/b/microsoft-excel/archive/2013/06/26/we-ve-updated-excel-web-app-what-s-new-as-of-june-2013.aspx
    Miles LI TechNet Community Support

  • Freeze Pane Property of Excel in RTF template for XML Publisher Report

    Hi all,
    I have created RTF template and it's output type is Excel.
    I want to apply Freeze Pane Property of Excel in rtf template so that it can be applied to Excel Output.
    Please let me know any information regarding this ASAP.
    Thanks,
    P.A.

    This is the Oracle Reports forum. Better post this in the BI Publisher forum.

  • Table Header in freezed pane when exporting SSRS report to Excel

    Hi,
    I want table Header in freezed pane when exporting SSRS report to Excel.
    Can I have the table header of tablix be present in freezed pane of excel.
    Thanks,
    Vivek Singh

    Hi Vivek,
    Please refer the following thread.
    may be u get the answer.
    How to freeze header pane in SSRS
    Regards
    msbilearning

  • Freeze panes in OBIEE 11g

    Hi All,
    Glad to post regarding Freezing panes in OBIEE 11g.
    Since this has got most hits in the search.
    I searched a quite few websites like replies from BI Joe and few others. But couldnt resolve this.
    Would be great help for all those who are looking for workaround regarding the same.
    Also - another feature likely in 11.1.1.6 - freeze panes for rows and columns :-). But need it in 11.1.5
    Regards
    MuRam
    http://obiee10grevisited.blogspot.in/
    Edited by: MuRam on Feb 29, 2012 10:23 AM

    check with oracle support. they might released patches for 11.1.5

  • Drag and drop not working.  When trying to move a cell or icon the shadow of the cell or icon being moved appears under the cursor but can't be released causing a freeze of function within the program.  Happens in finder numbers and firefox

    Drag and drop not working.  When trying to move a cell or icon the shadow of the cell or icon being moved appears under the cursor but can't be released causing a freeze of function within the program.  Happens in finder numbers, firefox, and when trying to move any file from the downloads folder.
    This is a serious pain.
    Please help.
    WB

    Yes, all I can tell you is that Finder does not have that function in ML. Your system is "working as expected".
    You can file feedback here.

  • Freeze panes apex 4.1

    Hi all,
    Is there a simple/free way to freeze panes in reports, Apex 4.1?
    thanks all,

    Hi,
    Seems that my sample still work on Apex 4.1
    http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:303800346302715
    Regards,
    Jari

  • Can pp col headings act like freeze pane in excel

    Hi.  We run 2012 enterprise.  Can co headings on my pivot table scroll as freeze pane does in regular excel?  How?

    Hi, your Situation is as follow?:
    You have a powerpivot model, and a pivot-table based on this PP data, created with Excel 2013
    Now you want the Pivot-table columns to freeze if you scroll down the Excel sheet?
    IMHO you can't do this because Excel has no Feature to freeze Pivot-table column, but can freeze columns of Excel table objects
    You can get PP data into a Excel table object by creating a DAX Query, see:
    http://www.sqlbi.com/articles/linkback-tables-in-powerpivot-for-excel-2013

  • Freeze panes, like in Excel?

    Can we have the freeze panes effect in Flex? I like my top
    component staying at the same position in the page while I can
    scroll the bottom part up and down. Thanks

    Sure.
    A Flex app consists of navigators, containers and display
    components. Use two containers, and only enable scrolling in the
    one you want.
    I suggest you set vertical and horizontalScrollPolicy="off"
    for all your containers, including Application. Turn them on where
    you specifically want them. The default behavior,
    scrollPolicy="auto" often works, but also becomes very confusing
    when you have deeply nested containers, and scrollbars start
    popping up all over the place.
    Tracy

  • Freeze panes (like in xl)in basic list

    Hai,
    i need freeze panes(like in xl) option in basic list .
    thank u
    ram

    Hi,
    This option is not available in SAP. Please transport is to excel at there you can prepare your file.
    Reward points if useful,
    Miro

Maybe you are looking for

  • Backgroung job failing becuase RFC function module is running in Dialog

    Hi, I have a program which is calling a RFC function module. I am running this program in background as a job. Now this function module which is in other system is running in Dialog and giving a time out error and the job is failing becuase of that.

  • Why does DVD Pro degrade the quality of my QT movies

    SUMMARY I have only been using Final Cut Studio for a couple of months, but have achieved good quality QT files for burning in DVD Studio Pro. Up to the stage of Compressor, the quality looks good. But import the files into DVD Pro and the image beco

  • Golive CS2 Dutch 8.00 Freezes with new document

    From Last februari our Golive version ( in cs2 webpremium suite, freezes on creating a new document) after working beautiful for years.... Re-installing the suite, does not help, nor upgrading that, with the patch 8.0.1. It does want to upgrade Openi

  • Facetime Sign in not working...

    Ok, i got my iPod in september, and set up facetime pretty quickly on both my mac and iPod, now after leaving my iPod off for a week or two, the ipod facetime app says Facetime Settings You have turned facetime off in Settings. Would you like to turn

  • Bridge to bridge and bridge to access-point is it possible

    here;s my topology i am trying to configure. i have a router whose ethernet is connected to a bridge.this bridge 1 is connected to a bridge 2 via wireless. now i am trying to connect a access-point via wireless to this bridge2. is it possible for bri