Cancel the PPR after popup

I use JDeveloper 11.1.1.6.


My use case includes a parent (table 1) table that has a foreign key to a child table (Table2). The tables and their relationships are in my project of 'Model' in JDeveloper. I created an application model that includes both of these tables.

My "ViewController" project includes a page with a table reading (in web page 1) that shows the lines of Table1. The user is presented with a link on each of the lines where they can click to access a table reading (in web page 2) which displays the corresponding lines in the Table2. In Page2 table includes an additional column that includes buttons for each of the lines. If the user clicks the Add button, a popup to is presented to the user where they can add a new record. The contextual dialog box includes the standard buttons of "OK" and "Cancel". NOTE: I use page fragments.

The popup includes an earpiece of fetch and cancelled the listener. Support for Auditors bean support includes the following:

Fetch* (save the currently selected line and performs a "CreateInsert"... high level as follows the steps)
Line oldCcurrentRow = pDciter.getCurrentRow ();
ADFContext lAdfCtx = ADFContext.getCurrent ();
lAdfCtx.getViewScope () .put (OLD_CURR_KEY_VIEWSCOPE_ATTR,
oldCcurrentRow.getKey () .toStringFormat (true));
OperationBinding = lOperationBinding
lBindings.getOperationBinding ("CreateInsert");


Cancel_ (running rollback, sets the currently selected line, and then performs a PPR for Page2... high level as follows the steps)
Perform the restore
ADFContext lAdfCtx = ADFContext.getCurrent ();
String oldCurrentRowKey =
(String) lAdfCtx.getViewScope () .get (OLD_CURR_KEY_VIEWSCOPE_ATTR);
pDciter.setCurrentRowWithKey (oldCurrentRowKey);
Perform the PPR on Page2 fragment.



Now, I want to describe the issue I'm having. First I'll give you a scenario of work and then I'll give you a nonfunctional scenario.

Work scenario
On page 1, I selects the first record and then click on the link to access page 2. Page 2 click on the button 'Add '. I then proceed to fill in the necessary data and click OK. Record is added successfully and a PPR is completed successfully and displayed data are from Table2 records associated with the first line of Table1 (Page1). Now, I click on the 'Add' button again and then click on "Cancel". The restoration is successful and the RPP is successful as well with data displayed is Table2 records associated with the first line of Table1 (Page1).


Non-working scenario
On page 1, I select any folder, but the first record and then click on the link to access page 2. Page 2 click on the button 'Add '. I then proceed to fill in the necessary data and click OK. The record is added successfully and a PPR is successfully completed and displayed data are Table2 records associated with the selected line of Table1 (Page1). Now, I click on the 'Add' button again and then click on "Cancel". The restoration is successful, but the PPR is not successful. For some reason any RPP now displays the chronogram Table2 which are associated with the first record of Table1, not the folder that was selected.    It's like the restoration which loses data were selected data. *

Could you please provide guidance as to what I might get hurt.

Hello

apparently the rollback re - questions involved iterators and en this shows the first row. The reason your first scenario worked is because it's the first record. So what you want to do is to define the current state of the row on the iterator parent after the cancellation. Your code sets the current line on the collection of detail but does that reflect the cancellation of the consequences the transaction as a whole (unless you row.refresh () cann rather than perform a restore to the AM, which is what I prefer to do as the impact of a restore is indeed a bit wide in scope

Frank

Published by: Frank Nimphius, May 16, 2012 07:51

Tags: Java

Similar Questions

  • secondary ACS 5.1 fails to cancel the registration, after IP change on primary

    IP address of primary education had to be modified, in response to a hardware failure of the RADIUS server with the intellectual property in several configs device.

    Now school is unresponsive to repeated requests "Cancel registration of the primary", even after reloading.

    apparently because he can't reach the primary to the old IP address.

    Asking to cancel the registration in the GUI generates pop-up that says: "this operation will remove this Instance ACS of the primary Instance.

    On this instance of the CSA management applications will be restarted and you will need to identify yourself again.  After you perform this operation

    Please wait five minutes for this restart complete.

    Do you want to continue? »      [OK]

    But checking back after 10 minutes - or even the next day - find status of secondary education unchanged.

    Also tried in Local Mode, cancel the registration of the primary;  This operation also fails.

    Does anyone have the URL HOWTO on a total reconstruction of the application of GBA?

    The two ACS are PCA-1121-K9 5.1.0.44.4 running.

    Thanks in advance for any help...

    UPDATE: *.

    Command, has recommended "application reset-config acs", has been _exactly_ what was needed.

    jrabinow - thanks a lot!    :-)

    also, thanks for mentioning that the licence would be required, so that I could locate in advance and have it ready.

    Since there is no local CERT on the server, we should not re - install those.

    Since it is a secondary antibody that it should not have too much in terms of specific configuration

    Therefore, one possibility is to reset the configuration, so once more, it becomes just a stand-alone node and then that to the deployment as it is for any new node and as you saved it until

    Reset configuration can be done using the following command in the CLI:

    rebate to zero-config CSA

    Note that after resetting the configuration you will need to reinstall the license so make sure that you have it handy

    So if you installed a certificate server to the secondary server, you have that too

  • 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

  • Cannot cancel the subscription after the months of testing

    Hello

    I have tried to give up my Adobe Stock project since last month and have not managed to do it again. I don't know what is happening, but whenever I try to cancel, I don't see the option to do so under the details of the plan. And now I get a notification of my credit card saying there is an attempt to charge me something I tried before my trial ended but had no success. And apparently, it's the norm for other users who started this 'free trial' and are having no luck cancellation. What is the problem?

    Hi Reemq14591445,

    Kindly Contact Customer Care help for cancellation.

    See also:cancel your membership of Stock

    Hope that helps!

  • cancel the subscription after one year

    I want to cancel my subscription to Adobe Reader.  I don't want to renew in January 2016.

    Brenda Lumsden

    ICES.html https://helpx.adobe.com/x-productkb/Policy-Pricing/Cancel-subscription-Acrobat-Online-serv

  • How to keep the metadata after Correct camera distortion filter?

    Hello

    Anyone know how to keep the metadata information after you have used the Correct camera distortion filter?

    In other words:

    When I need to correct the photo with good camera distortion to the menu Filter option I can't keep the metadata to the final table.

    After correction, I cut the useful part with the rectangular selection tool, and then I chose the file, new, Image to the Clipboard.

    Either the format file that I choose to save the metadata information has disappeared.

    I tried to export the metadata from File, FileInfo, information, and then import the metadata (XMP file) but no result.

    Someone at - it an idea to solve this issue

    Thank you

    This is probably because your using the Clipboard that discards the data.

    Try to crop your photo and recording. You can always cancel the harvest after saving if you want to do something in the photo.

  • How can you cancel the download of an update that was started by after having pressed the button "Check for Updates" in the window "On Firefox", please?

    How can you cancel the download of an update that was started by after having pressed the button "Check for Updates" in the window "On Firefox", please? If possible, please cover all platforms, Mac, Windows, Linux, although the first mentioned is what currently applies to my situation.

    Thank you.

    Such a download is usually recorded in a updates or updates folder in the program folder or the Firefox application.
    You can delete this folder to cancel the download.

    If the files have already been downloaded, then delete the files in the folder updates\0 and updates.

    Mac: /Applications/Firefox.app/updates "/path_to/Firefox.app/Updated.app"
    Linux: "/path_to/firefox/updated"
    Windows: C:\Users\<user>\AppData\Local\Mozilla\Firefox\Mozilla Firefox\updates
    
  • I lost the internet connection after acceptance of your latest updates. How can I cancel the updates?

    I lost the internet connection after acceptance of your latest updates. How can I cancel the updates?

    Debbie

    How do you know that the loss of your internet connection has nothing to do with the Windows updates? You must find the reason for the loss of the connection.

    How do you connect? Is a wired or wireless with a modem or a router? If a router is the router shared with another computer and this computer can connect to the internet? You need to determine if the problem is a fault on your computer or a failure to connect to your internet access provider?

    What error messages are reported?

    Event Viewer reports

    1. normally, when an error occurs on your computer looking in Event Viewer should be your starting point to find a solution. More related system errors are recorded and get an exact copy of the relevant report is important. Unfortunately, is not easy to understand reports and most of the users computer need help with their interpretation. I have to say later interpretation.

    2 Event Viewer includes three main newspapers of Windows. Here's the Application, security, and system. For purposes of troubleshooting system is by far the most important.

    3. to access the system log, select Start, Control Panel, administrative tools, Event Viewer, in the list on the left of the window select Windows and the system logs. Place the cursor on the system, right click and select filter current log. Check the front of the error and click OK and see you only reports errors. Click the Date and time column header to sort. You may need to click a second time to see the last report above.

    4. a tip for posting copies of error reports! Run Event Viewer and double-click the error you want to copy. Select the Details tab and check the box in front of the XML view. Click the copy button to place a copy in the Clipboard and close Event Viewer. Now start your message and paste it into the body of the message. Make sure that it is the first dough right out of the event viewer.

    5. He cautioned against three types of reports, information, and reports errors. In most situations, it is the error reports that offer the best information but sometimes WARNING reports provide useful clues.

    6. all reports have stamps date and hour and when troubleshooting, it is important to focus on the latest reports. Reports of studies from the point when the computer is started, and then check if a similar report appeared in the previous session. If errors do not repeat investigation as to why they happen is wasted effort.

    7. in the individual reports the most important information is the event ID and Source such as these help when looking for help on the internet. The description is just as important and copy the exact text to use as search criteria greatly helps achieve better results when using Google. Not paraphrase descriptions when other people asking for help.

  • How to cancel the LR renewal after 1 year plan?

    Hello

    I'll buy the cc of LR, but I intend to use it only for 1 year. I have read the term and the State said that Adobe will renew the subscription automatically. So, how can I cancel the LR renewal after 1 year?

    Thank you

    You can go to your account and click on the option to manage your plan. There is an option to cancel. Why is it you are wanting to cancel after a year?

  • I recorded annual plan and you paid every month since November 2015. But because of the pregnancy, I can't use adobe more at this time. Can I Cancel to pay after next month, or are there other ways? Please let me know.

    I recorded annual plan and you paid every month since November 2015. But because of the pregnancy, I can't use adobe more at this time. Can I Cancel to pay after next month, or are there other ways? Please let me know.

    Hello

    Please refer to cancel your Adobe Creative Cloud membership

    If you need to contact support technical assistance

    Contact the customer service

    Concerning

  • success message to display on the homepage after you close the popup skillbuilder page

    Hello

    I try to add a quick success message appears on the home page after clicking on "Apply/Save" on the page open popup. I created a popup page using popup skillbuilder plugin using two links "Edit" on the report and create a button to popup new entry record page,.

    Description: on my main report page 1 I "edit" links and create button what up page2 another pop-up windows but I want to show the success confirmation message on the page1/report after you apply the modification/creation of a record a closed time page2/popup how can I achieve this?

    using apex 4.2. Can someone please help with that?

    Thank you.

    I got it with a few tips... closed jQuery.

  • Help about the cancellation of the account after automatic renewal.

    Hello

    While I was looking for to cancel the Adobe as he reiterated yesterday and I wanted to cancel it before it was the case, but unfortunately I missed it. The website says if I have to cancel within 30 days of the payment I will return all the money, how can I do this? Also can I get a garrentee I get everything back and not the back of 50%, as it is said that you get after that. Or am I stuck :/

    See you soon

    Aaron

    Cancel https://helpx.adobe.com/creative-cloud/help/cancel-membership.html

    -or https://helpx.adobe.com/contact.html?step=ZNA_account-payment-orders_stillNeedHelp

  • What specific products are part of the complete abo for cs5-client, which will be the price after one year and will be the rice price information early enough to cancel the contract? Best regards Jürgen

    What specific products are part of the complete abo for cs5-client, which will be the price after one year and will be the rice price information early enough to cancel the contract? Best regards Jürgen

    For details please see the link below:

    Pricing plans and creative Cloud membership | Adobe Creative Cloud

    Otherwise, you can reach the Adobe sales as well.

  • 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

  • cancel the deployment or suspend VMs after a period of inactivity?

    In Lab Manager 4.0, is it possible to cancel the deployment or suspend the VMs after a period of inactivity? For example, if I want to have the VMS undeploy or suspend it after a user has not used for an hour or two?

    Thank you.

    is the closest you will get to this is a lease of deployment:

    The duration of a configuration or a VM template is deployed before Lab Manager is supposed to he cancel the deployment.

    This is because Lab Manager is not on 'activity or inactivity' as far as I remember, just how long he was out on an ESX host to.

    Kind regards

    EvilOne

    VMware vExpert 2009

    NOTE: If your question or problem has been resolved, please mark this thread as answered and awarded points accordingly.

Maybe you are looking for

  • Can't find anything on the support page for the new Satellite A220

    Hello Anyone know if there is any support for this laptop? It is A 220 Satellite and I can't find anything anywhere on this site. Its seems a bit poor to see that there is no support at the moment. Has anyone else has this same problem with A compute

  • F20-137: Bluetooth does not work if connect my mobile phone

    I recently bought a F20-137 for my son and when I hack with her at Christmas bluetooth apeared in configfree, but today I decided to try and connect my mobile phone via bluetooth and there is no bluetooth option in configfree where it should be accor

  • Adobe flash player problems

    IM currently using a computer laptop advent with windows vista ultimate installed, its version is 6.0.6002 service pack, CPU is Intel (r) Celeron (r) m cpu [email protected], 1733 mhz, 1 core, 32-bit operating system. I can't find a flash drive that seems

  • Internal blu ray burner for HP Pavilion dv6915nr

    My computer HP laptop pavilion PC model dv6915nr has an internal (ATA) Pioneer DVD burner. I would like to replace it with a Blu Ray burner. What Blu Ray burner on the market will be the most suitable and a quick guide on the procedure will be a grea

  • Locale.setDefaultInputForSystem (Locale.get (Locale.LOCALE_fr)); does not

    Hi, try to change the regional settings programmatically and I coded as follows... but I didn't observe any change in locale. I've added the necessary resources for the corresponding locale. Here is my code... ButtonField btn = new ButtonField("Chang