Get scroll position

hey,
i'm using jdeveloper11g and I use a RichTable to display data of a ViewObject. The data associated with the view object changes and i need to update RichTable accordingly. However, as I update using Poll the scroll position of the table is changed to top most position. What i need is to preserve the scroll position even after the refresh...any hints would be a gr8 help
thanx

That's not as easy as it sounds :-(
As far as I know there is no method to get the scroll bar position itself.
The problem is to get hold of the position the iterator is in when the poll event occurs.
You execute the underlying query again to show new data. Depending on the query (i.e. sort) the result might be different after the refresh. The user might be confused about the new result, but I guess you thought out this.
You can play with this EL #{bindings.YourView.iteratorBinding.rangeStart}and save the value before you re execute the query and after execution set the position back.
Timo
P.S.:
I did not test this with scrollable views (which are the preferred views to use with faces). so you might allays get 0 as result. In this case you can try to save the current record (if you have one selected) and go back to this record after refresh.
Edited by: Timo Hahn on 29.09.2009 14:14

Similar Messages

  • Getting scroll position

    I can read and write the zoom level of a document (doc.zoom).  I can scroll to a specific point in the document (doc.scroll).  Bu I can't read the current scroll position.  Is there a way around this.
    The scenario:
         I have 24 pdf documents each with a single page containing a picture.
         Each picture was taken with a fixed camera - one picture for each hour of the day.  So the pictures are of the same thing - just separated taken at different times.
         On the 1:00 am picture I see something I want to examine more closely so I zoom and scroll to a particular portion of the picture.
         Now I want to see the same area on the 2:00 am picture.  I can read open the 2:00 am picture and zoom to the same zoom level (by reading the zoom property of the 1:00 am document).
         But how do I get the the 2:00 am document to scroll to the same position as the 1:00 am document if I can't read the scroll position of the 1:00 am document?
    My actual issue is more complex than this scenario but this illustrates the question.

    In any case viewState only works with embedded PDF - which is not the scenario I have.
    In some respects I want something like synchronized scroll but I am dealing with multiple documents.  I open one document and zoom/pan to a particular spot.  Then I want to open another document with the same zoom and pan.  I will select the other document from a list which could have many dozens of documents.  It is impractical to open all the documents at the same time.
    One possibility I have not considered yet would be use Bookmarks.  Bookmarks store the zoom level but I don't know if they store the pan.
    What I want is something like the center point of the current view.  This value could be passed to doc.scroll.  Is there a parameter that gives the coordinates of the document view (not the screen coordinates - but the document coordinates?  I could calculate the point necessary for doc.scroll from thse coordinates.

  • Adobe edge - get scroll position value

    Currently I can get the mouse position and control the timeline with the x value.

    this is very easy too !!
    you just need to have little knowledge about jQuery and change your view ! the way you are looking into codes is not right and thats why you cant make easy things like this
    here is code for 3 things
    if ( c == 2 ){
    sym.play("on1");
    c = 3;
    }else if ( c == 1 ){
    sym.play(1);
    c = 2;
    else{
    sym.play("on2"); // for third one
    c = 1;
    if you had any question feel free to ask
    reguards
    Zaxist

  • How to get/set scrolling position in Frame?

    Hello!
    Help me please!
    I need to remember scrolling position of frame before it's reloading. And restore this position after reloading. How can I do it?
    I Use JDk 1.4.1
    Thanks beforehand!
    Denis.

    Have you tried the following:
    yourScrollPane.getVerticalScrollBar().getValue()
    yourScrollPane.getVerticalScrollBar().setValue(int)Sai Pullabhotla

  • How to play a symbol ONCE at a specific scroll position?

    Hello there,
    I was wondering if it's possible to trigger a symbol to play when a user scrolls past a specific scroll point just once?
    I've managed to create a trigger for a symbol which will fire at a specific scroll position but it fires multiple times (when the user continues to scroll)
    I tried using:
    '==' eqivalent to, so that it would only trigger at a certain scroll point, but this only triggers the symbol to play if the user uses their mouse scroll wheel and doesn't play if the user uses the window scrollbar.
    Here's my code (apologies if it's messy I only started learning JQuery a week ago):
    $(window).scroll(function() {
         var mySymbolObject = sym.getSymbol("rollHead");
          var y_scroll_pos = window.pageYOffset;
         var scroll_pos_test = 500;           
        if(y_scroll_pos > scroll_pos_test) {
              sym.$("rollHead").show();
              mySymbolObject.play(1000);
          if(y_scroll_pos < scroll_pos_test) {
       sym.$("rollHead").hide();
              mySymbolObject.stop();
    I know that the '.one' handler (if that's the correct term) can cause an event to trigger just once, but I can't seem to get it to work.
    Any help or advice would be much appreciated.
    Thank you very much.
    Jon
    P.S. I just want to say a MASSIVE thank you to Adobe for making Edge. It is an incredible tool and the fact that it is free makes it a million times better.

    Hello Mr Blix,
    I pretty much just copied and pasted what Elaine wrote.
    So, I went to my stage actions - clicked 'composition ready'
    And put in this:
    sym.setVariable("symbolPlayed", false);
    var mySymbolObject = sym.getSymbol("rollHead");
    $(window).scroll(function() {
        var y_scroll_pos = window.pageYOffset;
        var scroll_pos_test = 500;           
           if(y_scroll_pos > scroll_pos_test) {
    var symbolPlayed = sym.getVariable("symbolPlayed");
    if (!symbolPlayed) {
        sym.$("rollHead").show();
        mySymbolObject.play(1000);
        sym.setVariable("symbolPlayed", true);
    All you'd need to change for you own composition (if that's the right word) is to replace:
    var mySymbolObject = sym.getSymbol("rollHead"); - with your own symbol name.
    var scroll_pos_test = 500;  - with the position you want the event to trigger.
    sym.$("rollHead").show(); - with your own symbol name again.
    mySymbolObject.play(1000) - with the time on your symbol's timeline that you want it to play.
    I'm still learning JQuery and don't really understand how the 'SymbolPlayed' works, but I assure you it does.
    Here's a screengrab of my 'stage actions' code.
    Hope that helps!
    Jon

  • Chart Error - scroller positions should be positive and integer

    <p>
    Hello Expert
    I have created a flash chart with two filters on the chart region.
    i) &lsquo;Select list with submit' ----- (:P23_TRC)
    ii) &lsquo;Radio button with submit' -----(:P23_IMPACTC)
    The chart should display as per the filters selection.
    However, I get the error message "<strong>scroller positions should be positive and integer</strong>", once, whenever I load this chart page for the 1st time in a new IE window.
    After I change the filter's value it will work perfectly fine.
    In filters default value is one value from respective filter list of value
    </p>
    <p>
    If I remove the filter conditions from chart query, it works perfectly without error.
    <u>Here are my chart series queries</u>
    select null link, V.LOB label, COUNT(TR) "Customer Care"
    from V_PROCESSTRACKING V
    Where V.ProcessArea like '%Customer Care%' and (V.TR = :P23_TRC) AND ((V.IMPACT = :P23_IMPACTC)OR (:P23_IMPACTC = 'ALL'))
    group by V.LOB
    order by V.LOB
    select null link, V.LOB label, COUNT(TR) "Sales"
    from V_PROCESSTRACKING V
    Where V.ProcessArea like '%Sales%' and (V.TR = :P23_TRC) AND ((V.IMPACT = :P23_IMPACTC)OR (:P23_IMPACTC = 'ALL'))
    group by V.LOB
    order by V.LOB
    <u>Customer XML</u>
    &lt;?xml version = "1.0" encoding="utf-8" standalone = "yes"?&gt;
    &lt;root&gt;
    &lt;type&gt;
    &lt;chart type="Stacked Horizontal 3DColumn"&gt;
    &lt;animation enabled="yes" appearance="size" speed="10" /&gt;
    &lt;hints auto_size="yes"&gt;
    &lt;text&gt;&lt;![CDATA[{NAME}, {VALUE}]]&gt;&lt;/text&gt;
    &lt;font type="Verdana" size="10" color="0x000000" /&gt;
    &lt;/hints&gt;
    &lt;names show="no"/&gt;
    &lt;values show="no" prefix="" postfix="" decimal_separator="." thousand_separator="," decimal_places="0" /&gt;
    &lt;arguments show="no" /&gt;
    &lt;column_chart column_space="3" block_space="12"&gt;
    &lt;border enabled="no" /&gt;
    &lt;block_names enabled="yes" placement="chart" position="left" &gt;
    &lt;font type="Verdana" size="10" color="0x000000" /&gt;
    &lt;/block_names&gt;
    &lt;/column_chart&gt;
    &lt;/chart&gt;
    &lt;workspace&gt;
    &lt;background enabled="yes" type="solid" color="0xffffff" alpha="0" /&gt;
    &lt;base_area enabled="no" /&gt;
    &lt;chart_area enabled="yes" x="215" y="50" width="705" height="500" deep="0"&gt;
    &lt;background enabled="no"/&gt;
    &lt;border enabled="yes" size="1"/&gt;
    &lt;/chart_area&gt;
    &lt;x_axis name="Line of Business" smart="yes" direction="horizontal" rotation="-90" position="left_center" &gt;
    &lt;font type="verdana_embed_tf" size="14" color="0x000099" bold="yes" align="center" /&gt;
    &lt;/x_axis&gt;
    &lt;y_axis name="No. of Process" smart="yes" position="center_bottom" &gt;
    &lt;font type="Verdana" size="14" color="0x000099" bold="yes" align="center" /&gt;
    &lt;/y_axis&gt;
    &lt;grid&gt;
    &lt;values /&gt;
    &lt;/grid&gt;
    &lt;/workspace&gt;
    &lt;legend enabled="yes" x="935" y="50"&gt;
    &lt;names enabled="yes"&gt;
    &lt;font type="Verdana" size="9" color="0x000000" bold="yes"/&gt;
    &lt;/names&gt;
    &lt;values enabled="no"/&gt;
    &lt;scroller enabled="no"/&gt;
    &lt;header enabled="no"/&gt;
    &lt;background alpha="0"/&gt;
    &lt;/legend&gt;
    &lt;/type&gt;
    #DATA#
    &lt;/root&gt;
    <strong>Help please!!!!! It's urgent</strong>
    Sagar
    </p>

    Hi Rima,
    I found the solution,
    My graph is dependent on the page items. What I found was when I load the page, item default value was displayed but it was not stored in the memory. Item value only gets stored in memory when the page is submitted.
    Line: -----
    Soultion : - Create a page level before header process and define the default value over here as well. This will resolve your error.
    Hopefully you understood what I am trying to explain. If not let me know and I will trying to put in picture and email you.
    Sagar

  • How to avoid blinking / moving of rows in a data grid when you restore the scroll positions

    By Default when an update is made on a data grid, it scrolls to top row. To avoid this when we save the vertical and horizontal scroll
    positions and restore the scroll positions after the update, it causes a blink in the grid (or moving / jumping) of rows. Is there a way to
    avoid this jumping of rows?
    In JavaScript this can be achieved by overriding the scrollToTop / OnLoad methods of datagrid to directly scroll to current scroll
    positions instead of top row. Is there a way to achieve similar feature in flex / actionscript?

    I am calling validateNow().. Also, using verticalScrollPosition to restore the scroller as in the link that you posted.. Reposition is working fine, But the bug filed is regarding BLINKING / JUMPING when this happens (i.e. this blinking is caused because after datagrid edit, during reload the scroller tries to move to  the top by default, then it repositions itself to current edited row as the verticalScrollPosition property is overridden ).. I have to get rid of this blinking.
    In Javascript it is dealt by overriding OnLoad method of datagrid to directly scroll to current scroll position instead of top row during reload so that there is no blinking.
    http://www.sencha.com/forum/showthread.php?13898-Is-there-any-way-to-keep-scroll-position- of-Grid-on-load
    Is there a way to achieve similar feature in flex?
    I am not sure what flex datagrid method to override.. Theres no method like load? What is the datagrid method that is called by default during reload (after datagrid edit) that causes the scroller to go to top?

  • Accordion Widget not saving current scroll position

    Accordion widget saves scroll position in Firefox, however in
    IE7 the position gets reset to the center of Accordion Widget.
    Example. Select Alabama and then select Wisconsin to see
    effect.
    See www.Qualite1.com/contactUs.html

    Hi ghaug,
    This is due to the tabindex attribute that is on the
    top-level element of the accordion. Apparently when an element is
    focused in IE, it tries to make sure the top of that element is in
    view, so it is "conveniently" scrolling it into view for you.
    To prevent this behavior for accordions like yours that don't
    fit neatly into a single screen, you are going to have to remove
    the tabindex attribute from the top-level accordion element. If you
    still want/need keyboard navigation of your accordion, then you
    have to switch to using links in your accordion tabs. You can find
    an example here:
    http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample.html#EnablingKey boardNavigationWithLinks
    --== Kin ==--

  • Last page scroll position not remembered

    After getting search results in Google, I click on a subject, then when I click "back" it returns to the top of the previous page. It's like it doesn't remember where it was. One fix I found was to change cache-control in about:config. But I can't find it. Where is I located? Another fix is "Restore Scroll Position" does this work on ver 3.6.12 ?
    TIA

    It is usually easier to open the results in a new tab with a middle click on the link and close that tab with a middle click on that tab on the tab bar.
    For the Google website you can set your preferences on the Google.com page via the [http://www.google.com/preferences?hl=en Google Search settings] link at the top right.
    Results Window: Open search results in a new browser window.

  • Table Scroll Position

    Hi.
    How can I get and set the scroll position of an table?
    VG

    Hi Marcus,
    Can you please provide some more details with the proper code if posiible.
    Thanks & Regards,
    Seema Chand.

  • WebView scroll position

    How can I get and set the vertical scroll position for a WebView?

    You mean something like:
    webView.getEngine().executeScript("window.scrollTo(100,100);")That didn't have any effect as far as I could tell.
    Any good reason why there isn't a Java API?

  • Scroll Position

    I have a working listener on a mock scroll bar, but I get
    results that are not correct. I was hoping that somebody knows how
    I could get the position of a scroll bar through an actionscript
    alert or by binding it to a coldfusion form.
    As shown in the code below, I am using "vScroll.vPosition" to
    return the position.
    The code below is ready to run just copy and paste onto the
    server to see my problem.
    Thanks for your time.

    Anybody?

  • Scroll Position ReportViewer

    Hello,
    is there a way to retrieve and set the scroll position (Horizontal and Vertical of course) of the WinForm CrystalReportViewer.
    I tried everything (includinng the analysis of the controls of the control CrystalReportViewer) and none of the controls of CrystalReportViewer or the control itself have the Property VerticalScroll.Value filled, it always contains the value 0.
    I also tried to step into the scroll event but it is not raised.
    My application is a WinForm Application and I use CR2008 with Oracle.
    Thank you.
    Giovanni Perrone

    I remember putting this together for someone else a while back. It's been a long time since I've run this code so I give no warranty with this solution. I believe the trick was getting into the Form_Paint event, then accessing a specific TabControl for the CrystalReportViewer.
    It was very much a trial and error solution.
    Give it a try and see if it helps you out.
    Note: This is also address in this thread How to Set , Get CrystalReportViewer Scroll position in .NET.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    namespace cr12_modify_viewer_scroll_position
        public partial class Form1 : Form
            public Form1()
                InitializeComponent();
            private void Form1_Load(object sender, EventArgs e)
                crystalReportViewer1.ReportSource = Application.StartupPath + "\\..\\..\\CrystalReport1.rpt";
            private void Form1_Paint(object sender, PaintEventArgs e)
                MessageBox.Show("Form1 Paint");
                // get the tab control
                TabControl boTabControl = (TabControl)crystalReportViewer1.Controls[0].Controls[0];
                TabPage boTabPage = boTabControl.TabPages[0];
                boTabPage.VerticalScroll.Value = boTabPage.VerticalScroll.Maximum / 2;
                crystalReportViewer1.Refresh();
    Edited by: David Hilton on Jun 24, 2009 9:49 AM
    Added info for related post.

  • JScrollPane - can you set scroll position?

    I have a JList loaded into a JScrollPane, and I call a method that highlights a row of the JList, but I can't figure out how to get the JScrollPane to scroll down.
    Is there a method where I can manually set the scroll position? I looked at the documentation online and didn't see anything like that.
    Thanks.
    -Mark

    You need to get a reference to the JScrollPane's JViewport
    myPane.getViewport();
    Then on the viewport you can call one of these.
    scrollRectToVisible(Rectangle contentRect)
    setViewPosition(Point p)
    Cheers,
    Rachel

  • DataGrid scroll positions resetting with dynamic dataprovider

    Hi - I have a DataGrid that is backed by an ArrayCollection
    that is fairly dynamic. Before doing my updates, i disable
    autoupdating, and though my size is typically fixed at 100 items,
    sometimes those items will be replaced. My problem is that a user
    who has scrolled down the visible grid, will lose their scroll
    position when i replace items. If i'm just doing updates on the
    existing objects, it's fine, but the replace is causing the scrolls
    (both horizontal and vertical) to reset. I've tried to isolate
    where this is happening (whether set verticalScrollPosition or on
    the bookmark) and i can't quite find it.
    Anyone know how i can prevent this behavior? I've tried
    capturing the scoll position before i begin my updates, and then
    setting it back when finished, but it doesn't work.
    Thanks.
    ./paul

    Actually, I spoke too soon. I had a number of things I was
    trying. And when i tried to clean up the other things that I
    believed were extraneous (including an override of
    makeColumnsAndRows), the vertical scroll resetting stopped working.
    I've spent about 90 minutes trying to get back to where I was (wish
    the builder was in IntelliJ!).
    When it was working, I also tried to add horizontal scroll
    capturing, and that didn't seem work either. I have 34 columns, the
    first one is locked. When I captured my position, I saw it was 11.
    Then i performed the update, and callLater my resetScroll position.
    The first column i saw after the locked column is correct. However,
    the scroll bar itself is fully left. On the next update I captured
    a horizontal scroll of zero.
    ./paul

Maybe you are looking for

  • Creative Cloud gives me a Blank White Page

    I am trying to install the creative cloud in my computer, but the creative cloud app gives me a white blank page and does not let me sing in. So far, I tried to delete both AAAupdate folder and OOBE folder, reinstalling the creative cloud app but it

  • Disable or Deactivate Delete Button in SAP Easy DMS.

    Dear All, My client is using Easy DMS and is working fine. Now the issue is as soon as files become more in Private or Public folder he is Deleting Documents using DELETE Button which is available on the Tool Bar. Whereas if he uses Delete Document f

  • How to use a colum value as background color in a report template

    I need to use a colum value as background color of report template es. <td style="padding:0px;border-bottom:1px #cccc99 solid;border-right:1px #cccc99 solid;font-size:8pt;background:??????;" #ALIGNMENT#>#COLUMN_VALUE# </td> I have a column named COLO

  • Can I transfer 11 books on my original Sony Digital Reader to my PRST-1 Sony Reader?

    Some of my books are in my newer PRST-1 Sony Reader but 11 are stuck in the older Sony Digital Reader and I want to move them into the newer one. Can I transfer the 11 books that are on my original Sony Digital Reader to my newer Sony PRST-1 Reader s

  • Lots of tables in the non-SAP source systems

    Hi All, Earlier I asked a question on SDN about having about 50 tables in non-SAP source systems like SQL, Oracle, etc. According to the functional/business folks here, I'm supposed to be extracting only 1 or 2 fields from many tables. So I got a rep