Refresh the popup programmatically

Hello

I use Jdev 11.1.1.6

I have a FA: table in a popup that is to pick up a few lines... I added a link delete next to each line through links.

When I click on the link delete for a particular line... the line is removed and the window closes automatically.

To avoid this, I put the part delivery of property = true for the link delete...

Now when you click on remove link line gets deleted but context does not close which is very good...

Now the problem is... the other buttons on the pop-up window are not working as record, etc...

I like to write code for the link delete where by program I will delete the line and I want to update the popup as well.

Can someone let me know what is the code to update the popup programmatically?

Thank you

Rajesh.

User, things to check:

is the autoCancel property for the popup?

If so, set it to false and try to delete a line without defining the partial submission button.

Timo

Tags: Java

Similar Questions

  • Problem refreshing the popup

    ADF11g:
    I have problem in refreshing the popup.

    On the homepage, there is a table and a column of this table, I put commandImageLink one click on this image that I supposed to open a popup where I display the result of information.

    during the first click on this image, I am able to show the result correctly, but if I change the line and try to click the image once again, of that I am not able see the new result .it antique watch. OnClick, I checked the new result values are extracted by the server, but not reflecting does not Popup.

    Yet one thing i course is only the first time when I click on the image goes to the action method and then open popup but at next until it clicks fisrt popup opens and then call the action method.

    < af:column sortable = "false" headerText = "Actions".
    rendering = "true" width = "50" >
    < af:panelGroupLayout layout = "horizontal" >
    "< af:commandImageLink icon="/image/info.jpg ".
    shortDesc = "Info".
    partialSubmit = "true" action = "#{IssueActionBean.refresh_ContentRevisionInfo1} '"
    launchListener = "#{IssueActionBean.getRevisionLauncherListener}" >
    "" < af:showPopupBehavior popupId = ": popupinfo".
    triggerType = "click on" / >
    < / af:commandImageLink >
    "< af:commandImageLink icon="/image/checkinout.jpeg ".
    shortDesc = "Check in/out" >
    "" < af:showPopupBehavior popupId = ": popupMenu.
    triggerType = 'action '.
    align = "beforeStart" / >
    < / af:commandImageLink >
    < / af:panelGroupLayout >
    < / af:column >
    < / af:table >
    < af:popup id = popupFetchListener = "#{IssueActionBean.getfetchRevisionLauncherListener"popupinfo"}" >
    < af:panelWindow title = "information content".
    inlineStyle = "width: 600px; height: 500px; ">

    < af:table value = "#{bindings.documentRevisions.collectionModel} '"
    var = 'row' id = 'popupinfo1 '.
    Rows = "#{Bindings.documentRevisions.rangeSize} '"
    emptyText = "#{bindings.documentRevisions.viewable?" "{"No line yet.":"Access Denied."}"
    fetchSize = "#{bindings.documentRevisions.rangeSize} '"
    selectedRowKeys = "#{bindings.documentRevisions.collectionModel.selectedRow} '"
    selectionListener = "#{bindings.documentRevisions.collectionModel.makeCurrent} '"
    rowSelection = 'single '.
    inlineStyle = "width: 750px; height: 250px; margin: 20px; ">
    < af:column sortProperty = "revLable" sortable = "true".
    headerText = "#{res}" >
    < af:outputText value = "#{row.revLable}" >
    < af:convertNumber groupingUsed = "false".
    pattern="#{bindings.documentRevisions.hints.revLable.format}"/ >
    < / af:outputText >
    < / af:column >
    < af:column sortProperty = "release date".
    sortable = "true".
    headerText = "#{res}" >
    < af:outputText value = "#{row.releaseDate}" >
    < af:convertDateTime pattern="#{bindings.documentRevisions.hints.releaseDate.format}"/ >
    < / af:outputText >
    < / af:column >
    < af:column sortProperty = "expirationDate".
    sortable = "true".
    headerText = "#{res}" >
    < af:outputText value = "#{row.expirationDate}" >
    < af:convertDateTime pattern="#{bindings.documentRevisions.hints.expirationDate.format}"/ >
    < / af:outputText >
    < / af:column >
    < af:column sortProperty = 'status' sortable = "true".
    headerText = "#{res}" >
    < af:outputText value = "#{row.status}" / >
    < / af:column >
    < af:column sortProperty = 'fact' sortable 'true '.
    headerText = "#{res}" >
    < af:outputText value = "#{row.did}" >
    < af:convertNumber groupingUsed = "false".
    pattern="#{bindings.documentRevisions.hints.did.format}"/ >
    < / af:outputText >
    < / af:column >
    < af:column sortProperty = "docName" sortable = "true".
    headerText = "#{res}" >
    "< af:goLink destination =" #{row.docURL} "text =" #{row.docName} ".
    targetFrame = "_blank" / >
    < / af:column >


    < af:column sortProperty = "docURL" sortable = "true".
    headerText = "#{bindings.documentRevisions.hints.docURL.label}" >
    < af:outputText value = "#{row.docURL}" / >
    < / af:column >
    < / af:table >
    < af:panelFormLayout >
    < / af:panelFormLayout >
    < / af:panelWindow >
    < / af:popup >



    public String refresh_ContentRevisionInfo1() {}
    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
    Object result = operationBinding.execute ();
    Bindings.Refresh ();
    DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
    DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("documentRevisionsIterator");
    iterBind.executeQuery ();
    iterBind.refresh (DCIteratorBinding.RANGESIZE_UNLIMITED);
    Returns a null value.
    }

    {} public void getRevisionLauncherListener (LaunchEvent launchEvent)
    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
    Object result = operationBinding.execute ();
    Bindings.Refresh ();
    DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
    DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("documentRevisionsIterator");
    iterBind.executeQuery ();
    iterBind.refresh (DCIteratorBinding.RANGESIZE_UNLIMITED);


    }


    Thanks for any help.
    Katie

    Try to set the attribute contentDelivery of the pop-up window to layzUncached and see if that helps.

    If this is not the case, try to send a ppr to the pop-up window.

    Timo

  • How to refresh the Popup form, when it is in mode insert create?

    Hello

    When I press on Jsp page it gives dialog popup (Dept table) is to create the insert mode button, am going to some input values and close the pop-up window (not committed or cancel).

    and the call button again once it appears as a mode of updating...

    I use Jdeveloper 11.1.2.3.0 and Oracle10g...

    Hope this answer.

    you have set the popup contentDelivery to be lazyUncached?

  • How can I display an error message on the listening port close popup without closing the popup.

    Hi Experts,

    JDeveloper 12.1.3.0.0

    How can I display an error message on the listening port close popup without closing the popup.

    Thank you

    Roy

    As its name suggests, close listener of popup is called when popup is closed so you can not do this.

    If you want to display the popup message, use your own buttons instead of the ok/cancel default buttons and close the popup programmatically.

    Dario

  • Closing popup programmatically.

    Hi all

    I use Jdeveloper 12.1.2.0.0. I need to close the popup programmatically.

    The popup is inside a page fragment that is included in another fragment of page.

    I use viewscope bean, so I can't link the popup directly. So I am using the following code.

    ExtendedRenderKitService extRenderKitSrvc = Service.getRenderKitService(fc, ExtendedRenderKitService.class);
            extRenderKitSrvc.addScript(fc, "AdfPage.PAGE.findComponentByAbsoluteId('" + "p1" + "').hide();");
    

    P1 is the id of the pop-up window.

    It does not work. Why does this work?

    Thanks in advance,

    Vignesh S.

    Hello

    his does not work because the popup on the client ID is not p1, but also contains containers of naming as regions. So most likely the popup is r1:r2:p1 if it is contained in a nested page fragment. However, you can close the popup using Java

    ComponentUtils (Apache MyFaces Trinidad API 2.0.2 - SNAPSHOT API)

    The ComponentUtils class has a findRelativeComponent method that performs a search. So, if the point of invocation the popup is located in region 1 region 2--> then the 'from' is r1:r2 looking for. The p1 component, you get in return is of type RichPopup and exposes a method to hide the dialog box

    Frank

  • How to refresh a popup before showing

    I have a button that displays a pop-up window and it works fine.

    < af:commandButton text = 'Customize' id = 'customizeButton' >

    < af:showPopupBehavior popupId = "dataFilterPopup" / >

    < / af:commandButton >

    I added a partialTriggers for the popup, then when the button is clicked it would refresh the pop-up window:

    "< af:popup id ="dataFilterPopup"contentDelivery = binding =" #{pageFlowScope.myBean.popup "lazyUncached"} "popupFetchListener =" #{pageFlowScope.CountryReportBean.myBean.popupFetchAction} "partialTriggers ="customizeButton">

    But the content of the pop-up window is not updated.

    JDev 11.1.1.6.0

    Rather than refresh the popup Refresh dialog box or whatever your first item to layout on the shortcut menu.

    Timo

  • Refresh the components within a specific line of an af:table programmatically

    How do I refresh the components within a specific line of an af:table programmatically without refreshing the entire table? _

    I have an af:table to display a view read-only object. There is a button change in the table by calling an af:popup, where the user can update the information and click on a submit button to commit its changes.
    The action of this button property is a method in a holder in the summer where
    -1: a stored procedure is called to update several tables (related to my read-only VO).
    -2: the VO is re-interviewed (refreshQueryKeepingCurrentRow() VO.)
    -3: updating of the whole table (AdfFacesContext.getCurrentInstance () .addPartialTarget (myTable))

    Is it possible to programmatically refresh some components of the current row in the table without refreshing the entire table (point 3)?

    I tried to play with the property "partialTrigger" to af: outputText (table: column: outputText), without success.

    Thank you

    Nicolas

    OK, that's a very clear answer, thank you.

    Now, first do a little optimization:

    if(!StringUtils.isStringEmpty(results) && results.equals("TRUE"))
    // should be
    if ("TRUE".equals(results))
    // since it's faster, simpler and requires one less dependency
    

    For your use case, you can say you want to always refresh the line, then you could link the table in your backing bean, retrieve the selectedRowKeys and then set the key for the current line on the model in the collection before adding the partial target. So, something like:

    Set selectedKeys = table.getSelectedRowKeys();
    assert selectedKeys.size() == 1;
    Object old = table.getRowKey();
    try
    {
        table.setRowKey(selectedKeys .iterator().next());
        addPartialTarget(outputText);
    }
    finally
    {
        table.setRowKey(old);
    }
    
    

    p.s. I checked the table rendering code to be sure and partial updating of the contents of the line must be possible without refreshing the entire table.

    Kind regards

    ~ Simon

  • Refresh the Parent page after closing the popup

    Hello

    I open the pop for that insert data and then I want to see the page parent page refresh after closing of pop either perform cancel or closing popup using X.

    try like this

    < af:commandLink text = ' #{rank. " DEPTNO}"id ="cl1"partialSubmit ="true"returnListener =" #{backingBeanScope.backing_DeptDBFace.backFromPopup} ">
    "" < af:showPopupBehavior popupId = ': p1 ' triggerType = 'action' / >
    < af:returnActionListener value = "10" / >
    < / af:commandLink >

    When this method ({. backing_DeptDBFace.backFromPopup}) contains the PON - Stmts which are not executed after the closure of the pop-up window

    Thank you

    Venaktn

    Hello

    Try to use the popupCanceledListener. (af:popup)

    This event will happen only when you click the X or cancel the popup.

    Kind regards

    Ruben

  • Refreshing the page does not not after the closing of popup.

    I have a main page that has a list that includes a list of elements. And there is a button create that opens a popup to create a new line. I have 2 buttons on the popup, create and cancel.

    The page contains a workflow in which I have an activity back to the home page.

    Action = "return" the Cancel button on the shortcut menu to return to the home page.

    But when I click on cancel, I will return to the home page but the page is empty.  I have partialTriggers on the homepage of listView set the id of the button.

    Help, please.

    I had partialTrigger the button on the shortcut menu.

    Instead if I set the partialTrigger for the popup itself, refresh works fine.

  • refresh the report after you close the modal popup

    Hello

    I try to call page editing as popup modal as in this example below.

    http://Apex.Oracle.com/pls/Apex/f?p=45420:3:0:no:

    It works fine, but after you change/update a registration and closing of the edit page, is not refresh the main report page (first). How can I change so it refresh the report calling when closed. Please NOTE: I do not want to refresh the whole page, but only the report after you close the page modal popup.

    Apex 4.2

    Thank you in advance... regards

    It worked, now missed me the branching code and the parameter by js... Thank you

  • Refresh the data in the 'main' page update Popup

    I have several pages with links URLs to popups to make updates of the data on the 'main' page
    My problem is that once the user modifies the data through the popup page, they must click the Refresh button to get this area for update on the "main" page to reflect the changes, they did on the shortcut menu.

    Is it possible to have a page automatically refresh when data are changed on a separate page (popup)?

    Thank you very much for your understanding.
    -Reid

    Hey Reid,

    Hope this link will help you regarding what you are looking for:

    Re: Update of Popup window

    Kind regards
    Blabla

  • Refresh the table after popup

    I have a popup that the user gets when they click my button 'Add '. The form inside the pop-up window is linked to the same database as the table.
    The table that his partialTrigger is configured for the popup and when I opened the popup, I see the new row in the table which is ok. However, when I click the ok button in my popup and data are saved in the database (with a commit), the table does not get updated.
    How can I do so?

    These are fragments of my code:

    the table:
    <af:table value="#{bindings.RekeningFullVO1.collectionModel}"
                                var="row"
                                rows="#{bindings.RekeningFullVO1.rangeSize}"
                                emptyText="#{bindings.RekeningFullVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
                                fetchSize="#{bindings.RekeningFullVO1.rangeSize}"
                                rowBandingInterval="0"
                                filterModel="#{bindings.RekeningFullVO1Query.queryDescriptor}"
                                queryListener="#{bindings.RekeningFullVO1Query.processQuery}"
                                filterVisible="true" varStatus="vs"
                                selectedRowKeys="#{bindings.RekeningFullVO1.collectionModel.selectedRow}"
                                selectionListener="#{bindings.RekeningFullVO1.collectionModel.makeCurrent}"
                                rowSelection="single" id="t1"
                                partialTriggers=":::popAdd">
    the pop-up window:
    <af:popup id="popAdd" popupFetchListener="#{RekeningBean.addPopup}"
                      contentDelivery="lazyUncached"
                      popupCanceledListener="#{RekeningBean.cancelAdd}">
                <af:dialog id="dlgAdd" title="Rekening toevoegen" dialogListener="#{RekeningBean.addListener}"
                        affirmativeTextAndAccessKey="Toevoegen" cancelTextAndAccessKey="Annuleren">
    RekeningBean:
        public void addPopup(PopupFetchEvent popupFetchEvent) {
          BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
          OperationBinding createInsert = (OperationBinding) bindings.get("CreateInsert");
          createInsert.execute();
          
          if(createInsert.getErrors().size() > 0) {
              List errors = createInsert.getErrors();
              Iterator it = errors.iterator();
              while(it.hasNext()) {
                  System.out.println("Error: " + it.next());
              }
          }
        }
        
        public void cancelAdd(PopupCanceledEvent popupCanceledEvent) {
          BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
          OperationBinding createInsert = (OperationBinding) bindings.get("Rollback");
          createInsert.execute();
          System.out.println("Rollback");
        }
        
        public void addListener(DialogEvent dialogEvent) {
          if(dialogEvent.getOutcome().name().equals("cancel")) {
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            OperationBinding createInsert = (OperationBinding) bindings.get("Rollback");
            createInsert.execute();
            System.out.println("Rollback");
          }
          else if(dialogEvent.getOutcome().name().equals("ok")) {
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            OperationBinding createInsert = (OperationBinding) bindings.get("Commit");
            createInsert.execute();
            
             System.out.println("Commit");
          }
        }
    So when I run the validation, the table must be informed that the data has been updated but who can't... My popup closes and the blank line in the table remains the same. When I press F5 to refresh the page, I see my data. How can I do this without making the F5?

    I guess the problem is that the trigger part that you put on the table gets called before validating the data in the code of the bean.
    Try adding a partial trigger in the bean code that refreshes the table.
    Put an ID to your table (or link the table to the bean), then use the code below to trigger an update after the transaction commit or rollback.

    
               UIComponent ui = JSFUtils.findComponentInRoot("tableid");
               RequestContext.getCurrentInstance().addPartialTarget(ui);
      
    

    Here is the code for the findCommponentInRoot method:

        /**
         * Locate an UIComponent in view root with its component id. Use a recursive way to achieve this.
         * Taken from http://www.jroller.com/page/mert?entry=how_to_find_a_uicomponent
         * @param id UIComponent id
         * @return UIComponent object
         */
        public static UIComponent findComponentInRoot(String id)
        {
            UIComponent component = null;
            FacesContext facesContext = FacesContext.getCurrentInstance();
            if (facesContext != null)
            {
                UIComponent root = facesContext.getViewRoot();
                component = findComponent(root, id);
            }
            return component;
        }
    
        /**
         * Locate an UIComponent from its root component.
         * Taken from http://www.jroller.com/page/mert?entry=how_to_find_a_uicomponent
         * @param base root Component (parent)
         * @param id UIComponent id
         * @return UIComponent object
         */
        public static UIComponent findComponent(UIComponent base, String id)
        {
            if (id.equals(base.getId()))
                return base;
    
            UIComponent children = null;
            UIComponent result = null;
            Iterator childrens = base.getFacetsAndChildren();
            while (childrens.hasNext() && (result == null))
            {
                children = (UIComponent) childrens.next();
                if (id.equals(children.getId()))
                {
                    result = children;
                    break;
                }
                result = findComponent(children, id);
                if (result != null)
                {
                    break;
                }
            }
            return result;
        }
    

    Timo

  • The Popup window refresh

    I have a pop up window that allows an employee to apply for compensation. The request is treated as a collection. For now, I have a button in the area that I use to save the form, but the user must always close the pop-up (manually) and manually refresh the parent page to see the changes.

    I was looking at this thread:
    Re: close the window popup and refresh the parent window

    but I can't get things to work. If I use the code, my popup closes without saving changes and updating takes me back to page 1 to my request - neither of which are behaviors you want.

    Can someone help me?

    blarman74 wrote:
    I have a pop up window that allows an employee to apply for compensation. The request is treated as a collection. For now, I have a button in the area that I use to save the form, but the user must always close the pop-up (manually) and manually refresh the parent page to see the changes.

    I was looking at this thread:
    Re: close the window popup and refresh the parent window

    but I can't get things to work. If I use the code, my popup closes without saving changes and updating takes me back to page 1 to my request - neither of which are behaviors you want.

    Can someone help me?

    Hi blarman,

    I do not understand how this example you posted on apex.oracle.com covers the original thread you linked to. For example, I don't see where you call the popup of? is page 1 the popup? What is the parent page?

    By the way, the solution that I put forward in the thread you linked does not work for me in a project, I've been working at this moment, I can't explain why. But as a work-around, in the success of the DTF process message you can just put in:

    
    

    This will cause the window to close once the DML process succeeds. And then submit the page parent, causing a refresh. You can do an alert of a description to inform the user that the process was a success.

    Van
    Trent

  • Refresh the page Popup

    Hi guys,.

    This is the scenario:
    When the user clicks the button on the Home Page a PopUp page opens, where the user enters data (for example EmpNo and EmpName - on the PopUp Page) in a form and click on the button create, when the user clicks on the button to create the PopUp page closes and a record is inserted into the database.

    On the main page (which also contains text of the EmpNo and EmpName fields) when I look at the list EmpNo, I see not the new EmpNo added, but when I refresh the home page and select the drop of EmpNo, then I see the new EmpNo I added

    Is there a way to jump the refreshing part of the Home Page
    and also have the new data displayed on the home page once the popup page form is created on the click on the button create?

    Thank you for your help and suggestions
    Jesh

    Jesh,

    I have modified the page 3 and added popup "window.opener.location.reload (true)"; after the self.close in the outgoing javascript (create button).

    Thank you
    Matt.

  • Refreshing the page creates a new record – how to avoid this?

    I have a 'submit' button that runs a 'record insertion.

    After insertion is made I branch (back) to this same page.

    The problem is that when I hit page refresh the folder gets reinserted.

    How to avoid this behavior?

    AZZ says:

    fac586,

    Yes. You are right. It was a late semi written post. My apologies. You must stop working after midnight.

    Let me clarify:

    I have a SUBMIT"" button.

    There are the conditional 'after send' (if the key) process.

    the process calls a function that inserts a new record in the table.

    Question:

    How can I avoid running the process on refreshing the page?

    I've simplified the situation - no record insertion. However, if you refresh the page the success of the function call message will be displayed.

    https://Apex.Oracle.com/pls/Apex/f?p=4000:1:126172565551184:no:RP:FB_FLOW_ID, F4000_P1_FLOW:21325, 21325

    user/pass help/help

    workspace - AZ_

    To reproduce:

    Click on the submit - observe green popup "OK!"

    Refresh the page (F5 or ctrl-R) - see 'OK!' again.

    No process is executed to see the page or page refresh. This can be confirmed by looking at track of debugging to see the processing page. The page contains no defined process to run at a show of page processing point; None of the calculations which could call a function that could not perform an insert as a side effect; None of the dynamic actions or calls JS could initiate an insertion using AJAX; Neither the source region contains any code that could do it. I'll draw the line search conditions that can contain deeply buried code which could be responsible and direct you to a previous thread of the same nature: success of process Message not tied to Conditions.

  • Maybe you are looking for

    • Request the password twice

      I upgraded my MacBook Pro (2015) to macOS Sierra today and immediately got into trouble. Its ask me password twice when I turn on the computer. First of all, I use iCloud word password and then as soon as I have to use my account password facility Si

    • where to find my osx in the apple store application, please?

      I bought on line osx lion update my macbook, I have received the agreement of license by e-mail but are unable to find the product in my purchases in the app store? Where could else be? Thks in advce for your help

    • Does the Acer Aspire 4530 TV output support?

      My father has an old Acer Aspire 4530. I am trying to determine if it has tv out capability so we can connect to its new TV with a cable composite VGA adapter. It has a VGA port, and it's really... I think that its come to Aspire with Vista (not sure

    • Approach to get the product key for purchased microsoft xp home edition

      Hello I bought the laptop before 6 years with windows xp home edition, but some how I have to format my laptop. So I have no product key with me. Can you please let me know to get the product key for microsoft xp OS I bought with windows xp. -Parag b

    • X120e none touch FN to display

      Hello I just reinstalled my OS and all the drivers from lenovo Web site. I also installed the driver of keyboard shortcuts to display the screen below: http://support.Lenovo.com/en_US/downloads/detail.page?LegacyDocID=MIGR-74261 After this fresh rein