Back Button Breaks My Layout

Hi All,
I am having a problem with the browse back button, from searching the forums I gather that this is a common problem but I can't find any references to my particular problem?
Anyway, my problem is that when a user clicks the back button the layout of my page is broken. everything seems to operate correctly but table widths are changed and images are shifted. The results are pretty consistent in that it behave the same way for every back button press, ie. the same tables and iamges get shifted?
Any thoughts?
I am using Jdeveloper 10.1.3.4, Oracle ADF Faces components and mostly <afh:tableLayout> for my layout which is a pain by the way, why can't I just have a simple <div>...
Thanks
Jeremy

salsipius wrote:
Hi All,
I am having a problem with the browse back button, from searching the forums I gather that this is a common problem but I can't find any references to my particular problem?Haven't seen this before though. Can you post links to the related topics in the forums?
I am using Jdeveloper 10.1.3.4, Oracle ADF Faces componentsSorry, no experience with it. All I know is that Oracle also has its own forum. Consider reposting this question over there if you don´t get much more response here. At least I haven´t seen any Oracle guys walking around here lately.
and mostly <afh:tableLayout> for my layout which is a pain by the way, why can't I just have a simple <div>...You can just use HTML in a JSF page? Or are you still sticking into JSF 1.1 or older?
Since 2006 there was JSF 1.2 which has a changed view state management and just allows plain vanilla HTML in the JSF page. Before in JSF 1.1 or older you had to nest plain vanilla HTML in a <f:verbatim> tag to let it been taken in the JSF component tree. Besides, since JSF 1.2 the h:panelGroup got a new 'layout' attribute which you can set to "block" to let it render a <div> instead of a <span>.

Similar Messages

  • Using "back" button breaks sample "play" buttons

    In iTunes 10.2.2 Mac, the sample "play" buttons in the iTunes Store stop working if you hit the "back" button to return to previous pages (unless you force them to reload).
    Is there a simple way to submit a minor bug report like this, when I otherwise do not really need specific help or a response?

    It seems that in IE9 if you switch to compatibility mode, the problem goes away. Switch back it reappears.
    I have a website about to be released that has this problem throughout. Please let me know if there is a solution.
    Thanks,
    Dan

  • Browser 'back' button breaks flash file (firefox)

    Hey!
    I've run into a frustrating problem. I've created a web app for a customer (link here), but whenever I leave the page using one of the map pins and try to return using the back button - the map pins become unresponsive and the hover-state freezes. If I reload the page it works again.
    I've only encountered this problem in Firefox, and I believe that it's got something to do with the firefox focus. If I click outside the flash movie, deselecting the flash selection box - the buttons become responsive again.
    I've tried looking through the FAQ and it seems as if I've got the exact same problem as these users;
    http://forums.adobe.com/message/4014321
    http://forums.adobe.com/message/4121173#4121173
    There's a messy workaround using jquery to select another object on page reload but that doesn't look very professional, my customer's also supposed to integrate the .swf with a cms and I'm not sure if I can get it to work.
    I use Firefox 15.0.1 and Flash Player 11.4
    Any pointers would be very appreciated
    - Johan

    FF 15.0.1 with the latest FP installed and my back button works perfectly fine. The pins do not require me to reload the page to work.
    It's not uncommon for a browser to require a plugin like flash to be "activated" for focus. Click doesn't typically suffer from this (and isn't for me). Keyboard however, well that makes sense. The ability to auto-activate and steal keyboard focus would introduce usability and security issues.

  • I hate the update of the bar. It has totally done away with being able to skip back several places in the browser; now I can only click the back button and go back one page at a time. I otherwise hate the new layout, too. How do I undo this?

    I can't choose a specific page to skip back to but must click the back button over and over to get back to where I want to skip to. The little headings "most visited," "getting started," "Youtube," etc. have changed. They look more colorful, but I hate how the home button is clear over to the right side of the page, etc. What was wrong with the way everything was before? I HATE this new update, and I didn't even want it.

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • How can i create forward and back buttons for a dreamweaver slideshow?

    Hi
    I am an illustrator attempting to create a website in dreamweaver (basically it will be an online portfolio). I would like to have a box/slideshow with images of my work that someone can browse through by clicking 'next' and 'back' buttons. Does anyone know how to do this? I have been trying to find out how to do this for ages - i dont want to use flash if possible as i am worried about making the site too complicated. I know how to make swap image thumbnails, but i think my site would be more user friendly (and look more professional) if i could have next and back buttons. Would this involve complicated css code (which scares the life out of me!) or is there a relatively easy way to do it? I have got two 'dreamweaver for idiots' books, but neither of them cover this topic. Can anyone help?

    If you are using CS4, there is a Command to create a Web Album... this does it automatically for you.
    Otherwise, you can create this manually.  Say you have 3 pages,
    page1.html  (is the index page of the album)
    page2.html
    page3.html
    Therefore, using ordinary text links
    Home would link to page1.html
    Previous would link to page3.html
    Next would link to page2.html
    You would need to make adjustments naturally to each page as you move along with the gallery pages, changing the previous and the next links as needed.  Below is a a basic example of setting up the links in a simple table structure.  You would also then style the table layout as you see fit - yes, using css preferably  :-)
    <table>
    <tr>
    <td><h2>MY GALLERY OF PHOTOS</h2>
    <a href="page3.html">Previous</a> | <a href="index.html">Home</a> | <a href="page2.html">Next</a>
    </td>
    </tr>
    <tr>
    <td>
    <br>
    <a href="../images/img_2401_jpg.jpg"><img src="../images/img_2401_jpg.jpg" border=0></a><br>
    </td>
    </tr>
    </table>
    Here's an article on creating an album using the DW Command I mentioned earlier. You could create the album and then copy and paste the code into a current page if you've already designed on.,... not too difficult, I just tested it.  You do however, need to have Fireworks to process the images.
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WSc78c5058ca073340dcda91 10b1f693f21-7ad1.html
    You could also check out the Lightbox effect which is very popular:
    http://www.lokeshdhakar.com/projects/lightbox2/
    Or do a google search for 'jquery'.  There are different album effects using that framework as well.
    Hope some of this helps  :-)
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    Book: Ultimate CSS Reference
    http://www.sitepoint.com/launch/005dfd4/3/133
    http://twitter.com/nadiap

  • In the new Firefox, I have no back button, no "most frequently visited" and there is no longer an option to save tabs when I close.

    Many features have disappeared. There is no back button to go to the previous page. There is no "most frequently visited" icon on the toolbar. I am not asked if I want to save all my tabs when I close firefox. There is no recently bookmarked tab on the toolbar. Everything takes longer to get to. The tabs don't automatically stay open.

    Firefox 4 saves the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    You can use "Firefox > History > Restore Previous Session" to get the previous session at any time.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.
    Another possibility is to use:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"
    Do you still have the Bookmarks Toolbar visible?
    * [[Restore the default Smart Bookmarks Folders]]
    Check that you still have the "Bookmarks Toolbar items" placed on the Bookmarks Toolbar
    If the menu bar is hidden then press F10 or hold down the Alt key, that should make the "Menu Bar" appear
    Make sure that you have the Bookmarks Toolbar and the Navigation Toolbar visible: "View > Toolbars"
    Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    * Check in "View > Toolbars > Customize" that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    * If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the Customize window onto the Bookmarks Toolbar
    * If you do not see the "Bookmarks Toolbar items" or other items that are missing in the toolbar palette or on a toolbar then click the "Restore Default Set" button
    See also:
    * http://kb.mozillazine.org/Toolbar_customization

  • Back Button Doesn't Work on Some Websites

    How come my Back Button Doesn't Work on Some Websites? It just keeps redisplaying the same page over and over. Example:
    http://abclocal.go.com/wabc/front

    Back button behaviour can be pretty wierd. I usually use the keyboard combination, but for some reason it doesn't work on PDF's and I have to end up using the graphical back button.
    There are some websites out there that for some reason or another break the Back button's behaviour. Sometimes I have to hold down the mouse button to get the back button menu in order to work around that problem.
    In another case there was this page in Amazon that wouldn't allow me to go back to. Everytime I went to that page the browser to automatically kick me to the next page. I had to disable javascript to work around that problem.

  • ALV problems, trying to click Back button, Filtering, download (Excel)

    Hi
    When I try to click Back button, Filtering or download (Excel) on ALV grid this dumps appear:
    Runtime Error          MOVE_TO_LIT_NOTALLOWED_NODATA
    Error analysis
        The program tried to assign a new value to the field "<L_BOX>" even though
        it is protected against changes.
        The following objects are protected:
        - Character or numeric literals
        - Constants (CONSTANTS)
        - Parameters of the category IMPORTING REFERENCE for functions
          and methods
        - Untyped field symbols to which a field has not yet been assigned
          using ASSIGN
        - TABLES parameters if the corresponding actual parameter is protected
          against changes
        - USING reference parameters and CHANGING parameters for FORMs if
          the actual parameter for this is protected against changes
        - Field symbols if the field assigned using ASSIGN or ASSIGNING
          is protected against changes
        - External write accesses to READ-ONLY attributes
        - Key components of lines in internal tables of the type HASHED or
          SORTED TABLE
          SORTED TABLE.
    Line  SourceCde
    681 * set/unset <box> of all items
    682     if l_ucomm eq '&SAL' or l_ucomm eq '&ALL'.
    683       if l_ucomm eq '&SAL'.
    684         loop at t_outtab.
    685           l_tabix = l_tabix + 1.
    ->>>           <l_box> = ' '.
    687           modify t_outtab index l_tabix.
    688         endloop.
    689       endif.
    690       if l_ucomm eq '&ALL'.
    691         loop at t_outtab.
    692           l_tabix = l_tabix + 1.
    693           <l_box> = 'X'.
    694           modify t_outtab index l_tabix.
    695         endloop.
    696       endif.
    What I must check on my ALV settings:
    ch_alv_layout-zebra          = 'X'.
      ch_alv_layout-box_fieldname  = 'SELE'.
      ch_alv_layout-box_tabname    = v_nametab.
      ch_alv_layout-reprep         = 'X'.
      ch_alv_layout-info_fieldname = 'COLOR'. "infofield for listoutput
      ch_alv_layout-colwidth_optimize = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-repid
          is_layout          = ch_alv_layout
          it_fieldcat        = ch_alv_fieldcat
          it_sort            = ch_alv_sortinfo
          i_save             = 'X'
          it_events          = ch_slis_event
        TABLES
          t_outtab           = p_control
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
    Thanks in advance.

    ch_alv_layout-info_fieldname = 'COLOR'. "infofield for listoutput
      ch_alv_layout-colwidth_optimize = 'X'.
    try commenting the above values.and also check the Fieldcatlog.
    Check the issue similar issue was resolve by checking catalog and layout:
    [ALV Issue solution|Re: Problem when export ALV.]
    Regards,
    Gurpreet

  • Report S_PL0_86000030 - G/L Account Balance - Back button Issue

    Hi
    We are on ECC 5.0 and when we click on the BACK button, from the report display it straight way goes back to SAP standard  screen (both when we save or do not). It does not go back to the selection screen of the report.
    I searched OSS and could not find any possible resolution.
    Could anybody know how this can be fixed? Any patch?
    Thanks,
    Surajit

    This can be achieved by clicking on Characterstic Key & Name - both option under Settings --> Characterstic Display (you can get these options if you run the report under Classical Drilldown mode)
    Also if you can just change the same thing in the report layout - it will be permanent - Transaction FGI0.
    Thanks,
    Surajit

  • Having issues with longMessage and back button usage

    Hello,
    I have part of an app that consists of 2 pages. The first page is a set of checkboxes and an Analyze (submit) button. when the user hits Analyze, I commit the transaction and forward to the second page which displays the checkboxes they checked and some other information regarding those choices. If a user wants to change their answers, they use the browser's back button and change their choices, then click Analyze again. This is working fine.
    I now want to add a longMessage to each checkbox above with some additional information about each choice. I've setup these up and they work fine; the dialog box launches just fine when they click the little (i) icon.
    So that's the status quo; here's my problem:
    Scenario
    1. User clicks one of the longMessage icons
    2. clears that box by clicking OK
    3. then hits Analyze to progress to the second page
    4. now user hits browser's Back button to go back to questions
    5. PROBLEM
    At this point, all my checkboxes are blank. If I try to re-check one and hit Analyze, I get an error stating "No current row for View (XXXLProcNavVO1)"
    If I don't ever click a longMessage icon, everything works fine. I can only replicate this if I follow the exact steps in the scenario.
    So what is wrong? Why am I losing my current row in my VO when I use the longMessage?
    I've included my CO from page 1 for reference below.
    Thanks!
    /*===========================================================================+
    | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
    | All rights reserved. |
    +===========================================================================+
    | HISTORY |
    +===========================================================================*/
    package lanl.oracle.apps.icx.por.req.webui;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
    //import oracle.apps.fnd.framework.webui.OADialogPage;
    import oracle.jbo.domain.Number;
    import oracle.jbo.Row;
    import oracle.apps.fnd.framework.OARow;
    * Controller for ...
    public class LANLProcNavCO extends OAControllerImpl
    public static final String RCS_ID="$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("XXXLProcNavVO1");
    if (!pageContext.isBackNavigationFired(false))
    // We indicate that we are starting the create transaction (this
    // is used to ensure correct Back button behavior).
    TransactionUnitHelper.startTransactionUnit(pageContext, "createProcNavForm");
    // This test ensures that we don't try to create a new doc if
    // we had a JVM failover, or if a recyled application module
    // is activated after passivation. If these things happen, BC4J will
    // be able to find the row that you created so the user can resume
    // work.
    if (!pageContext.isFormSubmission())
    am.invokeMethod("initPVO");
    String stringReqHeaderId = pageContext.getParameter("REQ_ID");
    Number defaultReqHeaderId = null;
    try
    defaultReqHeaderId = new Number(stringReqHeaderId);
    catch(Exception e)
    throw new OAException("ICX", "XXXL_INVALID_NUMBER");
    // set this value for subsequent form buttons pressed
    vo.setWhereClauseParams(null);
    vo.setWhereClauseParam(0,defaultReqHeaderId);
    vo.executeQuery();
    if (vo.getRowCount() == 0)
    vo.insertRow(vo.createRow());
    Row voRow = (Row)vo.first();
    voRow.setNewRowState(Row.STATUS_INITIALIZED);
    voRow.setAttribute("ReqHeaderId",defaultReqHeaderId);
    OAViewObject pvo = (OAViewObject)am.findViewObject("LANL838cPVO1");
    OARow prow = (OARow)pvo.first();
    prow.setAttribute("lReqID",stringReqHeaderId);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("XXXLProcNavVO1");
    // Pressing the "Apply" button means the transaction should be validated
    // and committed.
    if (pageContext.getParameter("Analyze") != null)
    // Simply telling the transaction to commit will cause all the Entity Object validation
    // to fire.
    // Note: there's no reason for a developer to perform a rollback. This is handled by
    // the framework if errors are encountered.
    am.invokeMethod("apply");
    // Assuming the "commit" succeeds, navigate back to the prev page with
    // and display a "Confirmation" message at the top of the page.
    TransactionUnitHelper.endTransactionUnit(pageContext, "createProcNavForm");
    // OAException confirmMessage = new OAException("XXXL", "XXXL_PROCNAV_CREATE_CONFIRM", null, OAException.CONFIRMATION, null);
    // Per the UI guidelines, we want to add the confirmation message at the
    // top of the search/results page and we want the old search criteria and
    // results to display.
    // pageContext.putDialogMessage(confirmMessage);
    vo.clearCache();
    vo.reset();
    pageContext.forwardImmediately("OA.jsp?page=/lanl/oracle/apps/icx/por/req/webui/LANLSupplDocSummaryPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    else if (pageContext.getParameter("Cancel") != null)
    am.invokeMethod("rollbackDoc");
    // Indicate that the Create transaction is complete.
    TransactionUnitHelper.endTransactionUnit(pageContext, "createProcNavForm");
    pageContext.forwardImmediately("OA.jsp?page=/oracle/apps/icx/por/req/webui/ShoppingCartPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    }

    Hi
    in this scenarion control is not going inside the condition
    if (vo.getRowCount() == 0) and therefore VO is not getting initialized
    why u are counting the row of VO to initialize the VO ,if possible pls remove this condition check ,problem will be solved .pls let me know in case of any issues.
    thanx
    Pratap

  • Back button doesn't work in https google search

    Google search seems to have made https mandatory when logged in. This breaks history and the behaviour of the back button from the results page back to the google search results page. I think that this is because google, upon clicking on a result link, redirects to the results page via an intermediary, obfuscated url, which causes the back button to also redirect back to the result page. This is exactly the same problem as described here: https://support.mozilla.org/en-US/questions/892406?e=es&as=aaq for which there is no solution, as google doesn't allow us to disable https anymore. BTW, this behaviour is not replicted on chrome, i.e., back button works correctly in spite of the intermediate redirecting page.

    Hi,
    You can try the [https://addons.mozilla.org/en-US/firefox/addon/noscript/?src=search NoScript] add-on which may help.

  • How to work with Back Button of Web Browser for Flex Application

    Hi...........
    I am developing a Web Site for that I have created 10 MXML Components for 10 links I am using ViewStack in Home Page and I added the 10 components to this ViewStack and I am using 10 links for 10 Components
    My problem is that When I am going through links it's fine but in my Web Browser I am not getting Back Button enabled for previous page to go
    Please help me.............................. 

    Hi,
    Here a Flex3 example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
         layout="absolute"
         creationComplete="initApp()">
         <mx:Script>
              <![CDATA[
                   import mx.events.BrowserChangeEvent;
                   import mx.managers.IBrowserManager;
                   import mx.managers.BrowserManager;
                   import mx.utils.URLUtil;
                   public var browserManager:IBrowserManager;
                   private function initApp():void {
                        browserManager = BrowserManager.getInstance();
                        browserManager.addEventListener(BrowserChangeEvent.BROWSER_URL_CHANGE, parseURL);
                        browserManager.init("", "Shipping");
                   private var parsing:Boolean = false;
                   private function parseURL(event:Event):void {
                        parsing = true;
                        var o:Object = URLUtil.stringToObject(browserManager.fragment);
                        if (o.view == undefined)
                             o.view = 0;
                        tn.selectedIndex = o.view;
                        browserManager.setTitle((tn.selectedIndex == 0) ? "Shipping" : "Receiving");
                        tn.validateNow();
                        var details:Boolean = o.details == true;
                        if (tn.selectedIndex == 0)
                             shipDetails.selected = details;
                        else
                             recvDetails.selected = details;
                        parsing = false;       
                   private function updateURL():void {
                        if (!parsing)
                             callLater(actuallyUpdateURL);
                   private function actuallyUpdateURL():void {
                        var o:Object = {};
                        var t:String = "";
                        if (tn.selectedIndex == 1) {
                             t = "Receiving";
                             o.view = tn.selectedIndex;
                             if (recvDetails.selected)
                                  o.details = true;
                        } else {
                             t = "Shipping";
                             o.view = tn.selectedIndex;
                             if (shipDetails.selected)
                                  o.details = true;
                        var s:String = URLUtil.objectToString(o);
                        browserManager.setFragment(s);
                        browserManager.setTitle(t);
              ]]>
         </mx:Script>
         <mx:TabNavigator id="tn" change="updateURL()" width="300">
              <mx:Panel label="Shipping">
                   <mx:CheckBox id="shipDetails" label="Show Details" change="updateURL()" />
              </mx:Panel>
              <mx:Panel label="Receiving">
                   <mx:CheckBox id="recvDetails" label="Show Details" change="updateURL()" />
              </mx:Panel>
         </mx:TabNavigator>
    </mx:Application>

  • Back button is not working-urgent

    hi ,
    i created my own pf status by using following function modue. it is showing pf status correct. in my pf status i keep back and exit buttons only. when i execute the following report it is showing back and exit buttons only. when i click back button action is not performing . any body can tell why the action is not working . i activated my pf status also.  if possible send me the sample code.
    iam sending my code below....
    selection-screen: begin of block b1.
    parameters : p_appln type mara-matnr.
    parameters : p_user type marc-werks.
    selection-screen: end of block b1.
    data: begin of exclude occurs 0,
            func(10) type c,
          end of exclude.
    At selection-screen output.
       set pf-status 'SELK'.      <-- Comment this line
    if sy-dynnr eq '1000'.
    call function 'RS_SET_SELSCREEN_STATUS'
    exporting
    p_status = 'SELK'
    tables
    p_exclude = exclude
    exceptions
    others = 1.
    endif.
    thanks,
    maheedhar.t

    Please assign the function codes to the back button and use the function code in your program for a particulat action.
    Check this piece of code might help you.
    call the ABAP list viewer                                            *
    FORM list_display TABLES a_output.
      pgm = disvariant-report = sy-repid.
      disvariant-variant = variant.
    call list viewer
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = pgm
          i_callback_pf_status_set = 'SET_PF_STATUS'
          it_fieldcat              = fieldcat
          is_layout                = layout
          is_print                 = print
          i_save                   = 'A'
          it_events                = eventcat
          it_sort                  = sortcat
          i_callback_user_command  = '<b>USER_COMMAND'</b>
        TABLES
          t_outtab                 = a_output
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    ENDFORM.                    "LIST_DISPLAY
    FORM SET_PF_STATUS *
    FORM set_pf_status USING extab TYPE slis_t_extab.
      SET PF-STATUS 'STATUS1'.
    ENDFORM.                    "set_pf_status
    FORM USER_COMMAND *
    FORM user_command USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
      DATA t_difference TYPE i.
      CASE ucomm.
        WHEN 'ENT1'.   <--The function code.
    Shreekant

  • In IPhone Apps crash when press back buton . When press back back button Last class is appeared slightly slighly ash, with no error or warning .

    Hi,
    I am developing apps on for 4.1 and on Xcode3.2. My Apps crash when press back buton . When press back back button Last class is appeared slightly than crash, with no error or warning ....Here are the code....crash on Back Funtion
    #import "TransactionSummaryDetailViewController.h"
    #import "TransactionSummaryData.h"
    #import "Constant.h"
    #import "DataBase.h";
    #import "Common.h"
    #import "YPCardHolderServiceService.h"
    #import "SelectionScreenViewController.h"
    @implementation TransactionSummaryDetailViewController
    @synthesize table,cardReference;
    @synthesize waitIndicator,transactionsummary,keyArray,valueArray,isSummaryAvailable;
    @synthesize startDate,endDate;
    // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
        if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
            // Custom initialization
        return self;
    -(void)getrowcount{
        if(transactionsummary.cardholdernmae !=nil){
            [keyArray addObject:@"Card Holder Name: "];
            [valueArray addObject:transactionsummary.cardholdernmae];
        if(transactionsummary.cardnumber!=nil){
            [keyArray addObject:@"Card Number: "];
            [valueArray addObject:transactionsummary.cardnumber];
        if(transactionsummary.debittransactioncount != nil){
            [keyArray addObject:@"Debit Tx. Count: "];
            [valueArray addObject:transactionsummary.debittransactioncount];
        if(transactionsummary.debittransactionvalue!=nil){
            [keyArray addObject:@"Debit Tx. Value"];
            [valueArray addObject:transactionsummary.debittransactionvalue];
        if(transactionsummary.credittransactioncount!=nil){
            [keyArray addObject:@"Credit Tx. Count: "];
            [valueArray addObject:transactionsummary.credittransactioncount];
        if(transactionsummary.credittransactionvalue!=nil){
            [keyArray addObject:@"Credit Tx. Value: "];
            [valueArray addObject:transactionsummary.credittransactionvalue];
    // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
    - (void)viewDidLoad {
        appDelegate = [[UIApplication sharedApplication]delegate];
        keyArray = [[NSMutableArray alloc]init];
        valueArray = [[NSMutableArray alloc]init];
        [self getrowcount];
        NSLog(@"Key Array Count is %d",[keyArray count]);
        [table setBackgroundColor:[UIColor clearColor]];
        [table setSeparatorColor:TableViewCellSeperatorColor];
        [waitIndicator setHidden:YES];
        [self setTitle:@"Summary Details"];
        UIButton *button =  [UIButton buttonWithType:UIButtonTypeCustom];
        [button setImage:[UIImage imageNamed:@"list.png"] forState:UIControlStateNormal];
        [button addTarget:self action:@selector(BacktoView) forControlEvents:UIControlEventTouchUpInside];
        [button setFrame:CGRectMake(0, 0, 76, 44)];
        self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:button];
        if(!isSummaryAvailable)
            if([Common isNetworkAvailable])
                [waitIndicator startAnimating];
                YPCardHolderServiceService *services = [[YPCardHolderServiceService alloc] init];
                YPTransactionsSummaryRequest *summaryRequest = [[YPTransactionsSummaryRequest alloc] init];
                summaryRequest.SC = appDelegate.SC;
                summaryRequest.userName = appDelegate.userName;
                summaryRequest.valid =TRUE;
                summaryRequest.cardReference =[NSString stringWithFormat:@"%@",cardReference];
                NSLog(@"Start Date Is %@ and End Date is %@",startDate,endDate);
                summaryRequest.startDate = startDate;
                summaryRequest.endDate = endDate;
                summaryRequest.applicationType = @"M";
                [services getTransactionsSummary:self action:@selector(getTransactionsSummaryHandlers:) transactionsSummaryRequest:summaryRequest];
                [summaryRequest release];
                [services release];
        [super viewDidLoad];
    //Handle the Response of getTransactionsSummary
    -(void)getTransactionsSummaryHandlers:(id) value
        [waitIndicator stopAnimating];
        // Handle errors
        if([value isKindOfClass:[NSError class]]) {
            NSLog(@"%@", value);
            return;
        // Handle faults
        if([value isKindOfClass:[SoapFault class]]) {
            NSLog(@"%@", value);
            return;
        // Do something with the YPLoginResponse* result
        YPTransactionsSummaryResponse* result = (YPTransactionsSummaryResponse*)value;
        if(result.statusCode == 0)
            NSLog(@"Number of Transaction is =%d",[result.transactionSummaryList count]);
            NSLog(@"Step 1 ='%@'",appDelegate.userID);
            NSString *deleteQuery = @"delete from TransactionSummary where userid = ";
            NSLog(@"Step 1 ='%@'",appDelegate.userID);
            deleteQuery = [deleteQuery stringByAppendingString:[NSString stringWithFormat:@"%@ and cardreference = '%@'",appDelegate.userID,cardReference]];
            NSLog(@"delete query= '%@'",deleteQuery);
            [DataBase deleteDataFromTable:deleteQuery];
            NSLog(@"delete query= '%@'",deleteQuery);
            //for (int i =0; i< [result.transactionSummaryList count]; i++)
            for (int i =0; i< [result.transactionSummaryList count] -2; i++)
                NSLog(@"for loop= %d",i);
                YPTransactionSummaryDetails *transactionSummary = (YPTransactionSummaryDetails*)[result.transactionSummaryList objectAtIndex:i];
                NSLog(@"cardholdername= '%@'",transactionSummary.cardholderName);
                /*NSString *insertQuery = @"Insert into TransactionSummary(cardholdername,cardnumber,debittransactioncount,debittransac tionvalue,credittransactioncount,credittransactionvalue,userid) values(";
                insertQuery =[insertQuery stringByAppendingString:[NSString stringWithFormat:@"'%@','xxxx xxxx xxxx %@',%d,%d,%d,%d,'%@',%@)",
                                                                   transactionSummary.cardholderName,transactionSummary.cardNumber,transactionSumm ary.debitTransactionCount,
                                                                   transactionSummary.debitTransactionValue,transactionSummary.creditTransactionCo unt,transactionSummary.creditTransactionValue,
                                                                   appDelegate.userID]];*/
                //Add by sarvesh
                NSString *insertQuery = @"Insert into TransactionSummary(cardholdername,cardnumber,debittransactioncount,debittransac tionvalue,credittransactioncount,credittransactionvalue,cardreference,userid) values(";
                insertQuery =[insertQuery stringByAppendingString:[NSString stringWithFormat:@"'%@','%@',%d,%d,%d,%d,'%@',%@)",
                                                                   transactionSummary.cardholderName,transactionSummary.cardNumber,transactionSumm ary.debitTransactionCount,
                                                                   transactionSummary.debitTransactionValue,transactionSummary.creditTransactionCo unt,transactionSummary.creditTransactionValue,cardReference,
                                                                   appDelegate.userID]];
                NSLog(@"Insert Query for Transaction Summary is %@",insertQuery);
                [DataBase InsertIntoTable:insertQuery];
            //Read Update Data From DataBase and Refresh Table
                NSString *query = @"Select * from TransactionSummary where userid = ";
                query = [query stringByAppendingString:[NSString stringWithFormat:@"%@ and cardreference = '%@'",appDelegate.userID,cardReference]];
            NSLog(@"select query= %@",query);
                NSMutableArray *temp=[DataBase getTransactionSummaryTableData:query];
                if([temp count] > 0)
                    transactionsummary = (TransactionSummaryData*)[temp objectAtIndex:0];
                    [keyArray removeAllObjects];
                    [valueArray removeAllObjects];
                [self getrowcount];
                [table reloadData];
    -(void)viewDidAppear:(BOOL)animated
        CGFloat navBarHeight = 50.0f;   
        CGRect frame = CGRectMake(0.0f, 20.0f, 320.0f, navBarHeight);
        [self.navigationController.navigationBar setFrame:frame];
        [super viewDidAppear:animated];
    -(IBAction)BacktoView
        NSLog(@"in back function..TrasactionSummaryDetail");
        SelectionScreenViewController *screenView=[[SelectionScreenViewController alloc] initWithNibName:@"SelectionScreenViewController" bundle:nil];
        [self.navigationController popViewControllerAnimated:YES];
        [screenView release];
    - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{
        return UITableViewCellEditingStyleNone;
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
        return 1;
    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
        return cellHeightForGroupedTable;
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
        if(section == 0)
            return [keyArray count];
        else       
            return 0;
    - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section{
        NSString *title = nil;
        switch (section){
            case 0:{
                //title = @"Summary Details";
                break;
        return title;
    - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
        if ([self tableView:tableView titleForHeaderInSection:section] != nil) {
            return tableHeaderHeight;
        else {
            // If no section header title, no section header needed
            return 0;
    - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
        NSString *sectionTitle = [self tableView:tableView titleForHeaderInSection:section];
        if (sectionTitle == nil) {
            return nil;
        // Create label with section title
        UILabel *label = [[[UILabel alloc] init] autorelease];
        label.frame = CGRectMake(20, 6, 300, 30);
        label.backgroundColor = [UIColor clearColor];
        label.textColor = HeaderTextColor;
        label.shadowColor = HeaderTextShadowColor;
        label.shadowOffset = CGSizeMake(0.0, 1.0);
        label.font = HeaderTextFontSize;
        label.text = sectionTitle;
        // Create header view and add label as a subview
        UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320,60)];
        [view autorelease];
        [view addSubview:label];
        return view;
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
        UITableViewCell *cell = nil;
        NSString *cellIdentifier;
        cellIdentifier = @"SectionsTableIdentifier";
        int row = [indexPath row];
        CGRect nameLabelRect = CGRectMake(19 , 8, 240, 29);
        CGRect cardlabelRect = CGRectMake(19,31,240,15);
        UILabel *nameLabel = [[UILabel alloc] initWithFrame:nameLabelRect];
        UILabel *cardnumber = [[UILabel alloc] initWithFrame:cardlabelRect];
        cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
        if(cell == nil){
            cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:cellIdentifier] autorelease];
        // Remove all subview from cell content view
        for (UIView *view in cell.contentView.subviews){
            [view removeFromSuperview];
         [cell setAccessoryType:UITableViewCellAccessoryNone];
        [nameLabel setTextColor:firstLabelFontColor];
        [nameLabel setFont:firstLabelFont];
        [nameLabel setFont:firstLabelFontSize];
         nameLabel.textAlignment = UITextAlignmentLeft;
         nameLabel.text = [NSString stringWithFormat:@"%@ : %@",[keyArray objectAtIndex:row],[valueArray objectAtIndex:row]];
         [cell.contentView addSubview: nameLabel];
         cell.selectionStyle = UITableViewCellSelectionStyleNone;
        [cell setBackgroundColor:[UIColor clearColor]];
        [cell setBackgroundColor:TableViewCellColor];
        [nameLabel setBackgroundColor:[UIColor clearColor]];
        [cardnumber setBackgroundColor:[UIColor clearColor]];
        [cardnumber release];
        [nameLabel release];
        return cell;
    // Override to allow orientations other than the default portrait orientation.
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceO rientation {
        // Return YES for supported orientations
        return (interfaceOrientation == UIInterfaceOrientationPortrait);
    - (void)didReceiveMemoryWarning {
        // Releases the view if it doesn't have a superview.
        [super didReceiveMemoryWarning];
        // Release any cached data, images, etc that aren't in use.
    - (void)viewDidUnload {
        // Release any retained subviews of the main view.
        // e.g. self.myOutlet = nil;
    - (void)dealloc {
        [table release];
        [waitIndicator release];
        [keyArray release];
        [valueArray release];
        [transactionsummary release];
        [super dealloc];
    @end

    This is the user-to-user tech support site.  For carrier issues go to the Dev forums.
    You might want to note that the current iOS is 4.3.3, and the current SDK is 4.3 and XCode 4.0.2

  • How do I go back to the previous page if the app dosen't have a back button?

    In iOS we can go to the previous activity of an app by swiping from left to right of the screen. In FireFox OS is there any way to go to the previous page of an app?

    Hello,
    Depending on the app it should have its own back button. Could you let me know which app you are having trouble with?
    I've attached a screenshot of the Settings app in Firefox OS. The screen shows the Sound settings page. If you wanted to go back to the main screen of the Settings app you would click on the back button in the top left hand corner. It looks like this: <
    Some apps (e.g. from the adaptive app search screen) may not have a back button built into the app itself. In that case you can access a back button from the navigation bar at the bottom.
    I've attached another screenshot from the IMDB app. Here I have accessed the 'Breaking Bad' page. If I want to return to the previous screen I can swipe up from off the screen over the orange button in the bottom right hand corner. It looks like this: ᶺ
    Then the navigation bar will appear (see my 3rd screenshot). The back button is on the far left side of the navigation bar. It looks like this: ←
    I hope this helps. Let me know if not.

Maybe you are looking for

  • Balance final payment (max 5%) payble to vendor through third party audit

    I have onc case here I want to make all account payable  final payment to vendor by third party govt audit commite . Our client is govt and they have standard process so all final payment will be done through third party audit people (audit people al

  • Adobe Reader 9.0  How to rotate documents?

    In 7.x I had a button to quickly flip a document upside-down. This functionality seems to be missing in 9.0 (both in browser plugin & in standalone reader) Or am I just missing something? If someone would be so kind as to reply with CC to me at cyber

  • Problem With iPod Service

    Hello, When i install iTune 7.0.1.8 (in french for me) i've got an error in the services. Source : iPod Service - ID : 0 iPod Services unreachable ! Someone have an idea ? Thank you for your answers. iPod Nano 4GB.   Windows XP Pro  

  • Dynamic Tabs Layout

    Hello, I'm using the latest version of JHeadstart (11.1.1.3.35). I have selected Dynamic Tabs layout and everything works fine except that the home page still shows all the groups as a tab in home page. If I click on any of them it will go to the tre

  • Warehouse Deletion Problem

    I have created a New Warehouse in Admin/Setup/Stock Management/Warehouses. Because I wanted to search first for existing Warehouses, I put * in the Warehouse Code Field and I pressed return. However, because the programme was in ADD mode, instead of