JS problem w/ back button on browser

If anyone has a solution for this I would REALLY appreciate it!
Please go to this url and click on the first thumbnail:
http://www.atelierviollet.com/dev-2011/30/straw-marquetry.html
You'll see a large image and 3 thumbnails. When you click on a thumbnail it swaps out the large image. I did that using dreamweavers behaviors. Now if you click the back button on your browser and it doesn't return to the previous web page. The thumbnails put a "#" in the url so you have to click "back" multiple times.
I want it to function so that users can click the multiple thumbnails and then click "back" on their browser and return to the previous html page. Can anyone help?!
Thanks in advance

When used within a link like that, a return false kills the link.  In other words -
<a href="foo.html" onclick="return false">FOO</a>
This element will behave just like a link, but you can click on it until you are blue in the face and you won't go anywhere.
In fact, you *should* use this method on any *null* event links you have on any page that look like this -
<a href="#" onclick="..."
Make sense?

Similar Messages

  • How to Restrict/Disable back button in browser

    Hi guys,
    I am writing a enterprise web application using ADF. I am using JDeveloper 11.1.2.0.0.
    I want to restrict/ disable browser back/forward buttons in all my .jspx and .jsf pages.
    It was discussed in following thread as well.
    how to Restrict/Disable  back button in browser
    Can somebody give a way to do this please.
    Regards !
    Sameera

    Hi Sudipto,
    This is one of my .jspx pages. I wonder where should I put that javascript code. I have tried in several places and didn't work.
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document title="Registration Page" id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:pageTemplate viewId="/MyPageTemplate.jspx" id="pt1">
    <f:facet name="MainPageRegion">
    <af:group id="g1">
    <af:panelSplitter splitterPosition="454"
    inlineStyle="width:943px; height:200px;"
    id="FirstRN">
    <f:facet name="first">
    <af:panelGroupLayout layout="scroll" id="pgl1">
    <af:outputText value="Registration Details"
    inlineStyle="font-weight:bold;" id="ot1"/>
    <af:separator id="s1"/>
    <af:panelFormLayout labelAlignment="start" id="pfl1">
    <f:facet name="footer"/>
    <af:panelLabelAndMessage label="#{bindings.RegNum.hints.label}" id="plam1">
    <af:outputText value="#{bindings.RegNum.inputValue}" id="ot2"/>
    </af:panelLabelAndMessage>
    <af:selectOneChoice value="#{bindings.ProcType.inputValue}"
    label="#{bindings.ProcType.label}"
    required="#{bindings.ProcType.hints.mandatory}"
    shortDesc="#{bindings.ProcType.hints.tooltip}" id="soc1">
    <f:selectItems value="#{bindings.ProcType.items}" id="si1"/>
    </af:selectOneChoice>
    <af:selectOneChoice value="#{bindings.RegStatus.inputValue}"
    label="#{bindings.RegStatus.label}"
    required="#{bindings.RegStatus.hints.mandatory}"
    shortDesc="#{bindings.RegStatus.hints.tooltip}" id="soc2">
    <f:selectItems value="#{bindings.RegStatus.items}" id="si2"/>
    </af:selectOneChoice>
    <af:panelLabelAndMessage label="#{bindings.TotalUsdAmt.hints.label}" id="plam2">
    <af:outputText value="#{bindings.TotalUsdAmt.inputValue}" id="ot3">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.TotalUsdAmt.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.TotalPfiAmt.hints.label}" id="plam3">
    <af:outputText value="#{bindings.TotalPfiAmt.inputValue}" id="ot4">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.TotalPfiAmt.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage>
    </af:panelFormLayout>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="second">
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="pgl2">
    <af:outputText value="Creation Details"
    inlineStyle="font-weight:bold;" id="ot5"/>
    <af:separator id="s2"/>
    <af:panelFormLayout labelAlignment="start" id="pfl2">
    <f:facet name="footer"/>
    <af:panelLabelAndMessage label="#{bindings.CreatedByName.hints.label}" id="plam4">
    <af:outputText value="#{bindings.CreatedByName.inputValue}" id="ot6"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.CreationDate.hints.label}" id="plam5">
    <af:outputText value="#{bindings.CreationDate.inputValue}" id="ot7">
    <af:convertDateTime pattern="#{bindings.CreationDate.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage>
    <af:selectOneChoice value="#{bindings.RequestedBy.inputValue}"
    label="#{bindings.RequestedBy.label}"
    required="#{bindings.RequestedBy.hints.mandatory}"
    shortDesc="#{bindings.RequestedBy.hints.tooltip}" id="soc3">
    <f:selectItems value="#{bindings.RequestedBy.items}" id="si3"/>
    </af:selectOneChoice>
    <af:panelLabelAndMessage label="#{bindings.DepartmentName.hints.label}" id="plam6">
    <af:outputText value="#{bindings.DepartmentName.inputValue}" id="ot8"/>
    </af:panelLabelAndMessage>
    </af:panelFormLayout>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelSplitter>
    <af:panelSplitter inlineStyle="width:944px; height:132px;"
    splitterPosition="452" id="SecondRN">
    <f:facet name="first">
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="pgl3">
    <af:outputText value="Notes to Buyer"
    inlineStyle="font-weight:bold;" id="ot9"/>
    <af:separator id="s3"/>
    <af:inputText value="#{bindings.NotesBuyer.inputValue}"
    simple="true"
    required="#{bindings.NotesBuyer.hints.mandatory}"
    columns="#{bindings.NotesBuyer.hints.displayWidth}"
    maximumLength="#{bindings.NotesBuyer.hints.precision}"
    shortDesc="#{bindings.NotesBuyer.hints.tooltip}"
    rows="5" id="it1">
    <f:validator binding="#{bindings.NotesBuyer.validator}"/>
    </af:inputText>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="second">
    <af:panelGroupLayout layout="scroll"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="pgl4">
    <af:outputText value="Party Notes"
    inlineStyle="font-weight:bold;" id="ot10"/>
    <af:separator id="s4"/>
    <af:inputText value="#{bindings.PartyNotes.inputValue}"
    simple="true"
    required="#{bindings.PartyNotes.hints.mandatory}"
    columns="#{bindings.PartyNotes.hints.displayWidth}"
    maximumLength="#{bindings.PartyNotes.hints.precision}"
    shortDesc="#{bindings.PartyNotes.hints.tooltip}"
    rows="5" id="it2">
    <f:validator binding="#{bindings.PartyNotes.validator}"/>
    </af:inputText>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelSplitter>
    <af:spacer width="10" height="20" id="s5"/>
    <af:outputText value="Registration Lines"
    inlineStyle="font-weight:bold;" id="ot11"/>
    <af:separator id="s6"/>
    <af:commandButton text="Add Item"
    disabled="#{RegistrationBean.disableAddItemBtn}"
    action="CatalogPage" id="cb1"/>
    <af:commandButton text="Search Item"
    action="ItemLitsPage"
    disabled="#{RegistrationBean.disableSearchCataBtn}" id="cb2"/>
    <af:table value="#{bindings.RegLinesRegPageVO.collectionModel}"
    var="row" rows="#{bindings.RegLinesRegPageVO.rangeSize}"
    emptyText="#{bindings.RegLinesRegPageVO.viewable ? 'No rows yet.' : 'Access Denied.'}"
    fetchSize="#{bindings.RegLinesRegPageVO.rangeSize}"
    width="900" id="t1">
    <af:column sortProperty="ProductCode" sortable="false"
    headerText="#{bindings.RegLinesRegPageVO.hints.ProductCode.label}" id="c1">
    <af:outputText value="#{row.ProductCode}" id="ot12"/>
    </af:column>
    <af:column sortProperty="Qty" sortable="false"
    headerText="#{bindings.RegLinesRegPageVO.hints.Qty.label}" id="c2">
    <af:outputText value="#{row.Qty}" id="ot13">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.RegLinesRegPageVO.hints.Qty.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="UnitPrice" sortable="false"
    headerText="#{bindings.RegLinesRegPageVO.hints.UnitPrice.label}" id="c3">
    <af:outputText value="#{row.UnitPrice}" id="ot14">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.RegLinesRegPageVO.hints.UnitPrice.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="Currency" sortable="false"
    headerText="#{bindings.RegLinesRegPageVO.hints.Currency.label}" id="c4">
    <af:outputText value="#{row.Currency}" id="ot15"/>
    </af:column>
    <af:column sortProperty="UsdAmount" sortable="false"
    headerText="#{bindings.RegLinesRegPageVO.hints.UsdAmount.label}" id="c5">
    <af:outputText value="#{row.UsdAmount}" id="ot16">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.RegLinesRegPageVO.hints.UsdAmount.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="UsdPfiAmount" sortable="false"
    headerText="#{bindings.RegLinesRegPageVO.hints.UsdPfiAmount.label}" id="c6">
    <af:outputText value="#{row.UsdPfiAmount}" id="ot17">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.RegLinesRegPageVO.hints.UsdPfiAmount.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="UsdTotalAmount" sortable="false"
    headerText="#{bindings.RegLinesRegPageVO.hints.UsdTotalAmount.label}" id="c7">
    <af:outputText value="#{row.UsdTotalAmount}" id="ot18">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.RegLinesRegPageVO.hints.UsdTotalAmount.format}"/>
    </af:outputText>
    </af:column>
    </af:table>
    </af:group>
    </f:facet>
    <f:facet name="ActionButtonBarRegion">
    <af:group id="g2">
    <af:commandButton actionListener="#{bindings.Commit.execute}"
    text="Save"
    disabled="false" id="cb3">
    <af:setActionListener from="#{false}"
    to="#{RegistrationBean.disableAddItemBtn}"/>
    <af:setActionListener from="#{false}"
    to="#{RegistrationBean.disableSearchCataBtn}"/>
    <af:setActionListener from="#{bindings.RegistrationId.inputValue}"
    to="#{pageFlowScope.regToEdit}"/>
    </af:commandButton>
    <af:commandButton text="Home" action="HomePage" immediate="true" id="cb4"/>
    </af:group>
    </f:facet>
    <f:attribute name="PageTitle" value="Registration Page"/>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Regards !
    Sameera
    Edited by: samme4life on May 17, 2012 2:39 AM
    Edited by: samme4life on May 17, 2012 2:42 AM

  • Display data when Back button of Browser is pressed

    Hi All,
    Thanks for Reading my query.
    I have an issue with display of data in Jsp page:
    I have 2 JSP pages, wherein i entered data in page1 and clicked submit to see page2.Now i pressed back button of browser and im able to see data which i entered.I require the feilds in page1 to be cleared when back button is pressed in page2.Could any one please tell me how to handle this issue.
    Please help me out.
    cheers,
    sharath

    you can use the HTML header set pragma - no-cache expires - 0 and cache-control - no cache property so whenever you will press back button of browser it will show the message page has been expired. You can find the proper syntax on any HTML site

  • Urgent ...problem with back button in my browser

    hello,
    i created one login.jsp file and wellcome.jsp file and one logout.jsp file and one login controleservlet.If i login once i got wellcome page.In that i have logout button, and if i will click that button
    it will display logout successfully message on browser.my requirement is that after i will get logoutsuccessfully message i want to avoid back button in my browser.if i click back button then it will display an error message like "your session expire".
    please send the reply as soon as possible.

    I'm not certain of whether you want to disable the back button in the user's browser or you want to avoid this error message...
    Assuming you want to avoid the error message entirely, I would set a variable in the session scope when the user logs in and any time you don't see that when you process a request in your servlet, redirect the user to the login page.
    If you're looking to simply disable the back button in the browser, beyond asking the user nicely not to click the back button, good luck to ya. :)
    Hope this helps!
    - Kyle

  • Problem with Back button in Top Level Navigation

    Hi all,
    We are facing a minor problem with the Back button in the Top Level Navigation in Portal. This button is present under the Roles and Worksets menu along with the History, Forward, and Add to Portal Favorites links.
    The problem is faced when we have some worksets under a single role. While browsing accross these worksets by randomly clicking on them, we wish to use the Back button as well to go back to the previous workset. But when we use the Back button, the Detailed Navigation panel in the last workset is not retrieved.
    I will explain with the System Administration Role. I open the worksets under this role in the following manner:
    First I open Transport;
    Next I open Portal Display;
    Next I open System Configuration;
    Now I wish to go back to Portal Display workset by clicking on the Back button. But when I do this, although the Portal Display workset opens up, but I cannot see the Detailed Navigation Panel. See the screenshot below:
    http://img399.imageshack.us/my.php?image=backbuttonkg6.jpg
    Please help me in solving this issue.
    Regards,
    Ankur

    I think I have found a resolution, although not very pleasant:
    [Note 950426 - Portal Back button not working correctly|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_ep_pi/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393530343236%7d]
    Regards,
    Ankur

  • Problem Using Back Button in IE When Viewing PDFs with Acrobat Pro

    I have an administrative page on my website where I view PDFs of form data submitted by my clients.  It has worked fine all along, but suddenly a problem.  When I view a PDF, I could always hit the back button and it would take me to the Administrative Interface (of all of my forms).  BUT now if I hit the back button it takes me right back to the same form (page) I'm viewing.  Below if the Administrative Interface....It may be hard to see but on the left side is a link for the PDFs of available forms.  Clicking on the link opens the form...but again when I then click back I'm supposed to return to this administrative page...but instead back viewing the exact same form.  HELP!

    How do I do the PDF View Previous if the PDF is opening in a browser window in IE?

  • Page has expired message on clickiong the "Back" button on Browser

    Hi ,
    I get Page has expired message on clicking the "Back" button in the browser. I want the user to get directed to the previous page with out viewing this message.
    I am using tomcat 5.0 web server and struts framework for my application.
    Kindly help me in this regard.

    me too i am facing the same problem,
    what i found is:
    1.you can use get instead of post method action.
    2 remove the no cache from your system and make the system caching normally.
    any one has any other solution?

  • 1.) Back button on browser is covered. 2.) Bookmarks aren't saving 3.) Bookmarks also lost from prior update

    I updated to Mozilla 3.6.6.
    1.) The back button/arrow is now shaded and doesn't allow me to browse back.
    2.) My bookmarks from my previous Firefox have disappeared and the help info on Mozilla's site is NOT of any use.
    3.) Since the update, I can't get any bookmarks to save!
    Please help as I've used Firefox for years and no longer can.
    Thanks.

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    * http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox
    * http://kb.mozillazine.org/Lost_bookmarks

  • Multiple Video Tracks Problem with Back Button

    Hi,
    I am making a DVD that has to contain 16 films. Unfortunately the videos don't have the same aspect ratios, so I have to create one video track for each film.
    When the DVD is started they are supposed to play all in a row (no menus). So the end action for each track is to jump to the first chapter of the next track.
    My problem is that once I am playing, say, track 5, there is no way to get back to track 4 with the "back button" on the remote control.
    Do I have to script this? And if yes, how?

    That is exactly my problem. Chapter markers only work on the same track, for some reason you can't jump to a chapter in a different track. What I need is a solution to jump from a track to the previous one when pressing the back button on the remote.
    As I wrote before I can't use just one track for all films, because they have different aspect ratios.
    Message was edited by: schmiddl

  • Servlet Problem with Back Button on IE

    Hello All:
    This is a weird problem I am facing on IE.
    I have a servlet which is invoked by the doGet() method. This servlet
    has a FORM which has few fields. One of the field has a hyperlink which
    makes a window.open() call for Onclick. This pop-up allows a user to
    search for some value. The result of the search is displayed in a
    SELECT box. Based on the value selected in this SELECT box, the field
    in the servlet that called this pop-up gets populated. After this is
    done, I close this pop-up & click on the proceed button of the FORM
    (using POST) which takes us to another servlet. Then when I click on
    the back button, the fields on the form which were populated are gone.
    I have made the following analysis:
    (i) On clicking the back button, a request is sent to the server.
    (ii) It works on FireFox & not on IE
    (iii) If I do not use the hyperlink to bring the pop-up, and then I
    click on proceed and then back, the fields do not vanish.
    (iv) I tried using http://www.google.com to the call on window.open().
    Does not help
    (v) The very action of using pop-up by clicking on it causes this
    problem
    (vi) I tried replacing the hyperlink with a button. It did not work.
    Any help or tips in this regard would be helpful.
    Thanks in advance.
    Mahesh

    I dont know how you can post on the back button, and am a bit confused as to why you need to go back, you would normally want to go forwards :).
    What I would do is have the same servlet handle both cases.
    I would make 1 servlet SUBMIT TO ITSELF.
    You may have to pass an additional parameter to indicate whether this is the initial / first request, or a subsequent request where the servlet has re-submitted back to itself.
    If you want to disable the back button you can use javaScript
    <script language="JavaScript" type="text/JavaScript">
    <!--
    javascript:window.history.forward(-1);
    -->
    </script>
    I used this when I found that users could use the back button and re-submit when I didnt want them to, kind of the opposite of your problem!

  • BDC problem with back button

    Hi all,
    i have idoc number in alv output.when the user clicks on this ,it should take the control to BD87 transaction with idoc number getting transferred there .also BD87 screen has changed on select option where the default is sy-datum .i need to clear this along with transfer of idoc number.
    i tried using submit statement,but its not working.
    then i used call transaction in error mode to acheive this functionality and i was sucessful.
    beloe is my code:
       REFRESH bdcdata.
            READ TABLE t_out INTO wa_out INDEX rs_selfield-tabindex.
            DATA: lv_mode(1) TYPE c VALUE 'E'.
            PERFORM bdc_dynpro      USING 'RBDMON00' '1100'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'SX_UPDDA-HIGH'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=CRET'.
            PERFORM bdc_field       USING 'SX_DOCNU-LOW'
                                          wa_out-docnum.
            PERFORM bdc_field       USING 'SX_CRETI-LOW'
                                          '00:00:00'.
            PERFORM bdc_field       USING 'SX_CRETI-HIGH'
                                          '00:00:00'.
            PERFORM bdc_field       USING 'SX_UPDDA-LOW'
            PERFORM bdc_field       USING 'SX_UPDDA-HIGH'
            PERFORM bdc_field       USING 'SX_UPDTI-LOW'
                                          '00:00:00'.
            PERFORM bdc_field       USING 'SX_UPDTI-HIGH'
                                          '00:00:00'.
            PERFORM bdc_call_transaction USING 'BD87' lv_mode 'N'.
    So,the control directly takes me inside the BD87 screen just after the screen which we get after execting the selection screen of bd87 with idoc details
    the problem is whn i click on back button or F3,the control does not take me back to the ALV output screen rather it takes me to the selection screen of BD87.
    So,any way out to solve the back button problem???
    Thanks

    Hi Kunal,
    That's a really tough report to handle by submit.
    You can try to call the transaction in error mode and place one moment to force the screen to appear. Then complete the BTCI with the last steps to exit the selection screen.
    Try it like this:
    REFRESH bdcdata.
    READ TABLE t_out INTO wa_out INDEX rs_selfield-tabindex.
    DATA: lv_mode(1) TYPE c VALUE 'E'.
    PERFORM bdc_dynpro USING 'RBDMON00' '1100'.
    PERFORM bdc_field USING 'BDC_CURSOR' 'SX_UPDDA-HIGH'.
    PERFORM bdc_field USING 'BDC_OKCODE' '=CRET'.
    PERFORM bdc_field USING 'SX_DOCNU-LOW' wa_out-docnum.
    PERFORM bdc_field USING 'SX_CRETI-LOW' '00:00:00'.
    PERFORM bdc_field USING 'SX_CRETI-HIGH' '00:00:00'.
    PERFORM bdc_field USING 'SX_UPDDA-LOW' ''.
    PERFORM bdc_field USING 'SX_UPDDA-HIGH' ''.
    PERFORM bdc_field USING 'SX_UPDTI-LOW' '00:00:00'.
    PERFORM bdc_field USING 'SX_UPDTI-HIGH' '00:00:00'.
    *btci is interrupted in presentation of the result screen
    *last steps to exit selection screen
    PERFORM bdc_dynpro   USING 'RBDMON00' '1100'.
    PERFORM bdc_field       USING 'BDC_OKCODE' '/ECBAC'.
    PERFORM bdc_field       USING 'BDC_CURSOR' 'SX_UPDDA-LOW'.
    *use error mode in call transaction
    CALL TRANSACTION 'BD87' USING bdcdata MODE 'E'.
    *PERFORM bdc_call_transaction USING 'BD87' lv_mode 'N'.
    hope it helps,
    Edgar

  • Problem with back button when using task flow to navigate through pages

    I am using unbounded task flow to navigate through my pages
    in page2 I added back button so I can back to page1 using the action A2
    task flow 1
    page 1 -----A1-------> page 2
    page2 ----A2--------> page1
    the problem when I used page2 in another task flow
    task flow 2
    page 3 -----A3------> page2
    page 2 -----A4 -----> page3
    here when I click on back button he take me to page1
    how can I back to page3 ???????

    For this you have to know where the user came from when he navigated to page2. You can e.g. store the back target in a variable in the session or pageflow scope (when the user navigates from page1 or page3 to page2), then you bind the back button of page 2 to the stored variable.
    Timo

  • Problem with back button  with myfaces/jsf

    Hi guys
    i have very strange kind of problem , i have a page where i am shwing tabular data with data scroller , thats work fine , in this tabbular data we are shing user infomration , and a link on user name ti see his details , this link works fine , and take user to user details page ,
    but from that page if user press back button , and reaches back to tabbular data page , in this page if user select any link , page reloads , and stay there , and after reloading page if user select any link then it works
    Any one geting this kind of preoblem , hope i am not alone
    please help me out
    X-preet

    Hi Luisa,
    1 .Create 2 views  View1 and View2
    2. Place buttons on both the views and create actions for both in view1 and view2
    3.Create outboundplug from View1 to View2.(Navigation link also)
    4.Create outboundplug from View2 to View1.(Navigation link also)
    5. In View1 button action fire the outboundplugto View2
    6. In View2 button action fire the outboundplugto View1.
    Regards, Anilkumar

  • Problem in Back button in ALV

    Hi All,
    I have developed ALV report using grid layout.The user wanted that when he execute the report and click on refresh button the report data gets refreshed as report output is based on Z table and same Z table is updating through RFC interface continously.So this functionality is working for me but problem is that after click refresh 2 to 3 times then to come back to selection screen he has to click back button same number of times as refresh button click.
    Could anybody help how I can come back to selection screen on single click after click refresh button.
    Thanks&Regards,
    Sachin

    Hi Sachin,
    This is what Madhukar meant
    On refresh button I am again fetching data and calling fieldcatlog and displaying report.
    Do not call the fieldcatalog and function module again.
    Get the new data into your internal table in user command event &
    Just add refresh = 'X' in your user command event.
    For example
    FORM f_user_command USING UCOMM LIKE SY-UCOMM v_selfld TYPE slis_selfield.
    if sy-ucomm = 'REF'.
    PERFORM get_data.
    selfld-refresh = u2018Xu2019.
    endif.
    ENDFORM.
    Kesav

  • Navigation problem with back button in module pool

    Hi everyone,
    I have a scenario in module pool programming in which i need help.
    I have an i/p filepath screen where the user inputs his/her file and clicks on validate button provided in the toolbar.
    After that it goes to the next screen which displays all the messages(error/success).
    After I click on Execution button it goes to next screen displaying all the created data.
    Now when I click on back button I want it to go to the i/o filepath screen.
    Please give me your comments on this.
    Leave to screen XXXX is giving me dump so any other options plz let me know.
    Thanks in advance.

    Hi Amit,
       Lets say you have 3 screens 100, 200 and 300. screen 100 has you input file path and 200 shows the message and 300 shows the created data.
    Now in PAI of 300 write as below.
    IN the screen as below
    MODULE USER_COMMAND_300_EXIT AT EXIT COMMAND.
    In the include as below
    MODULE USER_COMMAND_300_EXIT.
    CASE sy-ucomm.
    WHEN 'BACK'.   " OK code for BACK button.
    CALL SCREEN 100.
    WHEN 'CANCEl'.
    LEAVE TO SCREEN 0
    ENDCASE.
    ENDMODULE.
    Please revert if you still face problems.
    Regards,
    Praveenkumar T

Maybe you are looking for

  • How to display the content of a file in the portal?

    Hey guys, could anyone help? I just created a page which includes two iView, one is KM Navigation iView to display a certain repository, while the other is for displaying the content of a certain file I click in the navigation iView. And now the prob

  • How to select drop down based on country selected in one field

    Dear Experts, I am facing a problem, I have a table in webdynpro, where there are two columns namely Country and its Subtype. here both the fields are drop down by key type. when i am selecting Country field from drop down. I am getting its subtype c

  • Oracle Parameter (SGA_MAX_SIZE / SGA_TARGET)

    Hello together, since yesterday we have a new oracle database on X64 (64BIT on Windows) with SAP R/3 4.7. The server have 24GB ram and 2x quad Core CPU. How can give me a good value for this parameters (for oracle) SGA_MAX_SIZE SGA_TARGET I don't kno

  • How to check four cleared items in single assignment number

    Sir, I have passed Entry in F-28 for  payment  received against four bills in single assignment number. Now I want to check four bills in single assignment number in cleared item. Pl advice. Ajit Dutta Guwahati Airport

  • How to recover from failed 12c agent deployment

    Greetings, I am in the process of upgrading to OEM 12c using the 2-System method and I am slowly making progress. Using the OEM 12c Upgrade Console I was able to get the Deploymnet/Configuration step to succeed but the Check Agent Readiness Step fail