Using back button to clear data

I have a several JSP pages that help create a report. The first page you choose some options using check boxes. The second page you put those options in a certain order. The last page you choose the data you want to search for and it runs the report. The second and the last pages have a back button. The problem is when you use the back button and change some of your choices the old choices don't always go away. What I need to do is erase the previous choice (which are contained in an array) when the back button is clicked.
One problem is that the array is declared in a different method than the one that determines what happens when the back button is pressed.

You can use reset funcyion to clear data on back button.
Cheers
Varun Rathore

Similar Messages

  • Use back button and clear advanced action and quiz answer..

    OK, so I have made a quiz where the answer for each question is recorded and given in a list at the end. However, I would like the user to be able to go back and change their answer. At the moment if the user goes back, the answer is locked and they cannot chose a diiferent option.
    Does anyone know if it is possible for them to go back, select a different and still have the advanced action part record the new answer?
    Thanks for any help!

    Only way to reset the answers to a default question slides, during the same session, is to use the Retake button on the score slide (you need to have multiple attempts of course. But that will be done at Quiz level: all answers are reset.
    Another option (in CP6 and later) is to use the Submit all option, then they will be able to go back and change answers. But... I suppose you are using the system variable cpQuizInfoAnswerChoice to populate user variables with those advanced actions? That system variable is not populated when Submit all is chosen.
    Last option is to use remediation, but it will probably not suit you: then user can be sent to a content slide if a question is failed, be sent back to the question slide and can then change the answer. It is not just going back one or more slides.
    Custom question slides will allow what you want, but they necessitate a lot more work and you will not be able to use question pools.
    Lilybiri

  • LOve Firefox but it's annoying that if I'm using a search engine (I use lots of subscription legal search databases), when I press the back button all the data I entered in the search boxes has disappeared. I'm sure Firefox didn't use to do that?

    Love Firefox but it's annoying that if I'm using a search engine (I use lots of subscription legal search databases), when I press the back button all the data I entered in the search boxes has disappeared. I'm sure Firefox didn't use to do that?

    Please do the following.<br><br>
    #Click the Firefox button, go to '''Options '''| '''Options''' | '''Privacy'''.<br><br>
    #In the dropdown menu at the top, change it to "'''Use custom settings for history'''"<br><br>
    #Checkmark the option: "'''Remember Search and Form history'''".<br><br>
    #Remove the checkmark from: "'''Clear history when Firefox closes'''".

  • Active Focal Point Not Shown in Software Using Back Button Focus

    I use Back Button Focus (BBF) and set the focus point (using center spot).
    In the software (DPP, ZoomBrowser or EOS Utility) the point I selected is not highlighted in the view window.
    All points are shown, but none highlighted.
    If I take the same shot using default focus method (shutter button AF), the point is highlighted .
    Why is this?
    Not too technical, please
    Canon 3Ti, EF 50mm f/1.4 USM, EF-S 18-55mm f/3.5-5.6 IS II, EF-S 55-250mm f/4-5.6 IS II, 320EX Speedlite

    Thanks.
    I did just download and install the updates (DPP, EOS, Picture Style Editor and Zoom Browser).
    Still no red focus point(s) shown with Back-button Focusing.
    I searched on the web for this "symptom" and found, that I'm not alone.
    It seems in Back-Button Focusing, the focus point won't be displayed unless you hold the back button down (* button  in my case) while pressing the shutter button.
    I tried holding the * button while taking a shot and yes the red box shows up.
    This seems like defeating the usefulness of back button focusing. (???).
    What do I know? I'm just a newbie.
    Canon 3Ti, EF 50mm f/1.4 USM, EF-S 18-55mm f/3.5-5.6 IS II, EF-S 55-250mm f/4-5.6 IS II, 320EX Speedlite

  • In my application on openeing a page mozilla browser history shows more than one entry which inturn makes it difficult to go the previous page using back button. It works fine in I

    In My application on opening a page using TOC, mozilla browser shows more thanon entry in history, which makes it difficult to browse the previous page using back button. Although it works fine on IE
    == URL of affected sites ==
    http://
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8)

    In My application on opening a page using TOC, mozilla browser shows more thanon entry in history, which makes it difficult to browse the previous page using back button. Although it works fine on IE
    == URL of affected sites ==
    http://
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8)

  • Ho to back on selection screen using BACK button

    Salute.
    I have a program which contains 3 screens:
    1st -- selection screen.
    2nd -- my screen, I called it 1002, When I press F8 button on I get on it. I am using cl_gui_alv_grid there with my own buttons. So when I press MY OWN the save button I get the 3d screen
    3d -- my own screen with some labels (screen name 1001).
    So when i press BACK button on the third screen I want to back on selection screen and skip second screen, but I can't, I think the problem is in the cl_gui_alv_grid because I use custom grid handler:
      METHOD handle_user_command.
        DATA :
            ls_selected TYPE lvc_s_roid,
            lt_selected TYPE lvc_t_roid.
        CASE e_ucomm.
          WHEN 'QSAVE'.
            PERFORM save_data.
            CALL SCREEN 1001.
          WHEN OTHERS.
        ENDCASE.
      ENDMETHOD.                    "handle_user_command
    Thank You.
    Edited by: kernel.panic on Nov 24, 2009 6:31 AM

    Hi Kernal,
    To go back to the First Screen (Selection Scree) use
    LEAVE TO SCREEN 0. " This makes the Program to go back from where it had started
    or Create a Tcode for your program
    CASE e_ucomm.
    WHEN 'BACK'.
    LEAVE TO TRANSACTION 'YOUR TCODE HERE' . " This will take you back to your Selection Screen
    WHEN 'QSAVE'.
    PERFORM save_data.
    CALL SCREEN 1001.
    WHEN OTHERS.
    ENDCASE.
    Cheerz
    Ram

  • Browser Back Button x Stale Data

    Hi,
    I'm facing a weird issue with back button handling.. whenever two sessions of the browser are opened to access the Oracle Applications, when changing something in one session, moving to the other session to change another thing and come back to the first session, even for completely different products and responsibilities, it gives me the stale data error as below. It seems like the session has been invalidated since I'm sure I haven't use the browser back button.
    Is this an expected behavior?
    ++Error: Cannot Display Page++
    ++You cannot complete this task because you accessed this page using the browser's navigation buttons (the browser Back button, for example).++
    ++To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.++
    Thanks,
    Eduardo

    Yes,that is the expected behaviour. In oaf http session is synchronised with the clicks, so on same desktop if u open two different apps sessions you will face the error, which ur facing now.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Using Back Button after Display Report

    Hi,
    Need an advice, i need to customize the standard BACK button after report had been displayed, trying to use AT USER-COMMAND, but still not avail..
    anyone can come with example will help me a lot.
    Thanks

    Hi badz lee,
    Just change the function code 'BACK' to 'ZBACK' in your custom GUI staus.
    Then write your own logic for the custmer needs.
    Hope this code helps.
    *& Report  ZVK_TEST
    REPORT  zvk_test.
    TABLES:ekko."for select option only
    SELECT-OPTIONS:s_ebeln FOR ekko-ebeln.
    DATA:lt_ekko TYPE TABLE OF ekko,
         lw_ekko TYPE ekko.
    START-OF-SELECTION.
      SET PF-STATUS 'STLI'."copy status STLI of program SAPMSSY0.
      SET TITLEBAR 'TITLE'.
      SELECT * INTO TABLE lt_ekko
        FROM ekko
        WHERE ebeln IN s_ebeln.
      LOOP AT lt_ekko INTO lw_ekko.
        WRITE:/ lw_ekko-ebeln,
                lw_ekko-bukrs,
                lw_ekko-bstyp,
                lw_ekko-bsart.
      ENDLOOP.
    END-OF-SELECTION.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'ZBACK'.
          PERFORM back_function."Your logic
        WHEN OTHERS.
      ENDCASE.
    *&      Form  BACK_FUNCTION
    FORM back_function .
      LEAVE PROGRAM.
    ENDFORM.                    " BACK_FUNCTION

  • Struts : checkbox status is unchanged if i use back button and uncheck it.

    hi
    I have a couple of checkboxes in a jsp page used in struts framework. I am using DynaValidatorForm as form bean with session scope, so it means the properties are mapped only in the struts-config.xml. the checkboxes' property names are checkbox1 and checkbox2.
    now the in the action class, i do:
    public ActionForward execute(ActionMapping mapping,
                ActionForm form,
                HttpServletRequest request,
                HttpServletResponse response)
         throws Exception {
              DynaValidatorForm dynaform = (DynaValidatorForm)form;
                                              System.out.println("1st checkbox value:"+ dynaform.get("checkbox1") );
                                              System.out.println("2nd checkbox value:"+ dynaform.get("checkbox2") );
    }Now if I check the first checkbox and press on submit button, the action class prints out:
    1st checkbox value: on
    2nd checkbox value: off
    this is as expected
    Now I click on the back button, then i uncheck the first checkbox and click on submit.
    the output is same as before, i.e.:
    1st checkbox value: on //wrong
    2nd checkbox value: off
    I expected it to be
    1st checkbox value: off
    2nd checkbox value: off
    That means if in a session if i check on checkbox 'on', and i go back and uncheck it, the uncheck is never stored, i.e. the property is never set to 'off' .
    Now if i check the second one, and click on submit, output is :
    1st checkbox value: on //expected off
    2nd checkbox value: on //correct
    now i go back and uncheck the 2nd checkbox (the first checkbox is already unchecked before), click submit and i get this output:
    1st checkbox value: on //expected off
    2nd checkbox value: on //expected off
    Please let me know what is happening. I expect the values of uncheck boxes to be 'off'
    thanks
    Tanveer

    The String[] thing is only useful when you have multiple checkboxes of the same name.
    What is the scope of the form bean? Request or session? If it's request, then that makes no sense. If it's session, then it does make sense because the same bean is being used, and as a result, the values are not really reset. And since HTML forms work by not submitting anything for unchecked checkboxes, then the server doesn't get anything in the request form data to know to change the checkbox to any other value.
    If you are using session scope, then make sure you have a good reason to. Otherwise, use request.

  • Text Click box not working when using back button on playbar

    I have an interstesting situation.
    I have a slide that has 2 text clickboxes (Slide B)
    Each text click box has an advanced action associated that controls what is displayed on the next slide (Slide C) . The click boxes and the advanced actions work just fine except for the following situation:
    The learner is on Slide C and uses the 'back button' on the playbar to return to the slide where the two text click boxes are (Slide B), then the click boxes don't seem to work.
    However if the learner goes back one additional slide, the slide before slide B (let's call that one slide A) and the continues from Slide A to Slide B, then the click boxes on Slide B work again.
    Can't figure out why that is?
    has anyone come across this issue before?

    Not for native Captivate interactive objects that suffer with this limitation.  There are interactive widgets such as the Infosemantics Event Handler that have preference options to Reset Success/Fail Criteria After Action.
    You could download a trial version and give that a go:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    You can attach this widget to any kind of screen object to make that object interactive.

  • Making sure you can't use back button to go back to a secure page

    I am wondering how I can go about ensuring that the user of my application can not use the back button to go back to a secure page after leaving it.
    What is the easiest way to implement this added security?
    Thank you.

    I think the easiest way would be to put in a javascript that opens a page of your choice (such as the home page of a site, for example) and another javascript that closes the browser window. You can get the new window script by clicking here. I'm not sure about the close browser window javascript, but I know that there is a close browser (kills the whole browser, and all the open windows) available here, but that may be a bit overkill. I think you could redo the javascript on the first one so it says something like close_window , but I'm new to javascript and wouldn't know for sure...
    Hope this helps!

  • Can't navigate using back button from web gallery linked to iweb page

    I have a web gallery that I enabled as a hyperlink to my iweb site. When I go to the gallery from a web page, I don't have any problem navigating to the gallery to view photos, but I am unable to navigate back to the web page using the "back" button. Instead I have to relaunch my web page in Safari; otherwise I would be "stuck" on the gallery unable to navigate to other web pages.
    Does anyone know how to fix this problem?

    Load the gallery in your browser and copy the URL.
    Create a text or image link and in the "Link" inspector select it as an eternal link.
    Paste the gallery URL into the box and check "Open link in new window".
    This way, the gallery window can be opened and closed but your original webpage will remain.

  • How to go to previous page in task flow using 'BACK' button in the browser?

    Hi...
    I have created system using ADF application that can detect 'BACK' button in the browser(e.g. firefox and google chrome).Everytime i click the 'BACK' button in the browser,it will prompt out message that ask user whether want to 'stay in the current page' or 'leave the page'. Once i click 'leave the page' it will take me to the login page.
    Is there any possibility for go back to previous page in task flow when user click on browser's back button? By the way, the task flow is in the page fragment.
    can anyone tell me how to do it?Need this step urgently..
    Thanks in advance.
    Edited by: 942376 on Jun 22, 2012 11:03 PM
    Edited by: 942376 on Jun 22, 2012 11:07 PM

    Can you send that code to have a look ? Share it on some site

  • Why does Firefox always ask me to approve a resend when using back button?

    Almost every time I press the back button Firefox presents a pop up to ask if I want to resend. How can I stop this from happening? I just want it to go back to the previous page. It is an irritating waste of time to have to click the resend button all the time.

    It is ok that we get an alert before resending post data. But we don't want resend anything when we click on back button. We just want to see the page as was shown last time. When we want to resend data we may hit refresh on the page.

  • FF always goes back to top of page after using back button. can i disable this?

    is there a way to disable FFox going to the top of the site after i use the back button?
    If i am on a site and i click on a link then i use the back button, it always goes to the top of the screen or site, then i have to scroll all the way down again every time.

    I also have had the same problem for months now. The updates do not fix the problem. Is there anyone out there with an answer?
    Sometimes out of the blue I will click somewhere on the itunes store screen and it will stop doing it but, I can't repeat it the next time I open Itunes. It always just wants to stay scrolled all the way to the top on every itunes store page.

Maybe you are looking for

  • Urgent !! -Please Help -Leaving action delimits IT 0017

    Hello Gurus, At the moment when you run the Action to make an employee a leaver in HR the Action delimits Infotype 0017 Travel Privileges.  This then means that if the Travel & Expense Department need to go and view expense claims for that employee t

  • Will not sync music to iphone

    I cant sync any music at all to my iphone the sync operation performs and goes through all of the steps but doesnt ever show any music going to the iphone. it also performs the sync really quick i seem to remember it taking about 5 mins if i synced a

  • How could I get the used rates of cpu and main memory

    I want to get the used rates of the cpus and the memeoy?How could I do? I write the code on linux and got them by read the file /proc/meminfo and /proc/loadavg. Is there the similar file under solaris? Further more , under the linux os, I could make

  • Inbound idoc  mess type:DESADV basic type: DELVRY03  Item text

    Hi all, W're having a inbound process to create inbound deliveries via IDOC. mess type:DESADV basic type: DELVRY03  We want to create a item text on the delivery via the IDOC.  Is this possible? I see that there's a segment E1TXTH9 - E1TXTP9  to put

  • Populating Line Manager (T750X, RESPO)

    Hello, I'm trying to determine why the Vacancies report (S_AHR_61015516) does not always include the Line Manager.  In a few cases it’s because the Superior position over the vacant position is also vacant.  However, in most cases, the Chief over the