11.1.2 Webform Focus Resets to Top of Form After Save

Hello,
My client is having issue where the webform resets its focus to the top of the form instead of where in the form the user was when the save was initiated. For example, if the user is on row 300 in Accounts, when the click Save, the form goes back to row 1 (although the data is saved). This is frustrating because they have to keep scrolling down in the form to get to the next data entry point.
Help would be appreciated to adjust this issue.
Thanks!

What you are doing now will not create a maintenance nightmare in future, if you are doing it in a framework oriented fashion. We have done something similar in one of our biggest project( around 50 developers working 3 years). What we have done is, created a method resetBean() in our abstract backing bean like:
public void resetBean(){
                    // doing nothing
We didn’t make it abstract, so that all backing bean in our project need not implement this method. Those who want to use this method can implement this method to reset the values in the backing bean.
One thing we achieved by doing this is, we don’t let each developers do the reset logic in different ways.
One of the advantages of this over the redirect is, you have full control over resetting the form. Which means, sometimes, we may need partial resetting of the form.
Thanks and regards
Rick

Similar Messages

  • Button background fill "Linear - to top" not showing after save.

    I've made the proper edits to make these buttons look very "cool" having the background filled to a gradient look which is called "Linear to top", but once I save this form and open the PDF the button color is solid rather then gradient or "linear to top"
    Any explination?

    If you have done the changes to your your button background color at the design time, it should retain the changes anywhere you open it.
    If you have done the changes to your button background color through Script, then you may need set the Save changes automatically.
    If your issue is not resolved, by changing the settings, you can post the form to [email protected], so I can have a look..
    Thanks
    Srini

  • ADF Treetable scrolling position resets to top on refresh

    I have a master details page with the following components.
    TreeTable with a Check Box on LHS  and TabbedPannel on RHS.
    So, users can select any row on the LHS and the corresponding details will be displayed on RHS in a new Tab. When user closes the Tab it will clear the Check Box on TreeTable.
    Issue is, when user is at last row of TreeTable when there are more rows (Scroll bar will be at last), and user closes the Tab on RHS side, I will be clearing the checkbox binding and refresh the treetable using PPR to reflect the same.
    This is causing the treetable  scroll bar to be reset to the top. And User lost the old position on needs to scroll down again.
    Can we control the Scroll bar position after PPR refresh (or)
    Can we just clear off the CheckBox selection (only one row) with out refeshing the whole treetable
    Environment:
    JDev Version : 11.1.1.6.2
    Component : ADF TreeTable with TreeModel binding (Not using BC)

    In my case, I am fine with disclosureState items. They do not collapse even after I remove the checkbox selection and refreshing the TreeTable component.
    Only issue is scrollbar is resetting to top.
    I can't use the disclosure event as they can do expandAll , select first compoenent scroll down and close the selection on RHS tab.
    Which will reset the LHS scrolling position to top.

  • EXIT button on the top level form is not working.

    Hi I have 10g forms deployed on the web.
    On the top level form, there is a exit button on it.
    And for this form, under ALERTS I have two alerts viz. QUIT_ALERT and BANNER_ALERT.
    Now when I press the EXIT button on the form, nothing is happening. Neither prompting the ALERT nor closing the FORM.
    Where and What could be the problem??
    I have the following code for the exit button
    IF G$_DISPLAY_ALERT('QUIT_ALERT','Do you really wish to quit?') = ALERT_BUTTON1 THEN
    EXIT_FORM;
    END IFAnd the function G$_DISPLAY_ALERT has following code
    FUNCTION G$_DISPLAY_ALERT(ALERT_NAME IN VARCHAR2,
    MSG_STRING IN VARCHAR2) RETURN NUMBER IS
    ALERT_ID ALERT;
    AL_NAME VARCHAR2(30);
    ALERT_BUT NUMBER;
    BEGIN
    IF ALERT_NAME IS NULL THEN
    AL_NAME := 'G$_WARNING_ALERT';
    ELSE
    AL_NAME := ALERT_NAME;
    END IF;
    ALERT_ID := FIND_ALERT(AL_NAME);
    IF ID_NULL(ALERT_ID) THEN
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    SET_ALERT_PROPERTY(ALERT_ID, ALERT_BUT, MSG_STRING);
    ALERT_BUT := SHOW_ALERT(ALERT_ID);
    RETURN ALERT_BUT;
    END;Edited by: Charan on Mar 30, 2011 2:01 PM

    seems like some trigger is firing, because i'm getting a CAUTION popup now saying Please Acknowledge.Actually, the PAUSE() built-in is what brings up the "Please Acknowledge" alert. Clearly, your trigger is firing so there must be something wrong with either your WBP trigger code or your G$_DISPLAY_ALERT program unit.
    Try the same technique on your program unit. I would also suggest you display a message in your Exception handler. My guess is that your function is failing but since you don't report the failure, it appears that your code runs successfully.
    FUNCTION G$_DISPLAY_ALERT(ALERT_NAME IN VARCHAR2,
                          MSG_STRING IN VARCHAR2) RETURN NUMBER IS
       ALERT_ID         ALERT;
       AL_NAME          VARCHAR2(30);
       ALERT_BUT        NUMBER;
    BEGIN
       Message('Alert_name: '||ALERT_NAME);
       PAUSE;
    IF ALERT_NAME IS NULL THEN
       AL_NAME := 'G$_WARNING_ALERT';
    ELSE
       AL_NAME := ALERT_NAME;
    END IF;
    ALERT_ID := FIND_ALERT(AL_NAME);
    IF ID_NULL(ALERT_ID) THEN
       Message('Unable to find Alert: '||ALERT_NAME);
       Message('Unable to find Alert: '||ALERT_NAME);
       RAISE FORM_TRIGGER_FAILURE;
    END IF;
    SET_ALERT_PROPERTY(ALERT_ID, ALERT_BUT, MSG_STRING);
    ALERT_BUT := SHOW_ALERT(ALERT_ID);
    RETURN ALERT_BUT;
    END;Then you can see what the value of ALERT_NAME is and verify your code is executing as expected.
    Craig...
    Edited by: CraigB on Mar 30, 2011 12:54 PM

  • How to trobleshoot an ipod touch. yesterday i tried to reset the setting then after i click reset it suddenly shut and after a few minutes an apple logo came out. It cannot be open anymore until now. what will i do.please help me thank u

    how to trobleshoot an ipod touch. yesterday i tried to reset the setting then after i click reset it suddenly shut and after a few minutes an apple logo came out. It cannot be open anymore until now and the logo is still their. what will i do.please help me thank u

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar              

  • After i designed a website for desk top how do i save the site for cell phone

    after i designed a website for desk top how do i save the site for cell phone use

    I don't think you can simply save a desktop design as a cell phone design.  While in Muse and in the site plan view for you website you should see three tabs near the top of the page.  If you click the "Phone" tab, you will get a pop-up dialog box asking which element you would like to copy over from your desktop site (if any).  You must then design the site for cell phone use.  You can use the same objects, pictures, etc. from your desktop site and Muse should automatically optimize those elements for phone use.  However, Muse does not automatically take a desktop design and create a cell phone design from it. 
    As I understand it, Muse uses user-agent detection to decide which site it wants to display to the user. You however, need to create the different versions of your site so that Muse can apply a specific design for the intended use.

  • How do i get a top site back after i deleted(x) it?

    how do i get a top site back after i deleted (x) it?

    Visit the site, hold down your cursor on the + sign to the left of the address bar - and click Add To - Top Sites.
    Matt

  • I tried to reset my iphone5, the reset loading was okay, but after that there is other loading(the one that come everytime after shutting down), so its about 6-7 hours that my phone is stuck on this page. force shutdown didnt work.

    I tried to reset my iphone5, the reset loading was okay, but after that there is other loading(the one that come everytime after shutting down), so its about 6-7 hours that my phone is stuck on this page. force shutdown didnt work.

    There are many ways to do a reset on an iPhone so which one have you been trying that has got you to where you are now?

  • How can i reset or restore my iphone after dropping it in water

    how can i reset or restore my iphone after dropping it in water????

    There are a lot of posts here about your problem, read a few of them and they all come back to switching the phone off immediately and have it in a very good closed bag of dry rice for a week and advisely swith the rice for a fresh charge of dry rice every week for a number of weeks when it was really submersed. Ckuan advice times 3. The iPhone has a detector which indicates whether the iPhone was in the water, Apple can give you an indication about the price first if you visit them.

  • I'm trying to reset my ipad from ITunes after i disabled it but it keeps telling me that it can't complete it because it has a passcode please help!!

    I'm trying to reset my ipad from ITunes after i disabled it but it keeps telling me that it can't complete it because it has a passcode please help!!

    FORCE IPAD INTO RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.

  • What event fires when form focus comes back to calling form

    Hi,
    I need to capture the event when form focus comes back to calling form.
    I am using KFF in my custom form and want to perform a set activities when users presses "Cancel" button of KFF instead of "OK" button.
    I guess KFF screen is an another form which is being called from my custom form.
    Regards,
    Kuldeep

    I posted my question here and got answer
    Re: Event to capture when form focus comes back to calling form
    Edited by: rawat75 on Feb 6, 2013 12:54 AM

  • Using Mac OSX 10.7.1: recently replaced our DSL modum & wireless router and suddently I can't get some web sites to load. Many do, but Twitter and others often do not. I've reset the browsing historty, forms, cookies and cache but it continues to happen.

    Using Mac OSX 10.7.1: recently replaced our DSL modum and wireless router, suddenly I can't get some web sites to load. Many do, but Twitter and others often do not. I've reset the browsing history, forms, cookies and cache but it continues to happen.

    Ok, first thing, why are you doing anything with WAMP or XAMPP when you're running a Mac? MAMP should be what you want unless you're not explaining part of what you are trying to do.
    2nd thing, I haven't used MAMP in a while, but there are two possibilities for not seeing what you want to see once you have MAMP turned on. One possibility is that you already have "Web Sharing" turned on in your Sharing Preference Pane. If that is the case, port 80 will already be taken and you'll be seeing the default Apache install (files are stored at /Library/WebServer/Documents/). This would push MAMP to either not turn on it's web serving capabilities, or to push it to another port. The other possibility is that MAMP defaults to another port anyway. So instead of localhost, you might have to type in localhost:8080 or something similar. I believe the control panel that gets installed can take you to the currently MAMP-served page, and it can also help you change which port your serving on.
    80 is the default port for web serving and the ONLY port that will let you get straight to the server without having to type in webaddress.com:port# instead of just webaddress.com.

  • When I relaunch firefox 8 the proxy server settings reset back to Manual even after I change to autodetect

    When I relaunch firefox 8 the proxy server settings reset back to Manual even after I change to autodetect

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Before starting fire fox I can use the mouse to highlight my desk top icons. After ffox is loaded the mouse will point to the icons but will no longer high light them. When I click it just opens the icon.

    # Question
    before starting fire fox I can use the mouse to highlight my desk top icons. After ffox is loaded the mouse will point to the icons but will no longer high light them. When I click it just opens the icon.

    To attempt a new chat session...
    For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    http://helpx.adobe.com/x-productkb/global/service1.html

  • Move datasheet scrollbar with vba in access because requery resets the focus to first top-left cell

    Hi,
    I have a Form in Access 2010 which is split into three sections: form header, detail, form footer (empty) below each other. Detail contains a datasheet (looks like an excel table).
    Every time I do a requery with vba (I requery the table if something is changed in a certain column), the first cell (on top left) gets the cursor focus (selection). Now when I have enough rows in the datasheet (or resize the window), scrollbars appear.
    If I'm changing a value near the bottom and my vba script does a requery, I have to scroll back down to the selected cell, which is very annoying and impossible to work with regularily.
    I think this is a known problem. So far I have a workaround that stores the SelTop and SelLeft and restores these values after the requery. This works fine but it still moves the view around because the selected cell is now on the lowest visible row.
    A better approach would be to save the scrollbars' offsets and restore them after requery. I stumbled upon this project: http://www.lebans.com/setgetsb.htm which seems to get that done by calling the win32api functions to move the scrollbars of the access
    window.
    Unsurprisingly, Access 2010 doesn't support accessing its scrollbars via win32api anymore. Is there another way to do this with vba? Via .net, ole automation or something else?
    Note that I do NOT want to access form scrollbars or ActiveX/Forms 2.0 scrollbars, but the built-in auto scrollbars of a datasheet in "Form View" of a form that is split in 3 sections. I don't even know how to enable/disable these built-in scrollbars,
    they automatically appear if the window is small enough or enough columns are added.
    Thank you very much,
    Simon

    I just looked at the sample code you referenced and found that the APIs are working just fine, but the class name for the scroll bars changed between Access 2003 and 2007 which is why the sample code couldn't find them.
    If you change the change the following line in the "fIsScrollBar" function in the sample, you will find it runs in Access 2007, Access 2010 and Access 2013 as it did in Access 2003.
    In 2003 use:
    If fGetClassName(hWnd_VSB) = "scrollBar" Then
    In 2007, 2010 and 2013
    If fGetClassName(hWnd_VSB) = "NUIScrollbar" Then
    Yes, this was the problem!
    I couldn't figure out first because the subforms lead to a tree structure which contains several scrollbars.
    If someone else runs into this problem, I wrote this function to display the tree structure:
    Private Const GW_HWNDNEXT = 2 'nextSibling
    Private Const GW_CHILD = 5 'firstChild
    Private Const GW_HWNDFIRST = 0 'firstSibling
    Private Declare Function getWin _
    Lib "user32" _
    Alias "GetWindow" _
    (ByVal hwnd As Long, ByVal which As Long) _
    As Long
    '********* Code Start *********
    ' This code was originally written by Dev Ashish.
    ' It is not to be altered or distributed,
    ' except as part of an application.
    ' You are free to use it in any application,
    ' provided the copyright notice is left unchanged.
    ' Code Courtesy of
    ' Dev Ashish
    ' (altered, original code at http://access.mvps.org/access/ )
    Private Declare Function apiGetClassName Lib "user32" Alias _
    "GetClassNameA" (ByVal hwnd As Long, _
    ByVal lpClassname As String, _
    ByVal nMaxCount As Long) As Long
    Private Const mconMAXLEN = 255
    Private Function fGetClassName(hwnd As Long) As String
    Dim strBuffer As String
    Dim count As Long
    strBuffer = String$(mconMAXLEN - 1, 0)
    count = apiGetClassName(hwnd, strBuffer, mconMAXLEN)
    If count > 0 Then fGetClassName = left$(strBuffer, count)
    End Function
    '********* Code End *********
    Private Function sGetHwndClassTree(root As Long, indent As Integer)
    Dim indentstr As String
    Dim outstr As String
    Dim wnd As Long
    Dim child As Long
    indentstr = ""
    outstr = ""
    wnd = root
    child = 0
    For i = 1 To indent
    indentstr = indentstr & " "
    Next i
    Do While wnd <> 0
    outstr = outstr & indentstr & fGetClassName(wnd) & Chr(13)
    child = getWin(wnd, GW_CHILD)
    If child <> 0 Then
    outstr = outstr & sGetHwndClassTree(child, indent + 4)
    End If
    wnd = getWin(wnd, GW_HWNDNEXT)
    Loop
    sGetHwndClassTree = outstr
    End Function
    For my case, the output is
    OForm
    OSUIBlank
    OSUIBlank
    NUIScrollbar
    NetUIHWND
    OSUIBlank
    NUIScrollbar
    NetUIHWND
    OFormSub
    OFormSub
    OFEDT
    OFormSub
    OForm
    OSUIBlank
    OSUIBlank
    NUIScrollbar
    NetUIHWND
    OSUI
    OSUIBlank
    NUIScrollbar
    NetUIHWND
    So I actually have three scrollbars to watch.
    Anyway, thank you very much!

Maybe you are looking for