Can not refresh page after save properly(When not saving master record)

I am using jdeveloper 11g R2 (11.1.2.3) JSF Facelet
In some use case I have Address as master table and Person as detail table
For some business reason I need to don't save same addresses
eg:
If +1 Test St+ is in database already and new user coming and adding this address with new person
I need to use the row in database not creating a new address
I do saving in doDML method of Address with some hashing algorithm and it is fine
My problem is that I can not refresh page after save properly
User coming to page think Adding a new address and a new person but in fact no new
address added because of business I describe above
Any ideas how I can implement this?
Appreciate that
Regards
Mohsen

Hi,
from your description it is not clear why the page doesn't refresh. It could be a problem in your implementation code - who knows. What if you perform the address check on a command button that actually submits the new address? If the check returns true (address exists) you would call row.refresh(forget new row); and re-query the view object so the address coming from the database is displayed. If you wanted to use the doDML then yuou need to be aware that doDML doesn't help removing the row the user created. It just ignores the database update but the entity is still around, which in my suggested solution wont be the case.
Frank

Similar Messages

  • Version 16.0.1 is not refreshing pages

    I have noticed recently that version 16.0.1 is no longer refreshing pages. This problem is not exhibited in IE, Chrome, Opera, or Safari. I notice it especially because I do website development and change the pages frequently and they don't show up as updated within Firefox EVEN IF I DO A PAGE REFRESH OR A FORCED CACHE REFRESH (Ctrl-F5).
    I've tried Safe Mode. I've tried to disable all add-ons. I still have the problem.
    Does anyone know why? Is anyone having similar problems?
    Temporarily, I've set my cache file size to 0 as a work-around.
    Thanks.

    Does this work in Private Browsing mode?
    What is the setting of the browser.cache.check_doc_frequency pref?
    *http://kb.mozillazine.org/about:config
    *http://kb.mozillazine.org/browser.cache.check_doc_frequency
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    You can also try to reset Firefox:
    *https://support.mozilla.org/kb/Basic+Troubleshooting

  • Can't open Pages after upgrading to snow leopard on 10.6.8

    Can't open Pages after upgrading to snow leopard on 10.6.8

    Has Spotlight finished its indexing?  Check in the upper right.  If you get just the search field, it has, if it says its indexing, you have to wait before you can use anything.

  • Iphone is not detecting network after updating, i m not able to configure it

    my iphone is not detecting network after updating, i m not able to configure it

    To answer your question there, are you unable to connect to cellular internet (using a SIM or WiFi?

  • Best way to refresh page after returning from task flow?

    Hello -
    (Using jdev 11g release 1)
    What is the best way to refresh data in a page after navigating to and returning from a task flow with an isolated data control scope where that data is changed and commited to the database?
    I have 2 bounded task flows: list-records-tf and edit-record-tf
    Both use page fragments
    list-records-tf has a list.jsff fragment and a task flow call to edit-record-tf
    The list.jsff page has a table of records that a user can click on and a button which, when pressed, will pass control to the edit-record-tf call. (There are also set property listeners on the button to set values in the request that are used as parameters to edit-record-tf.)
    The edit-record-tf always begins a new transaction and does not share data controls with the calling task flow. It consists of an application module call to set up the model according to the parameters passed in (edit record X or create new record Y or...etc.), a page fragment with a form to allow users to edit the record, and 2 different task flow returns for saving/cancelling the transaction.
    Back to the question - when I change a record in the edit page, the changes do not show up on the list page until I requery the data set. What is the best way to get the list page to refresh itself automatically upon return from the edit-record-tf?
    (If I ran the edit task flow in a popup dialog I could just use the return listener on the command component that launched the popup. But I don't want to run this in a dialog.)
    Thank you for reading my question.

    What if you have the bean which has refresh method as TF param? Call that method after you save the data. or use contextual event.

  • Refresh page but SAVE USER INPUT in tabular form WITHOUT UPDATE

    Hi,
    When there is a tabular form in the page and user refreshes it (in anyway) tabular form's elements are always computed with values from the table in db. Can we somehow save user input in fields so that after refreshing page user will see what he/she has typed but not submitted to db?
    Regards,
    Tom

    Hello Andy,
    Let me introduce you to the problem.
    There is a tabular form based on a source table. User modifies the data and after he/she clicks Submit button the validation procedure is being run before MRU. If the result of validation is positive then MRU is run otherwise data should not be submitted to db and user should be informed about the result. Moreover, he/she should see the invalid data in fields. Not the correct one from db.
    Is there any way to save a session state of these fields or of a whole tabular form? I cannot save the data in other table in db.
    User cannot click 'Add row' several times in my app because after he clicks it once then the button disappears and appears again only when he/she clicks 'Submit' first (so after validation procedure).
    Maybe there is some way to store fields' values in memory and then compute the form when page is loading again?
    Imagine the situation that there are 100 rows in tabular form and user modifies it for one hour, clicks Submit, validation result is negative and his/her whole one hour work is lost, because the form has been refreshed according to what is stored in db. Such situation should never occur.
    Regards,
    Tom

  • How to refresh page after selecting value from LOV item , in a tabular form

    Hi ,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, couple of issues here.
    1.
    2nd item(column) in tabular form, that LoV should get populated based user's selection value in first item LoV. So how do i refer to the value, that user selected in first item's LoV? I will have to use this reference in LoV query of my 2nd item ( on this tabular form)
    2.
    How can we refresh the page, when user selectes value in first item ( from LoV). As this is a tabular form, here item type is Select List, we dont have an option to pick item type as Select List with Submit. So problem is that when user selects value for item 1, refresh does not happen and item 2 LoV does not get populated as per user's selection in item 1.
    Please help here. Would be really appreciated.
    Thanks and Regards,
    Rave.

    Thanks Ben and Dan for your responses.
    Ben, your solution helped me with refresh of page, as page got submitted.
    This answers to my 2nd question. However, I still need to know first question, which basically is, how do i refer to the value, that user selected in first item LoV.
    Issue is, I selected the value in first item LoV, it got submitted and page fot refreshed. But after page refresh, first item LoV loses its value that I had selected last time. It does not retain the selected value after refresh.
    I have an unconditional process, that on every submit(refresh) of page, I set my items with their corresponding values. But problem is what do i mention there to refer to this item.
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Any help here would be really appreciated. Please suggest how do we refer to this item's selected value.
    Thanks and Regards,
    Ravi.

  • Pages - Eliminate save prompt when closing file with no changes made

    Hey everyone -
    This isn't really a question thread, but rather a solution I built to eliminate one of Page's annoyances.
    This problem has been encountered before, but the question isn't truly ever answered. I would reply to those (they're the top results in Google), but because they are archived I can't change them at all.
    The Problem:
    Even after disabling the .pages prompt, it still prompts to save files just before I close them. The exact message is: Do you want to save the changes made to the document "some_document"?
    Details:
    System Version:          OS X 10.9.1 (13B42)
    Kernel Version:          Darwin 13.0.0
    Pages Version: 5.0.1
    The Solution:
    Create a workflow.
    Open Automator, select New Document.
    Select Service, then click Choose.
    Set Service Receives to "no input" and change the "in" drop down list to "Pages.app".
    Next, search for Quit Application, put it in there.
    Set this to Pages.app, and ensure the box "Ask to save changes" is unchecked.
    Save it. I believe there is a default location, so don't specify a path. Give it a name. Quit Automator.
    Assign a keyboard shortcut to the workflow.
    Open System Preferences > Keyboard > Shortcuts.
    Go to Services on the left hand panel.
    Scroll to the bottom.
    Under General, you should see the workflow you created. Mine was called "Quit Pages".
    Click it, then select the Add Shortcut button.
    Give it a rarely used shortcut. I chose ⌘⇧X, but you're welcome to do whatever you like.
    Quit System Preferences.
    At this point, it should work. Open up Pages, open a new document, then do the shortcut. It should exit without any issue. However, I did not like having to learn a new shortcut just to pull this off. So I did this:
    Use BetterTouchTool to configure it properly.
    Download BetterTouchTool and install it.
    Open it up.
    Go to the Basic Settings tab, and ensure the "Launch BetterTouchTool on startup" is checked.
    Click the Gestures tab.
    Select Keyboard in the horizontal bar.
    On the left hand panel, near the words "App Specific", click the plus symbol. This should allow you to add an application.
    Select Pages.
    Click the Pages application in the left hand panel (if it is not already).
    At the bottom of the main panel, click "Add new shortcut".
    Keyboard shortcut: ⌘Q
    Trigger other keyboard shortcut: ⌘⇧X (or whatever you used in System Preferences).
    Quit the application.
    Open it back up. It should now be running in your Menubar.
    Now, if you open a .docx document with Pages, then hit ⌘Q, it should exit without any fuss. HOORAH!
    Granted, this does have a few tradeoffs. If you go to Pages > Quit, it will still prompt you. Also if you want to close the current window (⌘W), it will still prompt you.

    You get this behavior if the file which you opened is not a Pages '09 one.
    If it is a Pages '08 one, it must be entirely transcoded so it's a modified document and given that, the program must ask you to save it.
    If you save it as a Pages '09 document, you will no longer be asked to save (in these conditions).
    Yvan KOENIG (from FRANCE mercredi 11 février 2009 23:16:00)

  • Safari will not load pages after flash update yesterday

    I am trying to access pages like CNN.com...with the nice background image on the home page...it does not load the images. Also, articles like "34 sports photos" do not load the flash player so I can see the photos.
    how do I fix that or revert?

    If you can't install or update Flash, follow these instructions.
    If you have installed the latest version of Flash, please take each of the following steps that you haven't already tried. After each step, relaunch Safari and test.
    For a "blocked plug-in" error, see Step 4.
    For a "missing plug-in" error, start with Step 8.
    Back up all data before making any changes.
    Step 1
    You might have to log out or restart the computer before a Flash update takes effect.
    Step 2
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data...
    and confirm. Close the window. Then select
               ▹ System Preferences… ▹ Flash Player ▹ Advanced ▹ Delete All...
    In the sheet that opens, check the box marked
              Delete All Site Data and Settings
    then click Delete Data. Close the preference pane.
    Step 3
    If you're only having trouble with YouTube videos, log in to YouTube and load this page. You may see a link with the text "Leave the HTML5 Trial." If so, click that link.
    Step 4
    a. If you get a warning of a "blocked" or "outdated" plug-in, then select the Security tab in the Safari preferences window. In the list of plugins on the left, there should be one—and only one—entry for "Adobe Flash Player," showing the same version number that you installed. Select that entry. On the right there will be a list of websites for which you have specifically allowed Flash, if any. It's normal for the list to be empty. Below that is a menu labeled
              When visiting other websites
    From that menu, select either Allow or Ask.
    b. If you still get the alerts, then go back to the Flash Player preference pane and select the Advanced tab. Click Check Now. Quit and relaunch the browser.
    c. If the alerts still persist, triple-click anywhere in the line below on this page to select it:
    /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources
    Right-click or control-click the highlighted text and select
              Services ▹ Open
    from the contextual menu.* A folder should open. Inside it, there should be a file named "XProtect.meta.plist". If that file is missing and you know why it's missing, restore it from a backup or copy it from another Mac running the same version of OS X. Otherwise, reinstall OS X.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    Step 5
    In the Safari preferences window, select the Advanced tab and uncheck the box marked
              Stop plug-ins to save power
    Step 6
    Open this folder as in Step 4:
    /Library/Internet Plug-Ins
    Delete the following item, or anything with a similar name, if present:
              Flash Player (failing).plugin
    You may be prompted for your login password.
    Step 7
    Re-download and reinstall Flash. Download it from the domain "get.adobe.com". Don't click a link from any other website, including this one, because you can't trust links. They may be an attempt to trick you into installing malware masquerading as Flash. Type the address into the browser window. Never download a Flash update from anywhere else.
    Step 8
    If you get a "missing plug-in" error, select
              Safari ▹ Preferences... ▹ Security
    from the Safari menu bar and check the box marked 
              Allow (or Enable) plug-ins
    Then click the button marked
              Manage Website Settings...
    if present and make sure that the website is not blocked for Flash.
    Step 9
    Select
              Safari ▹ Preferences... ▹ Extensions
    from the Safari menu bar. If any extensions are installed, disable them.

  • Refreshing Page after PL/SQL Process Completes

    Reader's Digest Condensed Version: I have been unsuccessful searching the forum for a method to Refresh the current page AFTER the execution of a PL/SQL Process defined on the same page.
    War & Peace Version: I have a page which displays multiple records for editing on P1001. I also utilize a checkbox in combination with a button to perform some intermittent steps. Essentially, the user selects a row to "clone" by checking the appropriate checkbox and clicking the "clone" button. The first thing the button executes is a JavaScript function on page P1001, which calls a popup window (P1010) so the user can select a new value for the primary key. This is required to maintain data integrity of course and avoid duplicate records. Page P1010, contains two text fields with Popup links for each. The user can either enter their values directly, or use the link which will calls another JavaScript function to call a popup page P2 to display the results of an SQL query. Once the user makes their selections, another JavaScript function on P1010 passes back the selected values and stores them in hidden variables on P1001. At this point, I want my PL/SQL process, CLONE_RECORD, to execute examining the values from the record to-be-cloned and the new primary key values. The PL/SQL checks the database to see if the record already exists. If it does not, then validation of the data occcurs and a SQL insert string (myInsertSQL) is generated. I then "execute immediate myInsertSQL;" and "commit;" from within my PL/SQL. The procedure terminates, and at this point I want the original page P1001 to refresh. If the insert was successful, the new cloned record should be displayed along with the other previously displayed records.
    I am having issues with the timing because I am able to insert the cloned record into the database, but I have to manually refresh my page to see the resulting new record. I know that PL/SQL is executed on the server and that JavaScript is executed at the browser, but how can I synchronize my process, or at least perform an HTML POST(?) to refresh the page at the end of my PL/SQL procedure?
    As always, any assistance is greatly appreciated.
    MovingTarget
    PS. I am using HTMLDB 2.0 so please be kind.

    MovingTarget,
    Before I get into this I want to make sure you understand that in general, unless it's a really long process, you want the submitting page to have an On Submit process that calls your PL/SQL process. Then you can provide a branch back to the same page if you like or to any other page for that matter. Also, the PL/SQL error handling in ApEx is not too great right now but there are plans to improve it in the next version. In the mean time you have to use some tricks if you want to display "pretty" messages on exceptions.
    I'll tell you how I would approach this and let you tell me why it would not work or what I'm not getting...
    You have a main page, that in order to submit, needs a pk value populated from a popup (pu1), which in turn calls another popup (pu2). I'll create an imaginary situation in which I might have the same pages... I'm populating a users table (legacy) with a pk that is a combination of the employee's dept and name. The pu1 shows departments and pu2 shows emps in those departments.
    So, I click "add new user", then click on a button that opens pu1. I see the departments and then click on another button that opens pu2 to see the names. I click on a name and user JavaScript to close the popups and populate and item on the parent page with a string that is made from the employees department and name. NOW I click "save". The page submits and calls a PL/SQL process that passes in the values from the parent page to the INSERT process. After the process is run a branch redirects the user back to the same page and displays the success message from the PL/SQL process.
    I hope that didn't just make things worse! lol
    Dan

  • Not Refresh Value After Add New Record used with RPC Component

    This is my code in the class Users.as
    package inthanous
    import mx.controls.Alert;
    import mx.rpc.http.HTTPService;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    public class Users
    private var service:HTTPService;
    [Bindable]
    public var xmllist_user:XMLList;
    public function Users(){
    service = new HTTPService();
    service.method = "POST";
    service.useProxy = false
    service.resultFormat = "e4x";
    public function listUser():void{
    service.url = "/user/get_all_user_group_name";
    service.addEventListener("result", httpResultListUser);
    service.addEventListener("fault", httpFaultListUser);
    xmllist_user = new XMLList();
    service.send();
    private function httpResultListUser(event:ResultEvent):void{
    service.removeEventListener("result", httpResultListUser);
    service.removeEventListener("fault", httpFaultListUser);
    xmllist_user = new XMLList(service.lastResult.children());
    listAllUser();
    private function httpFaultListUser(event:FaultEvent):void{
    var faulstring:String = event.fault.message;
    service.removeEventListener("result", httpResultListUser);
    service.removeEventListener("fault", httpFaultListUser);
    Alert.show(faulstring,"Error");
    public function createUser(_xml:XML):void{
    service.url = "/user/create_user";
    service.addEventListener("result", httpResultCreateUser);
    service.addEventListener("fault", httpFaultCreateUser);
    service.send({firstName: _xml.firstName,
    lastName: _xml.lastName,
    gender: _xml.gender,
    login: _xml.login,
    pwd: _xml.pwd,
    dtBirth: _xml.dtBirth,
    telephone: _xml.telephone,
    idGroup: _xml.idGroup
    private function
    httpResultCreateUser(event:ResultEvent):void{
    service.removeEventListener("result", httpResultCreateUser);
    service.removeEventListener("fault", httpFaultCreateUser);
    listUser();
    clearUserDetail();
    private function httpFaultCreateUser(event:FaultEvent):void{
    var faulstring:String = event.fault.message;
    service.removeEventListener("result", httpResultCreateUser);
    service.removeEventListener("fault", httpFaultCreateUser);
    Alert.show(faulstring,"Error");
    This code i used with Ruby on Rail to connect with MySQL.
    When i used with FireFox browse after i create new user
    success it refresh the new record in Datagrid. But for the Internet
    Explorer Datagrid not refresh it because of it display the old
    recode before create.
    So i don't know it problem by Internet Explorer or my script.
    i hope someone can help me the solve this problem.
    thanks

    If you restrict the selection, a record value outside of that selection is not acceptable and will give you this error. This is how BPS works.
    You need to restrict on some other char so BASIC1 doesn't come in, but this value should be part of any selection on ZSEGMENT field for it to be accepted back.

  • This is interesting..fonts showing properly when NOT activated

    Version 10.0.0.70 of InDesign.
    If I open a clients CC file I get no warning that the fonts are not active and they display properly.
    While this can certainly be useful if the fonts are not provided it's also potentially dangerous.
    I can package the file with out the fonts being packaged either. Without any warning that fonts will not be packaged.
    In fact, I have seen customer files sent in without the fonts and it was clearly packaged.
    I can also make a pdf with the fonts embedded.
    If this is a feature, I should still be warned that "the fonts are not active but I will be able to see the fonts correctly in this window.
    If I save as.. or copy and paste I will not see them properly". Or something to that effect
    If however, this is not a feature, I would like to know how it's working. It is repeatable on every Mac here.
    By the way, I DO NOT have type kit enabled.
    Thanks for any input.
    Jim

    Mikey,
    No, definitely not activated anywhere.
    I control all the fonts and know exactly where they all are, which ones have to stay, which ones the OS tries to repair when moved even though they are not crucial, etc etc.
    It's odd because, if as I mentioned above, if we "save as.." and then reopen the file, the dialogue box comes up alerting the user that the fonts are indeed missing.
    Also, if I drag the font frame to a new window or copy and paste to a new document, I can see in "Normal" mode the fonts become highlighted in pink, indicating of course that the font is actually missing.
    We can reproduce this on all the Macs here regardless of the font(s) being used.
    I wish it was as simple as a font being activated somewhere.
    Thank you for the attempt though.
    Jim

  • Region templates not refreshed until after restart

    Hi guys,
    Another problem we are facing is when updating region templates. On a local workstation with JDev and a local SSXA connected to a remote UCM, changes to the region template's underlying JSP are taken into account on every page load. However, when using the remote SSXA connected to the same remote UCM, changes to the region template are not taken into account until the SSXA server is restarted.
    Surely there must be some caching parameter somewhere? How can we modify this behaviour?
    Thanks again!

    Hi ,
    Download 13502977 from MyOracleSupport and upgrade the UCM server .
    After that install the JDev plugins from the upgraded server by navigating to :
    /Oracle_ECM1/ucm/Distribution/RIDC/jdev
    /Oracle_ECM1/ucm/Distribution/SiteStudioExternalApplications/jdev
    After this test to see if the issue still persists .
    Reason for asking this is I am not able to see any issues with SSXA region templates .
    Hope it helps .
    Thanks
    Srinath

  • How can I reset Pages after a failed update attempt?

    I tried to download an update to Pages while away from home and my WiFi network. The updater instructed me to either download the update from a WiFi connection or to use my MacBook to download the update and sync my iPad afterward. Home is 700 miles away, and I don't have access to either my MacBook or to my home network. The problem is that the Pages icon is sitting on the desktop waiting for the update to start. I can't launch Pages until I either go home or find a WiFi connection that will permit downloading the update. Is there a way to reset Pages right now so I can use the application without updating it? I've tried powering down the iPad and restarting it, but that has not helped.

    noelfrombaltimore wrote:
    Jack,
    I agree with you totally! Obviously, there's something terribly wrong with Apple's latest iTunes version 10.5 and it seems that everyone (including me) is experiencing major problems.
    I don't even have any minor problems with it and neither do millions of others, so "everyone" does not have major problems.
    But...Apple's "Support" people seem to be hiding behind a "firewall" from having to actually respond  to the myriad of problems this new version has created and leaving it up to the "Support Community" (i.e.- that's right...you & me) to resolve these issues.
    So what did Apple Support say when you contacted them?

  • Login Window: Screen does not refresh correctly after waking 10.7.2 iMac and MacBook.

    I have a client who brought to my attention that when we wakes his iMac and MacBook after the screen dims or sleeps at login screen, that sometimes the screen does not refresh correctly and you must use the cursor to basically "clear the screen."  I have witnessed this myself and elimiated all third party products and this still happens.  I am starting to believe that is is a bug in 10.7.2.  Has anyone witnessed this or have any suggestions on how to remedy?  Thank you.

    Thanks lynque.  It turns out I did need a keychain repair, but that didn't fix the problem.  I probably should have done this earlier, but I ended up unplugging all peripherals (2 firewire + 3 USB) then powered up without issue.
    So I shut down, plugged in one at a time, and ran into the problem again after plugging in an external hard drive (WD My Book Essential).  I repaired with disk utility, but the problem remained.
    I then rebuilt the partitions with Disk Warrior, and now everything seems to work....

Maybe you are looking for