Refresh the table after closing the Popup iView

Hi all,
I have list of survey in my table. In that table i have toolbar button(DELETE) for deleting the survey. While deleting the survey it asks the confirmation. If we click Ok it delete the selected survey and close the popup also. what I want is I should refresh the table after closing the Popup.How can i achieve this?
Help me in this regard.
Thanks & Regards,
Hemalatha J

Hi Hema,
Check this link.
Visual Composer - You can do anything....
In this blog, they are used 'Refresh' Button and a Hidden 'Plain text' message to solve this problem. If you are satisfy with this you can take this solution.
Or you can try to trigger the 'Submit' action of 'Input form' once again from the 'Popup window' when the 'Delete' button is clicked.
Hope it helps...
Regards
Basheer
Edited by: Basheer on Dec 23, 2008 8:03 PM

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

  • How to refresh the popup evrytime when i am clicking the button?

    Hi,
    My requirement is i have one button on that i place popup in this pop i drag one taskflow which is having fragment that fragment is mapping with crateinsert
    so when i am pressing this button pop is generated with inserting mode after that i add data save also successfully completed. then adding for another record
    press this button the data is not refreshed previous entered data only opened ..
    can anybody help me this issue
    Thank you.

    The problem is that you have to refresh the btf inside the popup. For this to work you have to do a couple of steps which you can read in Frank's sample no. 53 'Refresh a bounded task flow displayed as an ADF Region in a popup' at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples
    Timo

  • Dynamic Action on "Get Focus" After Closing a Popup Window

    Hi,
    From one of APEX Application Pages I am calling a Popup Window where users can create a new record. In the Popup Window once the record is created and window is closed, I want to refresh the region on the main page to show the record created in the popup window.
    How do I create a dynamic action which will fire when the main APEX window gets the focus (after the popup window is closed). ?
    Any pointers will be greatly appreciated.
    Thanks & Regards,
    Ashish Agarwal
    http://www.asagarwal.com

    Assuming that you have a dynamic action in the parent page which refreshes the region
    <li> Make a note of the event which triggers your dynamic action, lets call this event A.
    <li> Create a JS function in parent page which triggers event A when called.
    For example if your Dynamic Action trigger is a button(id ="P100_REFRESH") press event
    Your JS function could be
    function Trigger_refreshRegion()
      $('#P100_REFRESH').click();
    The way in which you simulate the Dynamic action deoends on the firing event that you have used, so modify it appropriately.
    <li>Now in the pop up page, if you are closing the page in JS using smthing like window.close() or so,
    just call the parent page's refresh JS function there using the
      opener.Trigger_refreshRegion(); //whatever was the name of the function that you created.

  • How to disable a commandbutton  from bean after closing a popup.

    Hi,
    I have a scenario where there is a popup with a button.On click of the button the popup must close and all the buttons in the parent page must be disabled.
    I tried the following to disable the button in the parent page:
    commandbutton1.setDisbled(true);
    AdfFacesContext.getCurrentInstance().addPartialTarget(commandbutton1);
    But it doesn't work.Am I missing something here ?
    Thanks!
    Rohit

    seems like the page is getting refreshed after your code..
    Try keepng the button used to close the popup as partialSubmit="True"

  • How to invoke task flow navigation after closing inline popup?

    Using JDev 11.1.1.3; I have a commandButton that currently executes task flow navigation when pressed. I need however to invoke an inline popup from the button press before executing (conditionally) the task flow navigation. The Action setting on the button then needs to be removed, but it's not clear where to reinstate it. I have the button executing some managed bean code, which conditionally invokes the inline popup, and when the popup (contains af:dialog) is closed, I have some more managed bean code that determines whether the task flow navigation should occur or not. What I need to know is how to fire off the Action from the managed bean. Any suggestions?
    Thanks,

    1. To add to Timo's solution:
    you can call those code from DialogListener like:
    public void dLstnr(DialogEvent dle){
    if("ok".equalsIgnoreCase(dle.getOutcome().toString())){
    FacesContext context = FacesContext.getCurrentInstance();
    NavigationHandler nh = context.getApplication().getNavigationHandler();
    System.out.println("1");
    nh.handleNavigation(context, "", "go");
    2. As another solution:'
    you can have custom buttons and on one of then (say OK or Yes) you can call bean method like this as Action:
    public String actionMethod(){
    // DO YOUR LOGIC
    return "NEXT_TARGET";
    for Other button (say Cancel, NO) just close the popup.
    Amit

  • Java displays only one time the popup of certificates

    Hello all,
    I work with an applet and without PKCS#11. The workflow is :
    1 - establish a SSL connection without certificate
    2 - import a certificate into the smartcard (in C)
    3 - establish a SSL connection with the previously imported certificate
    All steps do not require to remove the card. The certificate are got from the browser.
    In a first step, I establish a SSL connection without certificate to access to some cgi files. I insert a certificate into the smartcard and close the current SSL connection to establish a SSL connection using this certificate.
    In the first step, Java displays the popup which shows the certificate (from browser). But, for the second step, when I want to make a SSL connection, Java doesn't display me the popup and I can't make the connection with the certificate.
    Well, I tried the following things without success :
    - to use the keystore of Windows to access to the certificate but the list of the certificates is not updated.
    - to manage the SSL connections with JavaScript (Dojo toolkit...) but the applet loses his interest (ActiveX).
    - to pass the SSL handshake to the C using the private key... (beurk)
    Do you have any ideas of how can I realize the last step of my workflow in java ? How to refresh the popup? How to display again the popup?
    Thank in advance.

    There is no exception thrown.
    The popup is this one [Screenshot of the certificates|http://yfrog.com/elselectcertificatej] and is only displayed at the first SSL connection. When you accept (Ok or Cancel) the certificates, subsequent hits to this site doesn't display the certificates. After importing the certificates into the smartcard, I want to use the imported authentication certificate to access to a restricted cgi.

  • Passing selected rows in a table to Popup Iview

    Hi all,
    I have a main iview in which i search and display some data in a table. Users can select multiple rows from the table and upon clicking on a button in the table toolbar, all the selected rows should be passed to a popup iview.
    But, when i tried, only one value is passed to the popup.
    I need to update a set of rows together from the popup iview.
    Is it a limitation of pop iviews in VC, or did i miss out anything?
    I have selected "multiple select" option for the source table.
    Can anyone advice us on this???
    Thanks alot in advance
    Shobin

    Hi Sreeni,
    Thanks alot for your reply.
    As I saw in some forum posts in SDN, multiple data rows can not be passed to a pop up.
    My application has a list of submitted appointment orders which the authorized person can  approve. I wanted a popup in order to provide a confirmation message when the user multi select and approve many AOs together.
    I found a work around without using pop ups. Instead, I used layers to show the confirmation message. I passed the selected rows to another table using signal in and out.
    It works now.
    Thanks alot
    Shobin

  • Visual Composer popup iview

    Can anyone tell me how to pass in information to the popup iview without hard coding?

    Hi Wong,
    If you're new to VC7.0, please refer to the modeller's and reference guides. They are very useful.
    Modeller's guide: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f2052e-0c01-0010-b9a2-e1f7457a7fbe
    Reference guide:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9326072e-0c01-0010-bc97-f72e93338101
    You can find signalin, signal out, data store in the Compose Model task panel.
    Signal in: If you have2 iViews connected through eventing, signal in receives the values of the fields that are output from the signal out with the same name, in the corresponding iView.
    Signal out: Signal out sends the fields to the signal-in of the corresponding iView that receives the data of the event. For example, the Out signal may send Employee Name to the second iView, so that the In signal of the second iView sends the value to its data service, which generates the employee details.
    Data store: This will hold any data temporarily for later use.
    Regards,
    Vani

  • How to refresh the page/table after completion of taskflow in popup

    Hi,
    Scenario:
    In main page, having an emp-table and popup(which contains taskflow as region). In taskflow, iam modifying the emp-table data and after successfully completion of taskflow, want to refresh the emp-table present in the main page. How can we do this...?
    Note:
    (1) In Taskflow last activity is 'taskflow-return', where iam commiting all the data.After this i want to refresh the emp-table,(pop-up closes when it reaches last activity).
    (2) Tried PPR in bean code of main page, it refreshes, but before commiting.
    Something like, Refreshing the entire page either closing/hiding of popup, will help......?
    Regards.

    try with regionNavigationListener:
    public void myRegionNavigationListener(RegionNavigationEvent event) {
          String newViewId = event.getNewViewId();
          if (newViewId == null) { // null new view id indicates the taskflow has ended !
                refreshEmpTableSomehow();
    }As one alternative, take a look at my last message from this thread:
    Re: How to handle the "cancel" button and "close" icon of a popup ?
    Edited by: Cvele_new_account on Oct 5, 2012 12:19 AM

  • How to refresh the table after change value in the VO programatically?

    Hi,
    I like to update my table by using a popup. My problem is that the table does not refresh after I change the value in the table's VO by the popup.
    There is another table in the popup, and the popup is triggered by a command button. An af:showPopupBehavior is nested in the button. The method of the button in backing bean is as following,
    public void accountcodeButtonClicked(DialogEvent dialogEvnt) {
    ViewObject volisttable=am.getAcChartValidateView1();
    String nowcode=volisttable.getCurrentRow().getAttribute("Code").toString();
    ViewObject vobasetable=am.getGlDetailView1();
    vobasetable.getCurrentRow().setAttribute("AccountCode",nowcode);
    The partialTrigger of the base table's column AccountCode points to the triggering button.
    I do not know why the base does not refresh after the above method is executed.
    Please me.
    Stephen

    Hi,
    kind of a shame that after so many years of ADF the message that updates should be through the binding layer hasn't gone through ;-)
    You change the underlying business service, which doesn't impact the binding layer the way you do it. So here is what you can try in the same order
    - 1. RequestContext.getCurrentInstance().addPartialTarget(<table reference>)
    - 2. If 1. doesn't show the changed data, try and re-execute the iterator that is the base of the table. If this works then the effect you see is caused because you ignore using the binding layer
    Frank

  • After REFRESH the cached object is not consistent with the database table

    After REFRESH, the cached object is not consistent with the database table. Why?
    I created a JDBC connection with the Oracle database (HR schema) using JDeveloper(10.1.3) and then I created an offline database (HR schema)
    in JDeveloper from the existing database tables (HR schema). Then I made some updates to the JOBS database table using SQL*Plus.
    Then I returned to the JDeveloper tool and refreshed the HR connection. But I found no any changes made to the offline database table JOBS in
    JDeveloper.
    How to make the JDeveloper's offline tables to be synchronized with the underling database tables?

    qkc,
    Once you create an offline table, it's just a copy of a table definition as of the point in time you brought it in from the database. Refreshing the connection, as you describe it, just refreshes the database browser, and not any offline objects. If you want to syncrhnonize the offline table, right-click the offline table and choose "Generate or Reconcile Objects" to reconcile the object to the database. I just tried this in 10.1.3.3 (not the latest 10.1.3, I know), and it works properly.
    John

  • Refreshing Entity Objects after Altering the table

    Hi,
    My Entity Object is based on a table... and View Objects on the Entity Objects. Now if I alter the table (just changing the width of the column), that change is not visible on the Entity Object. Is there any way I can automatically refresh the Entity Objects after altering the table(only column width is changed).
    (Changes made to Entity Objects manually are reflected in the View Object correctly.)
    Regards
    Faiyaz

    'changing the width of the column' means changing the size of the column in the table description in the database. For e.g.. In the original table I had a column OIL_KEY NUMBER(6). Now I change the column to be of size 12 i.e. OIL_KEY NUMBER(12). This does not get refreshed in the Entity Object.

  • Maintain the current row position of a table after refresh.

    Hi,
    I use a poll to refresh tables continuously. when a table is refreshed, the current referring row is reset.
    To maintain the current row position after a refresh I use the following poll method.
    public void refreshTableT1(PollEvent pollEvent) {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding dcb = fctx.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer bindings1 = (DCBindingContainer) dcb.getValue(fctx);
    DCIteratorBinding dciter = bindings1.findIteratorBinding("<VOIterator>");
    if(dciter!=null){
    if(dciter.getCurrentRow()!=null){   
    Key current_row_key = dciter.getCurrentRow().getKey();
    dciter.executeQuery();
    if(current_row_key!=null){
    try{
    dciter.setCurrentRowWithKey(current_row_key.toStringFormat(true));
    }catch(Exception ex) {
    System.out.println("Exception in current_row_key");
    }This works for normal tables well. But when I use it to master-detail tables (pair of tables) it does not.
    At the master-detail tables, before the first data fetch, it works well. if we go below the first data fetch, it sets the current row into another position.
    how can I overcome this...??
    Thanks,
    Dinuka.

    Hi Mr.Frank,
    I have an association in two VOs.
    for example: There are 2 tables called Emp and Dept. Every Department has Employees. so there is an association (both tables have a common column). Master table is the Dept table. when you click on one record of the Dept table Detail table will show the details of the employees belongs to that selected department. That's what I referred as master-detail tables. first one is master table; second one is detail table.
    When the web page loads all the table data is not fetched from the db (it will depend on the fetch size). when we scroll down the table data fetch happens again and again.
    think my data fetch size is 25 rows per time.
    Suppose we use mine poll method and think I have clicked on the 20 ^th^ row of table1(master table). then the table2 will display details belongs to selected department. that is OK even after refresh. that works well.
    when I go to 30 ^th^ row data fetch will happen (my fetch size = 25)
    when I click on the 30 ^th^ row of the table1(master table), table2 will display details belongs to selected department. but after the poll method is called the selected row at the table1 disappears and is set to another position. now the 30 ^th^ row is not in the 30 ^th^ position. but it is the selected row and table2 displays correct details.
    I think you have got the problem now. :D
    Thanks a lot.
    Dinuka.

  • Is it able to refresh the table view automaticlly after trigger an event?

    Hi expert,
    I have one table view and a "Delete" button, each time when the user click the del button, it will delete the row which is selected via a RFC module in the backend, afterwards, I want this table view to be refreshed and read the real data from backend via another function module, is it possible? how could I do it?
    Thanks and best regards

    Let me do some summarize if my understanding is correct
    1. Use a timer as "start" point of a table view, set the "interval" to be 0.05 minute
    2. use the condition in the timer with a formula (BOOL(STORE@RETURN_CODE==0)).
    3. If I trigger one event in the "table view", for example, a "Delete" event and it will return the result RETURN_CODE = 0 to datastore
    4. Afterwards, if the time interval of the timer has been reached, 1st it will evaluate the value of the datastore and decide whether to refresh the table view.
    Am I right?
    Just as you mentioned before, it is not a perfect solution, as we may still wait for the timer to be triggered after a few seconds.
    Thanks for your answer.

Maybe you are looking for

  • BALANCE IN TRNSACTION CURRENCY

    HI I am facing a problem in posting excise invoice. Here we created a import PO with Acc. cat "A" Commercial invoiced in posted. But at the time of posting CVD Add Duty ECS and Secess J1IEX  ( POST-->INTERNAL NO. XXXXX ) IN GR (MIGO) Option selected

  • Portal FAQs

    1. What is ESS and MSS? 2. What is Team Viewer in MSS? 3. How can I integrate the user management of the portal with that of other            systems? 4. What is the difference between portal and web page? 5. When does Portal Development Kit Come int

  • ODI scheduling issue

    I was scheduled one agent, for the first time it took only 20 min to execute, but 2nd time onwards it is taking 7 to 8hrs, I'm unable to find the why it is running more time. what is the issue? can any one help on this?

  • Did my cancellation go through?

    I moved out of the country and cancelled my contract on Mar. 17, 2014. I was told my $400 security deposit should cover my ETF, the previous bill cycle, and the last 10 days of usage. The supervisor I spoke with on the phone told me that, if anything

  • [Off topic] Need some hints where to start

    Hi, I've been out of C++ for around 9 years. (Doing java since then) For an upcoming project I have to get back into it. I've already done quite much execise with STL, boost and ICU. Now I'm looking for a solution for the following problem: I need so