Nice refresh table

i've got a jsp page that list the discussion of University courses in a af:table, the rows are messages.
there's a diference betwen the messages that be read or not by the users.
the message not reads have inlineStyle="font-weight:bolder;" and the reads not.
i need to do a refresh when user read a message and i do it like this:
there two javascripts in the head tag:
<script type="text/javascript" >
function desactivatePoll(){
if(self._pollManager){
_pollManager.deactivateAll();
function reactivatePoll(){
if (self._pollManager){
_pollManager.reactivateAll();
setTimeout("_pollManager.deactivateAll()",700);
</script>
a poll before the table
<af:poll interval="600" id="timer"/>
a partialTrigger must be in the <af:table tag caling the poll: partialTriggers="timer"
i call the first javascript on the <afh:body tag for desactivate the poll, like this:
onload="desactivatePoll();"
and i call the second javascript in the commandlink that lunch the message, users read them, and i refresh the table
onclick="reactivatePoll();" (in the commandLink)
i hope that's works on your app.
Abel Manzanera
Edited by: user572683 on 17-feb-2009 0:53

Hi ,
TRY THIS CODE
refresh control 'TABCON' from screen '9001'.
Regards,
Vijay

Similar Messages

  • Howto refresh table after closing a popup

    Using JDev 11.1.1.3
    I have a table and a popup. The table is populated by records from a datacontrol.
    The popup has a form showing details of the selected record in the table. I also use that popup to create new records.
    I have problems when pressing the "OK" button on the dialog. The record is saved to the database, a commit has been executed but my table does not show the new record. I need to press F5 before i see the record.
    I have tried setting a partialTrigger to the table from the popup but that does not work.
    This is the dialogEvent code:
        public void enqueteListener(oracle.adf.view.rich.event.DialogEvent dialogEvent) {
           if(dialogEvent.getOutcome() != DialogEvent.Outcome.no) {
             BindingContainer bindings =  BindingContext.getCurrent().getCurrentBindingsEntry();
             OperationBinding operationBinding = bindings.getOperationBinding("Commit");
             operationBinding.execute();
             operationBinding = bindings.getOperationBinding("Execute");
             operationBinding.execute();
           else {
             BindingContainer bindings =  BindingContext.getCurrent().getCurrentBindingsEntry();
             OperationBinding operationBinding = bindings.getOperationBinding("Rollback");
             operationBinding.execute();
        }As you see the commit gets executed and after that i execute the Execute to refresh the table but it does not seem to work...
    How can i achieve that i do not longer need to press F5 so the record show up directly in the table after the OK button is clicked in the popup?

    Hi,
    you may add this helper method to your basking bean (or base backing bean)
    public void refreshUIComponent(UIComponent x) {
            AdfFacesContext.getCurrentInstance().addPartialTarget(x);
    }When using the addPartialTarget on your adf table component, it will refresh the table entirely.
    With the "fetching data....." message etc... (It is a bit heavy)
    What would be nice, is to refresh only the current row and not the whole table.
    How ?
    protected void refreshTableCurrentRow(RichTable xTable) {
            //Refresh Table UI Current Row
            Set<Object> selectedKeys = xTable.getSelectedRowKeys();
            assert selectedKeys.size() == 1;
            Object old = xTable.getRowKey();
            try {
                xTable.setRowKey(selectedKeys.iterator().next());
                List<UIComponent> colList = xTable.getChildren();
                Iterator iter = colList.iterator();
                while (iter.hasNext()) {
                    UIComponent col = (UIComponent)iter.next();
                    Iterator iterCol = col.getChildren().iterator();
                    while (iterCol.hasNext()) {
                        refreshUIComponent((UIComponent)iterCol.next());
            } finally {
                xTable.setRowKey(old);
        }And call it just after executing the "Execute" operation
    operationBinding = bindings.getOperationBinding("Execute");
    operationBinding.execute();
    refreshTableCurrentRow(getTable());
    Regards
    Nicolas

  • Refresh table-form query on table only

    Hello,
    I have a group being generated as a table-form layout. What I would like is for the table page to be refreshed always on entry. I can't set the group requery condition to always, or "when entering the page" as then the view object is executed going navigating from the table page to the form page. This seems a very simple requirement to me but Im struggling to come up with an elegant solution.
    Basically what i need is the refreshCondition on the invokeAction binding executable to be "Always and layout=table".
    Any help would be greatly appreciated !
    Cheers,
    Brent

    How do you do this, if your current page is a .jsff and not a .jspx? When I look at the refreshCondition, a .jsff does not have access to the facesContext.
    Thanks,
    Michelle
    Since this question was already answered, I created a new thread:
    Refresh table-form query on table only for .jsff pages
    Edited by: MSchaffer on Dec 1, 2010 11:54 AM

  • Incrementally refresh table

    DB:10.2.0.4
    OS:solaris
    How to modify a table to be an incrementally refreshing table rather than a full refresh. There are background jobs that copy data from production database to our test database. How to do that

    Create materialized view for that table and enable refresh.
    http://download.oracle.com/docs/cd/B10500_01/server.920/a96567/repmview.htm
    http://download.oracle.com/docs/cd/B10500_01/server.920/a96520/mv.htm
    Thanks

  • Reimport and Refresh Tables (MySQL DB adapter)

    Hello.
    I created DB adapter to MySQL DB in JDeveloper 11.1.1.5.
    Everytime I open Adapter Configuration Wizard on this DB Adapter I get warning: Reimport and Refresh Tables.
    "Some changes have been detected in the relational schema since these tables were imported. Please go back to the select tables page and reimport them. The changes are major enough that they can't be easily reconciled. The changes are: Table removed: ..." even there are not any changes in schema and tables still exists.
    Is it a bug or feature?
    I never saw this behaviour with Oracle DB. Is it a problem with MySQL JDBC driver?
    Thanks

    Looks like a bug to me. You should file an SR...
    Timo

  • How to refresh table display using slis and 'reuse_alv_grid_display method.

    hello,
    how to refresh table display using slis and 'reuse_alv_grid_display method'.
    when i'm refreshing table display it performs once again reuse_alv_grid_display.and when i back the previous value appear.how to solve it?
    neon

    are you chaning any value in the gird if so use this..
    Pass the user_command form name to the Import parameter
    I_CALL_BACK_USERCOMMAND .
    and have the Dynamic form implementation..
    FORM user_command USING ucomm TYPE sy-ucomm
                selfield TYPE slis_selfield.
    "The below is important for Editable Grid.
      DATA: gd_repid LIKE sy-repid, "Exists
      ref_grid TYPE REF TO cl_gui_alv_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF NOT ref_grid IS INITIAL.
        CALL METHOD ref_grid->check_changed_data .
      ENDIF.
      CASE ucomm.
        WHEN 'REFRSH'.
      ENDCASE.
           selfield-refresh = 'X'.
    ENDFORM.                    "user_command

  • Refresh Table Data after dialog window is closed.

    My JDeveloper version is 11.1.1.6.0
    I have a master-detail scenario where in Master records(Table Component) are displayed in top half of the splitter panel.
    Detail records are displayed in second half of the splitter control using table components placed on tab panel.
    After clicking on the LinkButton in Master record a bounded-task-flow is invoked in a separate inline dialog window (applicaitonModal).
    In the dialog window changes to the child records is done using SelecteManyShuttle Component.
    After invoking the commit action to close the modal window the child records do not refresh or the child records do not display changes immediately. Only after the page is refreshed the changes are visible.
    Kindly suggest a solution.
    Thanks
    Deven

    are you using af;dialog then you cn use dialog listener see this
    http://www.techartifact.com/blogs/2013/03/handling-ok-and-cancel-button-in-afdialog-using-popup-in-oracle-adf-by-dialogl…

  • Refresh table and display the records after insertion of data from back end

    Hi Experts,
    JDEV 11.1.2.1
    I have a useacase which needs data to be inserted from oracle back end procedure and displayed in a ADF Table Component, when a button is pressed.
    is this possible?..if yes , how?
    Is view object will automatically refreshed and fetches newly created(from back end) rows?
    thankz in advance
    PMS

    Hi user707,
    thankz for ur reply....
    i think after executing a procedure you want to call commit operation. better you can perform this.getDbtransaction().commit In Application Module;yes i want to commit transaction after executing back end procedure using preparedStatement.Procedure is for inserting data into same table , which used for creating VO and Read only ADF Table.Procedure is executed fine, but newly created records are not getting into ADF table.Once i did commit opeartion inside back end procedure, whole records are getting into ADF Table.
    Is there any way to get whole records without doing Commit operation inside Back end procedure?
    PMS

  • Cannot refresh table - test connection works fine but refresh gives "We couldn't refresh the connection. Please go to existing connections and verify they connect to the file or server." error.

    I'm having some difficulty updating a table in my powerpivot data model. The data for the table is stored in a local excel file; if I go to
    Existing Connections select the connection and do a test then everything is successful. When however I try to refresh that particular table I get the following error:
    "We couldn’t refresh the connection. Please go to existing connections and verify they connect to the file or server."
    In the past I had this and it was an authentication issue, the files are stored on SharePoint and I wasn't logged in to Sharepoint - I have however checked this and it can't be the issue because I have other tables linked to other excel files in the same
    location that are refreshing without issue. Can anyone think of what may be causing it?
    I have even tried creating a new local excel with the same data, added it to the data model and then tried a refresh and I I get exactly the same issue. 
    Are there any known issues with refreshing data from an Excel file if, after the initial import, you add columns to the table in the excel file I was wondering if this might contribute?
    Thanks

    Hi Maracles,
    Thanks for your post.
    From your description, I tried to reproduce this issue on my test environment. However, everything is fine for me. Could you please post the specific version of SQL Server PowerPivot for Excel?
    You can try to use a trace file to troubleshoot errors in PowerPivot. If this issue still persists, please try to reinstall SQL Server PowerPivot for Excel to see if this helps.
    For more information, please see:
    PowerPivot Options & Diagnostics Dialog Box:
    http://technet.microsoft.com/en-us/library/gg399091.aspx
    Using a Trace File to Troubleshoot Errors in PowerPivot:
    http://www.sqlchick.com/entries/tag/powerpivot
    Best Regards,  
    Elvis Long
    TechNet Community Support

  • Excel 2010 Pivot Table VBA Not Refreshing Table

    My company recently upgraded from Excel 2003 to 2010. I had VBA written to take source data and convert it into a number of Pivot Tables on a number of worksheets. It has been working fine for years. After upgrading to 2010 the VBA crashed. I tracked it
    down to the fact that when my code was making changes to the Pivot Tables (changing fields, filters, etc...) the pivot table on the worksheet had no data, but the fields were there. I can manually go to the pivot table and manually refresh and all the data
    comes in.
    So I tried adding the VBA code to refresh the pivot table, but the pivot tables will not refresh with data.
    I tried:
    ActiveSheet.PivotTables("WO Pivot").RefreshTable
    and
    ActiveWorkbook.RefreshAll
    And these did not work.
    I also tried recording a macro for the manual steps to refresh and got:
     ActiveSheet.PivotTables("WO Pivot").PivotCache.Refresh
    This does not work either.
    The PivotTable name is correct, but I tried using the number as well, and the name works for other code manipulating the the pivot table.
    e.g.:
    With ActiveSheet.PivotTables("WOPivot").PivotFields("Task Title")
          .Orientation = xlRowField .Position = 2
          .Subtotals = Array(False, False, False, False, False, False, False, False, False, False, _False, False)
    End
    With Why isn't this working? Is there another way to refresh pivot table data in 2010?
    Thanks. P.S. I've tried formating this so it is readable, but it comes out garbled. Hope this looks better.

    The solution above didn't work for me, but the following did the trick:
    ActiveSheet.PivotTables("WOPivot").PivotCache.Refresh
    By the way, I identified it by recording a macro, then going on the Pivot Table that needed refreshing and pressing F9 to refresh it. The line of VBA code above was the result.
    Cheers,
    Marco.

  • Refresh table after creation of new Toplink BO

    Hi,
    i have the following Problem and i hope someone can help me. I use ADF11g/Taskflows with TopLink-mapped BOs (no ADF BC).
    Consider following Taskflow(s):
    main activity is a jsff-page (view) showing a table of BOs. From this view there are two action-outcomes defined called "edit" and "create". The edit-action calls another Taskflow constisting of one pageFragment showing the detailForm of the given BO. This Taskflow has one input and one output parameter (the BO to edit) and has two exists called "save" and "cancel". The add-Action calls a Method called "createNewBO" first and then calls the mentioned Taskflow also. Every Taskflow has ist own managed Bean in the pageFlowScope working as a Controller and DataControl for the TaskFlow and directly included views.
    The edit-action works fine. The add action also except that the table from the default activity of the first taskflow does not refresh after return from the second Taskflow. I tried to set the Refresh-Property in the PageDef to all possible values in combination with the RefreshCondition but no combination works. I can make a manual refresh or change the sorting then the new BO is shown in the table.
    Is there a possibility to call a refresh of a jsff from a taskflow or can i force the refresh on entering the jsff?
    I'm really stuck and appreciate any help ;)
    Friedrich

    You can try this:
    - on your taskflow diagram select the page that contains the table you want to refresh, and add a Page Parameter (from #{true} to #{viewScope.refresh})
    - in pageDef for that page add one invokeAction in executables and point it to methodAction that fills the iterator you want to refresh
    - for newly created invokeAction, set Refresh to ifNeeded and Refresh condition to #{viewScope.refresh}
    This should refresh the iterator each time the page (fragment) is loaded.
    Hope this helps!
    Pedja

  • Table Column Header Text - Refresh Table

    Hi. A question about programmatically changing the Header Text property of a Table Component.
    I've added code, in the backing bean Setter for the Table component, to change the header text as required.
    The problem is that when the page is rendered, the header changes are not displayed initially. Only after a PPR is performed (on a different component) does the table render with my property changes displayed.
    Am I doing the header text manipulation in the wrong place? Is there a way to refresh the table programmatically prior to it rendering initially (e.g. after the RENDER_RESPONSE phase?)?
    Cheers.

    Hi Bala,
    After following your invaluable advice I now have the table displaying more or less as a I need. The labels are set correctly (from the Attribute Hint that I set in the AttrDefImpl), and the Rendered property for each column is now derived from Expression Language pointing to the same AttributeHints...
    However, I'm still struggling with the DisplayIndex for the table columns. I'm attempting to set the DisplayIndex column property using EL that gets a value from the VO binding FieldOrder control attribute (which contains a numeric value). However, this does not resolve properly and in the column Property Inspector the DisplayIndex doesn't seem to display correctly itself...
    I'm wondering if this is because the FieldOrder control attribute is a String while the DisplayIndex takes an Integer. Is there a way to perform some conversion on this in the EL itself? Or maybe that is not the problem.
    Thanks again for all your assistance!

  • SelectOneChoice value needed for find-method to refresh table

    I would like to implement a filter that will filter the dataset, resultset returned by my adf-table.
    The user has to select a value in the dropdown-list and after he has made a selection the table has to be refreshed using the value of the dropdown as a parameter-value for the find-method.
    I'm using a partialtrigger to raise the refresh-event on my table, autosubmit on my dropdown and partialtrigger-attribute on my table. Now I want to pass the value of the selectOneChoice to the key-value pair used for the find-method in my pageDefinition-file.
    What's the best practice to add this parameter-value?

    Frank,
    We tried the ValueChangeListener already on the selectOneChoice-component, but the listener doesn't get fired when you choose a new value in the selectOneChoice. Only the first time the method in our backing bean is accessed, and no other times.
    We are using datacontrols based on ejb 3.0 session beans as our persistence layer instead of BC and we would like to put the chosen value of the selectOneChoice-component in the parameter of our method binding. We should be able to it in the same manner as you've mentioned in the example, by accessing the paramMap.
    Thanks for the advise !

  • Refreshing Table control

    HI,
    I have developed a screen which is having a table control, i have entered some dat in the table control...If i entered the value mistekenly...and if i am trying to change a value and press enter then its not changing the value...its displaying old value only...How to get the new value in the screen and internal table.
    Kishore

    Hi
    ZTBLDEMO
    *& Report  ZUSRDATA                                                    *
    INCLUDE ZTBLDTOP.                      " global Data
    INCLUDE ZUSRDO01.                    " PBO-Modules                   *
    INCLUDE ZUSRDI01.                    " PAI-Modules                   *
    INCLUDE ZUSRDF01.                    " FORM-Routines                 *
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'FOR100'.
      SET TITLEBAR '100'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  DISPLAY_USERDATA  OUTPUT
          text
    MODULE DISPLAY_USERDATA OUTPUT.
        READ TABLE ITAB_PHONELIST INDEX TCTRL_PHONELIST-CURRENT_LINE.
        IF SY-SUBRC EQ 0.
            RECORD-NAME = ITAB_PHONELIST-NAME.
            RECORD-PHONE = ITAB_PHONELIST-PHONE.
            RECORD-EMAIL = ITAB_PHONELIST-EMAIL.
        ELSE.
            EXIT FROM STEP-LOOP.
        ENDIF.
    ENDMODULE.                 " DISPLAY_USERDATA  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
        SAVE_CODE = OK_CODE.
        CLEAR OK_CODE.
        CASE SAVE_CODE.
            WHEN 'BACK'.
                CALL FUNCTION 'COPO_POPUP_TO_GOON'
                    EXPORTING
                         TEXTLINE1 = 'Any modifications will be lost!'
                         TEXTLINE2 = 'Are you sure?'
                         TITEL     = 'Exit The Program'
                    IMPORTING
                         answer    = confirmation.
                if confirmation = 'G'.
                    LEAVE PROGRAM.
                ENDIF.
            WHEN 'DELE'.
                CALL FUNCTION 'COPO_POPUP_TO_GOON'
                    EXPORTING
                         TEXTLINE1 = 'Selected rows will be deleted!'
                         TEXTLINE2 = 'Are you sure?'
                         TITEL     = 'Delete rows'
                    IMPORTING
                         answer    = confirmation.
                IF CONFIRMATION = 'G'.
                    REFRESH ITAB_PHONELIST.
                    CLEAR ITAB_PHONELIST.
                ENDIF.
            WHEN 'SAVE'.
                REFRESH ITAB_PHONELIST.
                CLEAR ITAB_PHONELIST.
            WHEN 'APND'.
                REFRESH ITAB_PHONELIST.
                CLEAR ITAB_PHONELIST.
            WHEN 'READ'.
                IF NOT FILENAME IS INITIAL.
                    CALL FUNCTION 'COPO_POPUP_TO_GOON'
                        EXPORTING
                             TEXTLINE1 = 'Any modifications will be lost!'
                             TEXTLINE2 = 'Are you sure?'
                             TITEL     = 'Read Another File'
                        IMPORTING
                             answer    = confirmation.
                ENDIF.
                if confirmation = 'G' or
                   FILENAME IS INITIAL.
                    CALL FUNCTION 'UPLOAD'
                        EXPORTING
                             FILENAME            =
                            'c:\temp\fonelist.txt'
                        IMPORTING
                             ACT_FILENAME        = FILENAME
                         TABLES
                              DATA_TAB            = ITAB_PHONELIST.
                ENDIF.
        ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  EXTRACT_USERDATA  INPUT
          text
    MODULE EXTRACT_USERDATA INPUT.
        CASE SAVE_CODE.
            WHEN 'DELE'.
                IF SELECTION IS INITIAL AND
                   confirmation = 'G'.
                    PERFORM TRANSFER.
                ENDIF.
            WHEN 'SAVE'.
                PERFORM TRANSFER.
            WHEN 'APND'.
                PERFORM TRANSFER.
        ENDCASE.
    ENDMODULE.                 " EXTRACT_USERDATA  INPUT
    *&      Form  TRANSFER
          text
    -->  p1        text
    <--  p2        text
    FORM TRANSFER.
        CLEAR ITAB_PHONELIST.
        ITAB_PHONELIST-NAME = RECORD-NAME.
        ITAB_PHONELIST-PHONE = RECORD-PHONE.
        ITAB_PHONELIST-EMAIL = RECORD-EMAIL.
        APPEND ITAB_PHONELIST.
    ENDFORM.                    " TRANSFER
    *&      Module  USER_COMMAND_0100_AFTER_LOOP  INPUT
          text
    MODULE USER_COMMAND_0100_AFTER_LOOP INPUT.
        CASE SAVE_CODE.
            WHEN 'SAVE'.
                CALL FUNCTION 'DOWNLOAD'
                    EXPORTING
                         FILENAME            = FILENAME
                    TABLES
                         DATA_TAB            = ITAB_PHONELIST.
            WHEN 'APND'.
                 CLEAR ITAB_PHONELIST.  " a blank row being created.
                 APPEND ITAB_PHONELIST. " a blank row being added.
        ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100_AFTER_LOOP  INPUT
    Regards
    Pavan

  • Memory leak when refreshing table models

    Hi,
    I have a memory leak in a GUI app, and i have traced the problem down to some JTables I have which display data from a database (I used Netbeans profiler to look at the number of objects created for different classes, and there are a large number of classes like com.mysql.jdbc.ResultSet, com.mysql.jdbc.Statement, com.mysql.jdbc.Field[] accumulating, aswell as lots of byte[] and char[] arrays). The allocation stack traces for these objects seem to point to my table models where I do a lot of database lookups to create the model.
    Every time I am refreshing the tables, the Heap Space increases by a few MegaBytes, and a load of objects get created and retained. After refreshing the tables a number of times, the heap eventually gets filled and I get OutOfMemory error.
    The problem is I don't understand how this is happening - when the tables are refreshed, the code I use is something like this:
    setModel(new MyTableModel());
    So theoretically each time I refresh, the old model should be garbage collected (because setting the new model means there are no references to the old model), but I get the feeling that all the models are accumulating in the heap and not being collected. I dont understand why this could be - I was wondering if anyone had any ideas? (PS My table models dont use any static fields)
    Cheers,
    james

    Hi JacobsB,
    The reason I'm setting new models (which I dont normally do) is that each time the table is refreshed, the number and type of columns may change. Since altering the column model is quite complicated (there is no convenient removeColumn() method of any of the standard model classes) and involves messing around with the column model, which ends up screwing up the whole model (e.g. column renderers, column count, column class etc.) I decided it was actually easier to just create a new model instead! Is there a way to alter the column structure another way?
    later,
    James

Maybe you are looking for