ALV OO and refreshing the ALV grid

Hi,
i have some problems with my ALV 00 program.
On screen 1 i have to fill in a material number.
For that material i'm getting some data and show in screen 2 in a ALV grid.
Via BACK-button i'm getting back to screen 1 and can fill in another material number.
But the 2nd (and 3rd, etc) time i fill a material, the ALV grid data from material 1 is shown. Even if the internal table I_ALV where the data is, is changed.
What should i do ?
I have initialized the customer container and the grid, but that didn't solved the problem.
regards,
Hans

Hi,
Try clearing and refreshing the alv grid data table in screen 2.
Check with this code. this code is working fine. If we go back and change the input, it is showing the output corresponding to the second input only.
Have you use this method?
<b> GR_ALVGRID->REFRESH_TABLE_DISPLAY</b>
TYPE-POOLS : SLIS.
* Tables                                                              *
TABLES:
  VBRK,
  VBRP.
* Parameters and select options OR SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS:
            S_VBELN FOR VBRK-VBELN.
SELECTION-SCREEN END OF BLOCK B1.
* Internal Tables                                                     *
* work areas
DATA: BEGIN OF IT_VBRP OCCURS 0,
       VBELN LIKE VBRK-VBELN,
       POSNR LIKE VBRP-POSNR,
       UEPOS LIKE VBRP-UEPOS,
       FKIMG LIKE VBRP-FKIMG,
       NETWR LIKE VBRP-NETWR,
       MEINS LIKE VBRP-MEINS.
DATA : END OF IT_VBRP.
* Variables                                                           *
DATA : GR_ALVGRID TYPE REF TO CL_GUI_ALV_GRID,
       GC_CUSTOM_CONTROL_NAME TYPE SCRFNAME VALUE 'CC_ALV',
       GR_CCONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
       GT_FIELDCAT TYPE LVC_T_FCAT,
       GS_LAYOUT TYPE LVC_S_LAYO,
       V_FLAG VALUE 'X'.
* Start of Program                                                    *
*       INITIALIZATION.                                               *
INITIALIZATION.
  S_VBELN-LOW = 1.
  S_VBELN-HIGH = 1000000000.
  S_VBELN-OPTION = 'EQ'.
  S_VBELN-SIGN = 'I'.
  APPEND S_VBELN.
*       SELECTION-SCREEN                                              *
AT SELECTION-SCREEN.
  PERFORM VALIDATION.
*       START-OF-SELECTION                                            *
START-OF-SELECTION.
  PERFORM GET_DATA.
  CALL SCREEN 0100.
*       END-OF-SELECTION                                              *
END-OF-SELECTION.
*       TOP-OF-PAGE                                                   *
TOP-OF-PAGE.
*       END-OF-PAGE                                                   *
END-OF-PAGE.
*       AT USER-COMMAND                                               *
*&      Form  VALIDATION
*       text
*  -->  p1        text
*  <--  p2        text
FORM VALIDATION .
  SELECT SINGLE VBELN
  FROM VBRK
  INTO VBRK-VBELN
  WHERE VBELN IN S_VBELN.
  IF SY-SUBRC <> 0.
    MESSAGE E000 WITH 'no billing documents found'.
  ENDIF.
ENDFORM.                    " VALIDATION
*&      Form  GET_DATA
*       text
*  -->  p1        text
*  <--  p2        text
FORM GET_DATA .
  SELECT VBELN
         POSNR
         UEPOS
         FKIMG
         NETWR
         MEINS
  FROM VBRP
  INTO TABLE IT_VBRP
  WHERE VBELN IN S_VBELN.
ENDFORM.                    " GET_DATA
*&      Module  DISPLAY_ALV  OUTPUT
*       text
MODULE DISPLAY_ALV OUTPUT.
  IF V_FLAG = 'X'.
    PERFORM DISPLAY_ALV.
    PERFORM PREPARE_FIELD_CATALOG CHANGING GT_FIELDCAT.
    PERFORM PREPARE_LAYOUT CHANGING GS_LAYOUT.
   CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
*      I_BUFFER_ACTIVE               =
*      I_BYPASSING_BUFFER            =
*      I_CONSISTENCY_CHECK           =
*      I_STRUCTURE_NAME              = 'VBRP'
*      IS_VARIANT                    =
*      I_SAVE                        =
*      I_DEFAULT                     = 'X'
          IS_LAYOUT                     = GS_LAYOUT
*      IS_PRINT                      =
*      IT_SPECIAL_GROUPS             =
*      IT_TOOLBAR_EXCLUDING          =
*      IT_HYPERLINK                  =
*      IT_ALV_GRAPHICS               =
*      IT_EXCEPT_QINFO               =
        CHANGING
          IT_OUTTAB                     = IT_VBRP[]
          IT_FIELDCATALOG               = GT_FIELDCAT
*      IT_SORT                       =
*      IT_FILTER                     =
        EXCEPTIONS
          INVALID_PARAMETER_COMBINATION = 1
          PROGRAM_ERROR                 = 2
          TOO_MANY_LINES                = 3
          OTHERS                        = 4
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      CALL METHOD GR_ALVGRID->SET_READY_FOR_INPUT
        EXPORTING
          I_READY_FOR_INPUT = 1.
    ELSE.
      <b>CALL METHOD GR_ALVGRID->REFRESH_TABLE_DISPLAY
*    EXPORTING
*      IS_STABLE      =
*      I_SOFT_REFRESH =
        EXCEPTIONS
          FINISHED       = 1
          OTHERS         = 2
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.</b>
    ENDIF.
    CLEAR V_FLAG.
  ENDIF.
ENDMODULE.                 " DISPLAY_ALV  OUTPUT
*&      Form  DISPLAY_ALV
*       text
*  -->  p1        text
*  <--  p2        text
FORM DISPLAY_ALV .
  IF GR_ALVGRID IS INITIAL.
    CREATE OBJECT GR_ALVGRID
      EXPORTING
*    I_SHELLSTYLE      = 0
*    I_LIFETIME        =
        I_PARENT          = GR_CCONTAINER
*    I_APPL_EVENTS     = space
*    I_PARENTDBG       =
*    I_APPLOGPARENT    =
*    I_GRAPHICSPARENT  =
*    I_NAME            =
      EXCEPTIONS
        ERROR_CNTL_CREATE = 1
        ERROR_CNTL_INIT   = 2
        ERROR_CNTL_LINK   = 3
        ERROR_DP_CREATE   = 4
        OTHERS            = 5
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
  ENDIF.
ENDFORM.                    " DISPLAY_ALV
*&      Form  PREPARE_FIELD_CATALOG
*       text
*      <--P_GT_FIELDCAT  text
FORM PREPARE_FIELD_CATALOG  CHANGING P_GT_FIELDCAT TYPE LVC_T_FCAT.
  DATA : LS_FCAT TYPE LVC_S_FCAT,
         L_POS TYPE I.
  L_POS = L_POS + 1.
  LS_FCAT-FIELDNAME = 'VBELN'.
  LS_FCAT-TABNAME = 'IT_VBRP'.
  LS_FCAT-COL_POS = L_POS.
  LS_FCAT-SCRTEXT_M = 'Billing Document'.
  LS_FCAT-OUTPUTLEN = '10'.
  APPEND LS_FCAT TO P_GT_FIELDCAT.
  CLEAR LS_FCAT.
  L_POS = L_POS + 1.
  LS_FCAT-FIELDNAME = 'POSNR'.
  LS_FCAT-TABNAME = 'IT_VBRP'.
  LS_FCAT-COL_POS = L_POS.
  LS_FCAT-SCRTEXT_M = 'Billing Item'.
  LS_FCAT-OUTPUTLEN = '6'.
  APPEND LS_FCAT TO P_GT_FIELDCAT.
  CLEAR LS_FCAT.
  L_POS = L_POS + 1.
  LS_FCAT-FIELDNAME = 'UEPOS'.
  LS_FCAT-TABNAME = 'IT_VBRP'.
  LS_FCAT-COL_POS = L_POS.
  LS_FCAT-SCRTEXT_M = 'Higher Level Item'.
  LS_FCAT-OUTPUTLEN = '6'.
  APPEND LS_FCAT TO P_GT_FIELDCAT.
  CLEAR LS_FCAT.
  L_POS = L_POS + 1.
  LS_FCAT-FIELDNAME = 'FKIMG'.
  LS_FCAT-TABNAME = 'IT_VBRP'.
  LS_FCAT-COL_POS = L_POS.
  LS_FCAT-SCRTEXT_M = 'Invoice Quantity'.
  LS_FCAT-OUTPUTLEN = '13'.
  APPEND LS_FCAT TO P_GT_FIELDCAT.
  CLEAR LS_FCAT.
  L_POS = L_POS + 1.
  LS_FCAT-FIELDNAME = 'NETWR'.
  LS_FCAT-TABNAME = 'IT_VBRP'.
  LS_FCAT-COL_POS = L_POS.
  LS_FCAT-SCRTEXT_M = 'Net Value'.
  LS_FCAT-OUTPUTLEN = '15'.
  APPEND LS_FCAT TO P_GT_FIELDCAT.
  CLEAR LS_FCAT.
  L_POS = L_POS + 1.
  LS_FCAT-FIELDNAME = 'MEINS'.
  LS_FCAT-TABNAME = 'IT_VBRP'.
  LS_FCAT-COL_POS = L_POS.
  LS_FCAT-SCRTEXT_M = 'Unit of Measure'.
  LS_FCAT-OUTPUTLEN = '3'.
  APPEND LS_FCAT TO P_GT_FIELDCAT.
  CLEAR LS_FCAT.
  L_POS = L_POS + 1.
ENDFORM.                    " PREPARE_FIELD_CATALOG
*&      Form  PREPARE_LAYOUT
*       text
*      <--P_GS_LAYOUT  text
FORM PREPARE_LAYOUT  CHANGING P_GS_LAYOUT TYPE LVC_S_LAYO.
  P_GS_LAYOUT-ZEBRA = 'X'.
  P_GS_LAYOUT-GRID_TITLE = 'INVOICE DETAILS'.
  P_GS_LAYOUT-SMALLTITLE = 'X'.
  P_GS_LAYOUT-EDIT = 'X'.
ENDFORM.                    " PREPARE_LAYOUT
*&      Module  STATUS_0100  OUTPUT
*       text
MODULE STATUS_0100 OUTPUT.
  SET PF-STATUS 'CANCEL'.
*  SET TITLEBAR 'xxx'.
ENDMODULE.                 " STATUS_0100  OUTPUT
*&      Module  USER_COMMAND_0100  INPUT
*       text
MODULE USER_COMMAND_0100 INPUT.
  CASE SY-UCOMM.
    WHEN 'BACK'.
      LEAVE TO SCREEN 0.
    WHEN 'CANCEL'.
      LEAVE TO SCREEN 0.
    WHEN 'EXIT'.
      CALL TRANSACTION 'SE38'.
    WHEN 'CHANGE'.
      IF GR_ALVGRID->IS_READY_FOR_INPUT( ) = 0.
        CALL METHOD GR_ALVGRID->SET_READY_FOR_INPUT
          EXPORTING
            I_READY_FOR_INPUT = 1.
      ELSE.
        CALL METHOD GR_ALVGRID->SET_READY_FOR_INPUT
          EXPORTING
            I_READY_FOR_INPUT = 0.
      ENDIF.
  ENDCASE.
Regards,
Aswin

Similar Messages

  • How to kill an alv-grid object and refresh the frontend

    Hello experts,
    i have created an alv-grid display!
    now i want to hide the whole alv-table on the screen when user e.g. hits a button!
    How can i kill this object and refresh the frontend?
    Thanks a lot,
    Marcel

    Hello Marcel
    For this requirement I would use the following approach:
    (1) main screen '0100': here you display your ALV grid
    (2) Define a dummy screen '0101' the user will never see
    (3) Link the container for the ALV grid (e.g. go_docking) to the dummy screen when the user pushes the HIDE button (method LINK)
    (4) Link the container back to your main screen when the user pushes the DISPLAY button
    I never ever destroy a grid control and re-build it from scratch but always use either of its methods REFRESH_TABLE_DISPLAY or SET_TABLE_FOR_FIRST_DISPLAY.
    Regards
       Uwe

  • I am forced to hold shift and refresh the page on 99% of the sites I visit. How do I fix this from happening? If I don't the pages are missing style sheets and etc.

    When ever I go to sites they half load or are missing style sheets. If I view the source for the page and click on a style sheet link I get the following error:
    Content Encoding Error
    The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
    If I hold shift and refresh the page loads as normal.
    It's happening on 99% of the sites I visit. I have disabled my plugins and add-ons.
    I do have some add-ons or plugins that I would like to remove completely but there is no uninstall or remove option, neither in regular or safe mode.

    '''I'm NOT buying a backup Computer till, Firefox will Run on Windows 8 !'''

  • Blobs and refreshing the schema

    Hi all,
    I have two questions about Kodo 3.3.3.
    1) About blobs. A blob is the serialization fof an object. Does Kodo store
    the hashCode of the class (ir the serialVersionUID of the class) that was
    used to serialize the object ? Will I have a problem if I want to get back
    that blob with a recompiled version of that class, with a different
    serialVersionUID ?
    2) About the XML descriptors of the schema. I configured my mappingtool to
    write the XML descriptor of the my schema in the base, it works very fine.
    I can get these descriptor, class by class, with the command mappingtool
    -a export -f dump.xml package.jdo, it's very handy. From the
    documentation, I red that one can export this XML, edit it, import it back
    in the base, and refresh the schema
    (http://www.solarmetric.com/jdo/Documentation/3.3.3/docs/ref_guide_mapping_factory.html).
    My problem is : I cant find the command to perform this refresh, the
    schema is just not "synchronized" with the XML. Any hint ? :)
    Btw, I came across a bug using SQL Server : a field named "index"
    generated a column named "index", SQL Server was quite angry at that.
    Sorry if this one is know already.
    Thanks for your answers,
    Jos__

    1) About blobs. A blob is the serialization fof an object. Does Kodo store
    the hashCode of the class (ir the serialVersionUID of the class) that was
    used to serialize the object ? Will I have a problem if I want to get back
    that blob with a recompiled version of that class, with a different
    serialVersionUID ?Kodo just serializes the field value to a byte array using standard Java
    serialization. So yes, you will have problems if the serialVersionUID of the
    class changes. If you want more control over this process, you can create a
    custom DBDictionary that overrides the serialize() method. Or you can use a
    field of type byte[] and a byte-array mapping rather than a blob mapping, so
    that Kodo doesn't do any serialization.
    My problem is : I cant find the command to perform this refresh, the
    schema is just not "synchronized" with the XML. Any hint ? :)Use the schema tool to synchronize the schema with the XML. See:
    http://www.solarmetric.com/Software/Documentation/latest/docs/ref_guide_schema_schematool.html
    Btw, I came across a bug using SQL Server : a field named "index"
    generated a column named "index", SQL Server was quite angry at that.
    Sorry if this one is know already.Thanks. We'll make sure this is fixed in Kodo 3.3.4.

  • ADF 10.1.3 Programatically committing changes and refreshing the list page.

    Hello,
    I have a requirement where on list page i select a recrod and than modifies it on next page. I am using different database views for list and update purpose. So when i save the changes, control comes back to REFRESHED list page.
    Pls let me know how can i commit and refresh the changes programatically. I hav added a method on managed bean as part of action binding.
    Thanks
    Manish

    public String beanMethod() {
    //obtain a reference to your bindingcontainer. chances are you have the "bindings" member variable of the mangaged bean and you have the getBindings() function already built by the wizard for you.
    DCBindingContainer bc = (DCBindingContainer)getBindings();
    //Make sure you have the "Commit" action binding on your pageDef. If not ob will return a Null reference. If you have drag and dropped the Commit operation on your ApplicationModule found on the Data Control Pallete on your page, the "Commit" operation should be there on your pageDef
    OperationBinding ob = (OperationBinding)bc.get("Commit");
    ob.execute();
    return "navigationToListPage";
    I think when you go back the listPage, the ADF framework will execute the query automatically.
    When you go to the update page, are you just updating the current row or creating a new row and then filling out the attribute values?

  • How can I get and change the items grid of MIRO trx

    Hi everyone,
    I have a requirement where I need to get and change the tax code field in MIRO's item grid. Is there a function module / Badi to do this? I used MRM_HEADER_CHECK, but the parameters related with this badi only allows read but not change them.
    Do you have any idea?
    Thanks in advance!
    Regards.
    Leo.

    Hello,
    You can change that table with help of the filed-symbol in the BADI MRM_HEADER_CHECK.
    LOOP AT ti_drseg INTO ls_drseg. 
      lv_index = sy-tabix.
    ***... do your processing
      MODIFY ti_drseg FROM ls_drseg INDEX lv_index.
    ENDLOOP.
    FIELD-SYMBOLS: <drseg> TYPE mmcr_tdrseg.
    ASSIGN ('(SAPLMR1M)ydrseg[]') TO <drseg>.
    <drseg> = ti_drseg[].  " this will modify the data in MIRO with your modified data
    Regards,
    Naimesh Patel

  • Best Practice on using and refreshing the Data Provider

    I have a �users� page, that lists all the users in a table - lets call it master page. One can click on the first column to of the master page and it takes them to the �detail� page, where one can view and update the user detail.
    Master and detail use two different data providers based on two different CachedRowSets.
    Master CachedRowSet (Session scope): SELECT * FROM UsersDetail CachedRowSet (Session scope): SELECT * FROM Users WHERE User_ID=?I want the master to be updated whenever the detail page is updated. There are various options to choose from:
    1. I could call masterDataProvider.refresh() after I call the detailDataProvider.commitChanges() - which is called on the save button on the detail page. The problem with this approach is that the master page will not be refreshed across all user sessions, but only for the one saving the detail page.
    2. I could call masterDataProvider.refresh() on the preRender() event of the master page. The problem with this approach is that the refresh() will be called every single time someone views the master page. Further more, if someone goes to next page (using the built in pagination on the table on master page) and clicks on a user to view its detail and then close the detail page, it does not keep track of the pagination (what page the user was when he/she clicked on a record to view its detail).
    I can find some work around to resolve this problem, but I think this should be a fairly common usage (two page CRUD with master-detail). If we can discuss and document some best practices of doing this, it will help all the developers.
    Discussion:
    1.     What is the best practice on setting the scope of the Data Providers and CahcedRowSet. I noticed that in the tutorial examples, they used page/request scope for Data Provider but session scope for the associated CachedRowSet.
    2.     What is the best practice to refresh the master data provider when a record/row is updated in the detail page?
    3.     How to keep track of pagination, (what page the user was when he/she clicked on the first column in the master page table), so that upon updating the detail page, we cab provide user with a �Close� button, to take them back to whaterver page number he/she was.
    Thanks
    Message was edited by:
    Sabir

    Thanks. I think this is a useful information for all. Do we even need two data providers and associated row sets? Can't we just use TableRowDataProvider, like this:
    TableRowDataProvider rowData=(TableRowDataProvider)getBean("currentRow");If so, I am trying to figure out how to pass this from master to detail page. Essentially the detail page uses a a row from master data provider. Then I need user to be able to change the detail (row) and save changes (in table). This is a fairly common issue in most data driven web apps. I need to design it right, vs just coding.
    Message was edited by:
    Sabir

  • Close popup window and refresh the parent window

    Hello,
    I have a button in a normal report, when clicked opens up an popup window which is a form containing some items and here in this form (i have some editable text items) I make some changes and click on the apply changes button -- this should update the form, close the popup window and should refresh the parent window.
    can anyone please help me out with this issue.
    Thanks,
    Orton

    you have your popup window. When they apply the changes you want it to close the window, right?
    Modify the button (save, apply changes) and give it url redirect to the custom function you create (See below): javascript:saveChanges();
    in the page header, add a new function:
    <script type="text/javascript">
    function saveChanges(){
         doSubmit('SAVE');//this is the line to save the current form on the popup window. (This assumes SAVE is the request value that should udpate the db)
         window.close();//close the popup window
         window.opener.doSubmit('REFRESH');//call doSubmit function on the parent window to cause the page to refresh.
    </script>

  • Removing Items from Gridview and refreshing the gridview without redirecting to the same Page.(Windows Phone 8.1 Xaml)

    I have a gridview with a Usercontrol as its itemtemplate. In the Usercontrol I have a flyout attached to it using which the user can choose to delete the entry. After deletion how do I remove the entry from the gridview without redirecting to the samePage
    and removing the backstack entry?
    Please note that I am deleting/modifying the itemssource in the usercontrol's codebehind.

    Hi Rajiv,
    Where you have attached flyout. Which UI control. Is it border?? What type of UI control inside the DataTemplate?
    As normal, when user clicked on the delete item, you can retrieve the selected entry as single item of an observablecollection and pass into your ViewModel class and remove it. 
    The item will be removed at Runtime without refreshing or redirecting and there will a animation (transition) in the GridView when it removing.
    If this content doesn't match your answer. Please ask me again.
    Thank you

  • How to delete and refresh the contents of table control..

    how to delete particular row in table control .consider we r having three rows i wish to delete the third row.while on debugging the third row gets deleted successfully.but that is displayed in table control.then how to refresh the table control...

    hi,
    try like this....
    USER_COMMAND of PAI
    MODULE user_command_9000 INPUT.
      CASE ok_code.
        WHEN 'BACK' OR 'UP' OR 'CANCEL'.
          LEAVE PROGRAM.
        WHEN 'DEL'.
          GET CURSOR LINE lin_no.
          f1 = 1.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    and in Module in which u fetching data in PBO, write like
    MODULE get_data OUTPUT.
      IF f1 <> 1.
        SELECT kunnr name1
        INTO CORRESPONDING FIELDS OF TABLE mytab
        FROM kna1.
      ENDIF.
      IF f1 = 1.
        DELETE mytab INDEX lin_no.
        FREE lin_no.
        FREE f1.
      ENDIF.
    ENDMODULE.                 " get_data  OUTPUT
    reward if useful...

  • NSArrayController and refreshing the associated TableView

    Hello,
    I'm a Cocoa rank newbie and I'm probably trying to do something too complicated for my current abilities but here goes. I've been using Hillegass' book and am building an App that uses the NSArrayController to manage an NSTableView. I can add and delete objects and all that stuff. My problem comes when the data in the objects that are bound to the TableView changes "behind the Controller's back". The values in the objects are clock-based and I need to cause the TableView to refresh it's view of the bound data every second. I have scoured the web for how to cause a refresh and the answer seems to be either use the KVO method (which I can't really do (I think) because I'm not changing the data) or "send a -fetch" to the ArrayController.
    Sending the fetch seems like what I want to do but I can't find any information on how to do it. In the end, I don't really understand how to get a reference to the ArrayController object sitting in the Doc window that has all the bindings. I basically don't understand any of the objects in the Doc window. I dutifully drag them in and make connections to them but I don't really understand why.
    Any help on refreshing the NSArrayController would be much appreciated.
    Tom

    OK, incase anyone else is struggling with this, I got this working. From various posting, it seemed that I needed to create an IBOutlet and connect it to my ArrayController. I was having a tough time getting my head around that since all I'd ever done till now was connect IBOutlets to visual things such as TextFields. I finally found a hint that said I needed to connect the outlet from File's Owner to the ArrayController. So, I created an IBOutlet in my myDocument file;
    @interface MyDocument : NSDocument
    NSMutableArray *myObject;
    IBOutlet NSArrayController *arController;
    Then, in IB, I right-clicked File's Owner and dragged from the arController Outlet to the ArrayController object in the Doc window.
    Then, in myDocument.m, in the place that I wanted to refresh the list, I did this;
    (bracket)arController rearrangeObjects(bracket);
    (how do you post code snippets in these forums without it being "interpreted"?)
    Simple enough now that I've done it but it took me awhile to connect the dots.
    Anyway, I hope this helps someone else in the same boat.

  • How to get a form parameter and refresh the web web page itself?

    I thought its easy as a piece of cake. But what I found out is that somehow it is getting the parameter after the web page is refreshed!
    Any advice is greatly appreciated. Thanks!
    for navigation method
       //navigation method
        public Object refresh()
            return Navigation.HOME;
        }for web page
    <h:commandLink value="Regenerate resutls"  action="#{bean.refresh}">
                       <f:param name="algorithm" value="#{HomeMBean.algorithm}"/>
                    </h:commandLink>

    What I am trying to say here is:
    for a web page, I want to refresh the web page based on a parameter chosen by users,
    In web page:
    <h:commandLink value="Regenerate resutls"  action="#{bean.refresh}">
                <f:param name="algorithm" value="#{HomeMBean.algorithm}"/>
    </h:commandLink>in managed bean:
        //navigation method
        public Object refresh()
            return Navigation.HOME;
        }also in managed bean:
    String algorithm = FacesContext.getCurrentInstance().
    getExternalContext().getRequestParameterMap().get("algorithm");
            logger.debug("parameter="+algorithm);What I observed is I will never get the parameter "algorithm" before the web page is refreshed. In other words, the method setAlgorithm() is always called after the web page is rendered.
    I in fact want to render the web page based on the parameter "algorithm".
    I spent quite a lot time on it but can't figure out why.
    My guess is for managed beans, I can't rely on one property to generate another property, is that right?
    How should I solve this problem? Thanks a million!

  • Create pop-up page, submit it and refresh the "parent" one.

    Hi, I have a page where I have region with the report where I display pictures associated with the record. What I would like to have is enable user to click a button which would open pop-up page to submit new picture and after submission region would be refreshed showing new picture with description.
    Is this possible?
    Thanks
    Robert

    I still don't know if this is possible.
    To create thubnails create report with the link to the pictures using code below
    decode(nvl(dbms_lob.getlength(photo.thumb),0),0,null,'<img src="'||apex_util.get_blob_file_src('P35_PHOTO',photo.record_id)||'" width="48" />') "RPA_THUMB"
    photo.thumb is where you store thumb in the back end
    P35_PHOTO item used to upload photo
    photo.record_id is the photo id
    Robert

  • Safari logs me out of Gmail and refreshes the page.

    I have Safari 5.1.4 on Mac OS Lion 10.7.3. I have a 2.52 GHz Intel Core 2 Duo MacBook Pro. Throughout the day Safari will constantly reload Gmail and and log me out. Or like right now, I have Gmail open but it has the spinning wheel. Safari reloads my other tabs if I haven't been on them for a while, but it only bothers me with Gmail because I'll have to log back in or it'll do it in the middle of a Gchat.
    Also, when I reset Safari, as in clear the cahce, history, etc. this window pops up: http://www.screencast.com/t/JBM4TViWq
    I've change it to 32-bit but then Gmail is all white. And I'm not trying to open a movie like the warning says.
    Is this happening to anyone else? Is there some setting I need to change? Any help would be greatly ap

    I'd try updating to Safari 5.1.5. (It contains some fixes for issues with running in 32-bit mode, for example, and that seems to be in the vicinity of what you're getting here with 5.1.4.)
    http://www.apple.com/safari/download/

  • URL encoded and refreshing the current page

    Hello, I am redirecting to a page using response.sendRedirect(encodedPage). In the page which I redirect to, I have some code that checks if certain session variables are set. Upon redirection, all the session variables are set. However, if I hit the refresh button on my browser, the session check code tells me the variables are no longer set. Is this supposed to happen?
    Any help would be appreciated.
    jason

    My suggestion probably has nothing to do with the
    problem, but when you encode the URL for your
    sendRedirect() call, are you using encodeURL()?
    Because you should be using
    encodeRedirectURL().
    I am using encodeRedirectURL :) .... thanks for the suggestion though.

Maybe you are looking for

  • Spry Accordion jerky and not content filling correctly after refresh

    Hello. I have a page I'm trying to make a Spry Accordion work smoothly. I've tried options such as, fixedHeight fps  from 30 - 500, timer from 100ms to 1000ms, disabling Keyboard navigation, all working somewhat, BUT.... When opening and closing the

  • AIR 3.7 Problem Loading Multiple Similar SWFs On iOS

    I'm running into an issue with loading multiple SWFs using AIR 3.7 on iOS. The exact same code works fine on Android. The issue is that if I include 2 specific SWFs then neither of them will load correctly. When I include just one of the SWFs it work

  • Need help about Thread issue

    Given from scjp 1.public static void main(String[] args) { 2.        NameRunnable nr = new NameRunnable(); 3.        Thread t1 = new Thread(nr);               4.        t1.start(); 5.        t1.join();                    }There are some questions whi

  • The single tap on our track pads works sporadically

    Our track pad arrow works fine. When I single click, the function does not work.  It seems to not to have a pattern. Need help trouble shooting.

  • Delimiter in the Source Data

    Hi All, We are using BODS 3.2 on linux. How should we handle when a delimiter is present in the source data. For example: We have CSV file as the source, The file has comma ',' as part of the data in one of the columns. When we execute the job it thr