Keep the scroll position on partial commit in af:table

Hi,
We have an ADF 11.1.1.1.0 application that uses a lot of editable tables. In those tables, we have <tt>autoSubmit</tt> enabled for all fields, since some combo boxes and LOVs depend on values entered in the same row. The problem is, that every time a partial submit occurs, the table reloads itself and in the process the position of the scrollbar is lost. This means the user has to scroll down to the record he was editing and continue. By setting <tt>displayRow="selected"</tt> on the <tt><af:table></tt>, we can at least achieve that the table scrolls to the record the user was on a refresh. But if the record was not at the top when the user started editing, the record still "jumps" in the experience of the user. We would like a situation where the table keeps the exact position of the scrollbar while partial submits occur. Isn't it possible to just refresh the selected record, instead of refreshing all rows?
Best regards,
Bart Kummel

You can programmatically achieve this, check the following threads.
How can I programmatically select row to edit in ADF - 11g
Select Table Row

Similar Messages

  • 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?

  • Keep grid scroll position across updates?

    I have a JBoss app server status monitor that uses the XML
    status page to update a Flex grid control. I can scroll down in the
    list, but when the grid auto-updates, it puts the scroll position
    back at the top of the grid. This is very inconvenient for the
    user. Is there any way to maintain the current scroll position
    after calling the refresh method of the collection that I've set as
    the data provider for the grid? Or will I have to grab the scroll
    position right before I update, call the update, then reset the
    scroll position? Thanks!

    The latter. Re-assigning the dataProvider will completely
    redraw the tree.
    If you can update the dataProvider using the API, then this
    will be avoided, but I suspect that will be more difficult than it
    is worth.
    Tracy

  • How to keep the SAME position of layout on left & right pages when adding a page?

    A little background first before I ask the question:
    I've been converting a PowerPoint document to the InDesign format, and adding pages as I go through by duplicating a page in order to keep the top description text in the same position at the top left hand side. The document is over 110 pages- more pages will be added soon, and some pages deleted. Basically the presentation will be printed as a book, and the client we are designing this presentation for sent us the master pages for the layout.
    The issue I'm now having: I had to delete an odd number of pages which caused a shift of the layout of pages throughout the document after the pages I deleted. I figured that the right hand page was not aligned the same as the right hand page, so I measured in the same distance from the left edge on both pages and made the adjustments. But then when I added a page, the alignment shifted again.
    Is this an issue with the master pages? Or is this another issue? Any idea how to fix this so that the pages are aligned the same whether I add or delete a page? I've included two screen grabs to better illustrate what is happening:
    I would be very grateful for any help you may be able to offer on this, thank you in advance.
    Vera

    Those are your margin guides, and your client evidently expects the margins to be larger on the outside of the page than at the spine. Putting the text frame that says Main Building... on the master page will not only save you having to enter it each time, but will let you put it where it should be and have it stay there when pages switch sides. Your images are going to seem to shift, too, unless they are centered on the page on the horizontal axis.
    I'm sensing you really have little or no experience using ID, and some basic training would probably help you quite a bit. I'll recommend Sandee Cohen's Visual Quickstart Guide to InDesign -- best book out there for beginners.

  • How do I keep the scroll bar from disappearing in the Mountain Lion update 10.8.5?

    When I got the prompt yesterday that there was an update for Mountain Lion I went ahead and downloaded it, and it is awful!  The scroll bar on the right side of the screen disappears too quickly now to use it easily, and is difficlut to get back, which adds extra steps (clicking on the down arrow while the cursor is in the scroll area then quickly clicking the arrow cursor while it is in the temporary scroll down bar.  Or else this is from a Firefox update I did NOT actually download, but indications when I started up my computer today are that it did download somehow by itself without my permission, as there was a notice that some of my Mozilla ad-ons might not be compatible with this version of Firefox.  I couldn't understand that since it should have been the same version of Firefox I used yesterday!  I know I didn't download the new Firefox because the pop-up box went away very quickly each time it came up so I never did click on it.  Does anyone know if the change in scrolling is a Firefox update or the OSX 10.8.5 update?  I HATE it and want it off, but don't know which one is the culprit nor how Firefox updated itself without my consent.  Aaaarrrggghhh!

    System Preferences > General > Show scroll bars:
    Make sure that "Always" is selected.
    Best.

  • How do I set the scroll position to the bottom of window

    Hi!
    I have some text that is printed out to a JTextArea, which in turn is placed in a JScrollPane and the text output works fine.
    However, as each line is "appended" to the JTextArea the scroll bar stays at the top meaning the text "disappears" at the bottom of the screen.
    I would like to set the scroll bar at the bottom of the scrollpane after each append, but can't for the life of me figure out how. I've done it before o.o, any help would be greatly appreciated.
    Thank you,
    /SweDev

    Something like:
    textArea.setCaretPosition(textArea.getDocument().getLength());

  • 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.

  • Web page in iframe does not maintain scroll position on refresh in FF4

    I have a web page on my local drive which refreshes live sports commentary every minute in an iframe.
    In FF3.6.x the page in the iframe retained the scroll position of where I had moved to.
    In FF4 the page within the iframe goes back to the top so I now have to scroll down every time to where I want to read.
    I disabled all addins in FF4 and have tried this on different URLs but the page in the iframe still returns to the top.

    Similar problem running a 27" iMac only it occurs in Excel and inDesign. Hit the cell with the curser and the worksheet moves over to the right 7 or 8 cells away. Have to curser back to the cell quite frequently. This issue make the machine unusable when working with those two aps. Today I did the ultimate and completely reloaded Yosemite and the problem is still there.

  • Scroll Positions do not work if Scroll Policy is 'off'

    I am using flex SDK 3.3.0.4852
    I have a canvas with
    canvas.horizontalScrollPolicy = "off";
    canvas.verticalScrollPolicy = "off";
    This canvas has an image in it, and I set the horizontal and vertical scroll positions programitically.
    canvas.horizontalScrollPosition = canvas.maxHorizontalScrollPosition;
    canvas.verticalScrollPosition = canvas.maxVerticalScrollPosition;
    then I save the scroll values in an xml file, and then on reopening of the xml file.. I do the following
    canvas.addEventListener("creationComplete", setScrollPositions);
    and in the method setScrollPositions(event) i do the following again
    canvas.horizontalScrollPosition = canvas.maxHorizontalScrollPosition;
    canvas.verticalScrollPosition = canvas.maxVerticalScrollPosition;
    But unfortunately it does not show any change in the scroll positions visually, and the default scroll positions persists. Though if i call an alert
    Alert.show(canvas.verticalScrollPosition.toString()); //it does show me some value, e.g. 56
    Now if i only set horizontal and vertical scrollPolicy = "on" ... all works fine. But the problem is that I want to hide my scrollbars and there is no other way I can do it. So please if there is any solution to it or if there is any workaround, do let me know. Thanks.

    i'm having the same problem and i just got a brand new dell..when i hold down the left click over the up or down arrows, my songs in itunes only go down one line rather than scrolling up or down while im holding down the left click...any help is appreciated..

  • Flex 4.6 Mobile Scrollbar optimisation prevents setting scroll position?

    Hi All,
    With the release of flex 4.6 , it appears the mobile version of the scroller has been optimised. Now the scroller defers creation of the scroll bar until the user interacts with the scroller.... Which all sounds good performance wise, faster page creation etc...
    But if I want to move the scroller position before the user has interacted with the object , IE to jump to particular position before they start scrolling, I'm not sure what to do. Orginally I would have done something like...myScroller.horizontalScrollBar.value = 100 ... but of course myScroller.horizontalScrollBar is now null.
    Am I missing something - is there another way.
    J

    Ok found a work around...
    I extended the scroller class and added a couple of functions like...
    public function scrollerCreateHScrollBar():void
        if ( !this.horizontalScrollBar && this.horizontalScrollBarFactory)
                this.horizontalScrollBar = HScrollBar(this.createDynamicPartInstance("horizontalScrollBarFactory"));
                Group(this.skin).addElement(this.horizontalScrollBar);
                partAdded("horizontalScrollBar", this.horizontalScrollBar);
    then called to create teh scoll bars when I want them...
    Hurra.
    J

  • 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

  • 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.

  • 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.

  • Scroll position does not reset on datasets

    Forgive me if this is somewhere else, but I cannot find it.  In using spry datasets in CS4, when the data in a container is long enough to need a scroll bar, the scroll position does not reset to the top when you chose the next item in the dataset.  By example, if I choose Grapefruit, and the description container has several paragraphs that i have scrolled down to read, then I choose Pear, and the description content displays in the same scroll-down position (perhaps in the middle or the end) instead of resetting at the beginning of the paragraph.  Is this a bug or is there something I am doing wrong?
    Thanks!!!

    Argh!  I have this exact same problem when working with Master/Detail.
    When I scroll down to the bottom of a detail area, and then click another item in the master column, it displays the bottom of the new detail area.  This is not what I want.  Whenever I click on a new item in the master column, I need to be positioned at the top of the new detail area.  How can I make that happen?
    Please help!  Thanks!
    SC

  • 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

Maybe you are looking for

  • Different Page Header

    Hi, I am working in AR Invoice Report. The requirement is to print the invoice along with terms and condition, which is the last page. We don't require the logo and company information to appear on the terms and condition page. For this we have used

  • How to compile and run servlets

    Can anybody tell me what is the exact path to put the servlet class file in tomcat 4

  • Event Browser Problem

    Every time I import videos into iMovie '09, the videos do appear in the Event Browser. The problem is, after I finish editing my videos, I want to delete the clips in the browser. Now I know that this doesn't actually delete the file itself but somet

  • Canon 700D/Rebel T5i Support?

    I just upgraded (v. 3.4.4 with Raw 4.05 build 690.1 / Raw support 4050 build 64.3) and I am rather shocked to find that Canon 700D images are not being recognised by Aperture, which has put my entire workflow to a halt. Considering that the 700D/Rebe

  • Category Axis width in BubbleCharts

    Hi @ all, I trie to build up a BubbleChart with a vertical CategoryAxis. And worked quiet well until I wanted to change the font-size. I realized, that the Axis seems to have a fixed width. When the label at the Axis gets to long, it shrinks down the