Forms: avoiding "record changed by another user"

I have a form with a DB block. There is also a DB trigger on the same table, so when an update is performed in the form, the BEFORE UPDATE trigger updates the same row. Of course, when I try to change the same record again, I get "record changed by another user". I know that there is a property somewhere in Forms that will re-synchronise the Form state with the DB state, but I can't find it in the online docs.
Can anyone tell me where to find this property, or what buil-tin to call (if appropriate)?

Hi Chris.
There is no build-in or property do this. You have to select the current data from the database, because the data in your form is not up-to-date.
So what do you have to do.
If your form do not manipulate the fields that the DB-trigger manipulate, simply remove the fields from your form.
Otherwise, if you need the field in your form you must get the newest value from the DB, because it has changed. It make sence.
BR Claus T. Rasmussen
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Chris Webster:
I have a form with a DB block. There is also a DB trigger on the same table, so when an update is performed in the form, the BEFORE UPDATE trigger updates the same row. Of course, when I try to change the same record again, I get "record changed by another user". I know that there is a property somewhere in Forms that will re-synchronise the Form state with the DB state, but I can't find it in the online docs.
Can anyone tell me where to find this property, or what buil-tin to call (if appropriate)?<HR></BLOCKQUOTE>
null

Similar Messages

  • Record Locked by another user

    I have an application using ADF, Java, Struts, JSP in JDev10.1.2
    I have created datapages using 'Input form'. So, if any record is viewed through the form, will that record be locked?
    Won't I have this problem, if I view the record using 'Read Only' form? Pls advice, it is very urgent.
    I keep getting the error "Record locked by another user" all the time. Pls tell me how to remove the locks programatically

    Hi,
    Go to application module --> configuration . Probably you have pessimistic locking mode (default in 10.1.2 version). If that, change locking mode for optimistic - recomended for web applications.
    Kuba

  • Here's a fix for "This item cannot be updated because it has been changed by another user or process"

    https://gallery.technet.microsoft.com/System-Center-Service-fca7af29
    A few months ago on the Technet Gallery, I submitted this custom control to be used on SCSM console forms. The purpose of the control is to eliminate the "This item cannot be updated because it has been changed by another user or process" error
    message that we all have seen at least once (a day :) ).
    The details are in the gallery description (along with installation instructions for existing forms and your own custom forms).
    Here's a "short" description (nothing I ever post here is short :) ): This is a custom control that can be applied to an SCSM form like the Service Request form or Windows Computer form or your own custom form built with the authoring tool or Visual
    Studio. When you click "OK" or "Apply" on the form, this control scans the form and Service Manager's database for any changes to the object you have open. If a property that _you_ have changed on the form was _also_ changed in the CMDB
    (by a workflow or another user), this control will present a dialog box letting you know what happened. It will also let you choose which value to keep (yours, theirs, or the original value).
    Just as importantly (and important in a greater percentage of cases), if a workflow changes a "background" property (like FirstAssignedDate) while you have the form open and you click OK, the control will detect the change and allow the form submission
    to go through while keeping your changes and the FirstAssignedDate change that the workflow made. You won't get an error message or even a warning. And most importantly, you won't lose your changes.
    That's where the "optimistic" part of the control's name comes from. It applies optimistic concurrency control to SCSM forms, while also providing an anti-collision interface for you to use so you no longer lose any of your changes.
    Furthermore, this control will work on related items that are opened in memory; for example, the activities on a Service Request. So if you change an activity's title while the workflow engine sets it in progress, you won't get an error. The activity will
    be in progress and will get your new title when you click OK or Apply.
    Lastly, (and I admit this part is getting into the deep inner workings of console forms) if your form loads a sub projection at run time (to the root object) this control will detect the load and treat that sub projection as if it were apart of the original
    form all along.
    I've gotten a little feedback about this control, but I'd like to get more since it's a work in progress. So, I'm announcing it here on the forums. Please give it a try and let me know if you have any questions. I'll be happy to answer them here. Thanks,
    folks!
    Oh, and to answer the most common question right away: It's free. There is no paid version or anything like that. This is something I built for the SCSM community.

    Great job! 
    Will definitely try it out. 
    Best regards,
    Marcus

  • "The file [name of file] may have been changed by another user since you last saved it." Issue affects both network and local files.

    When a certain user saves a file in Excel 2010, she gets a message: "The file <name of file> may have been changed by another user since you last saved it."  She can choose to save as another file or overwrite with her changes. 
    This just started happening a week or so ago.  She was concerned that someone else was accessing her files, but we did several tests that opened, made a change and saved in a matter of seconds, and she still gets the message.  It happens on
    most files, but not all – both network and local.
    We already tried the QFE_Saskatchewan registry fix.  I also checked the file server for Services for Macintosh.

    You may be confused by the error in Excel saying “another user”. Actually Excel cannot tell who (the real human) is editing the file. Based on my research the No.1 possibility of the error is KB2626998.
    2626998  Connection to a network document is lost in the 2007 Office system or in Office 2010 after the computer resumes from standby
    http://support.microsoft.com/kb/2626998
    For Excel 2010, follow these steps:
    a.  Click Start , click Run , type regedit in the Open box, and then click OK .
    b.  Locate and then select the following registry subkey: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Options
    c.  On the Edit menu, point to New , and then click Dword Value .
    d.  Type NetworkAvailableTimeInSeconds , and then press Enter.
    e.  Right-click NetworkAvailableTimeInSeconds , and then click Modify .
    f.  In the Value data box, click Decimal , type a number value, and then click OK .
    Note This registry subkey sets the time, in seconds, that Excel waits for the network to resume. For example, if you type 15 for the number value, Excel waits 15 seconds for the network to resume. You might have to do some tests in your own environment to
    determine an appropriate value. You may have to try multiple numbers.
    g.  Locate and then select the following registry subkey.
    HKEY_CURRENT_USER\Software\Microsoft\office\14.0\common\Internet
    h.  Repeat step 2C through step 2F again. Reuse the same value that you used previously.
    i.  Exit Registry Editor.
    Feel free to post back. Thanks.
    Cheers,
    Tony Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please contact
    [email protected]

  • Hostname in Terminal changed to another user

    Hi,
    I'm having an issue where I open terminal and my computer name has changed to another persons name on our network. Does anyone know why this is happening and how to fix it?

    BobHarris wrote:
    Weird I see your responses in my email, but not here ...
    The forum server is a bit overwhelmed from all the iOS 7 traffic
    The local forum software has been having some issues, and (based on some offline discussions) the Apple folks are aware and are working on the underlying issues, and (as BobHarris mentions) the added load of the iOS 7 traffic likely isn't helping.
    BobHarris wrote:
    I cleared the device list on the router and restarted it and I see that the router recognizes and stores the names for my iPad, AppleTV and my Android phone, but not for my MacBookPro. That device name is set to unknown and then some number.
    Give your Macbook Pro a DHCP Client ID
    System Preferences -> Network -> Advanced -> TCP/IP -> DHCP Client ID
    Not sure that'll help?   Certainly try it, but.. what you're getting is the "who am I?" response your Mac gets from your local DNS services, which can be provided by software within the router, or software upstream from the router.   The prompt just displays the settings.  You can reboot, and that won't help.  If you're getting a weird setting for the local DNS queries, then you can either chase after the setting in the router or upstream with your ISP, or (probably easier) simply change your prompt string as I'd linked to and as BobHarris has indicated.  (Or install OS X Server or such, and run your own local DNS services, but that's the gonzo approach.)

  • HT4623 how do i update my iphone 4?? i can't find the program to change to another user as there is already a user when i plug into my computer. i need to change to my phone instand.

    I am trying to update my iphone4 on my computer at home.  when i plug my cord into my hard drive it already has another person on the computer how do i change it to my name and phone? I am trying to upgrade my phone via my home computer.

    how do i change it to my name and phone?
    Login to the computer with your account.

  • Record updated by another user (message 10006)

    When using router Maintenance and trying to open then save the route that was created from ECC import I receive the above error message.
    What should I check?

    Hi Bradley,
    Could you please check the corresponding record in ROUTER table?
    - Is there 1 record only for this Routing?
    - What are the values in date/time fileds (CREATED_DATE_TIME, MODIFIED_DATE_TIME)?
    - If there is a Routing you can update, compare its record with affected one.
    Br,
    Alex.

  • How do I edit a form I imported made by another user?

    I am trying to import a form off my computer to edit, but I am unsure how to get into editing mode.

    It limits your options that way since not all field types have an alignment property. It could be improved, but hasn't been, so you will either have to modify the fields individually or you can use a to loop through all of the text fields and set the alignment to what you want.

  • Tracking records change made by another user or session

    How does oracle forms track records change made by other user or session?

    I think the question is, how does Forms know to issue the error "FRM-40654: Record changed by another user. Re-query to see change".
    I don't know exactly how Forms knows this. But in the past I have found that if a column has changed on the record, which you are not querying in this forms block, then you don't get the error. So Forms is perhaps comparing all the database values for the queried record, against the values that Forms has queried?
    When you attempt to lock the record from Forms, you'll see that Forms issues a statement
    SELECT <all the db columns in the block>
    FROM <wherever>
    FOR UPDATE OF <all the db columns in the block which are not query only>
    Even so, in the database, that statement doesn't know what the values are that the Form has already queried. So Forms must be doing something else.
    Hope this helps, it's a bit of a black box area I guess.

  • Another User Modified the table

    Hi,
    I have a user defined form, which is bound to Master-Data UDO.
    I have matrices in the form which is bound to its child objects.
    Following problem happens once in a while:
    When I press update button, I get the error message 'Another User Modified the table'.
    This is not consistent, but happens once in a while.
    My SBO version is 2007.
    In what situations you will get the error - "Another User Modified the table" ?
    Please help me with this.
    I'll appreciate your help.
    Thanks.
    -Geetha

    Hi Mahendra,
    Thanks for your reply.
    In my case, I take back-up of the database from client site and bringing into our in-house.
    If clients complained about record# 25, then the same record# has the 'Another user' issue in in-house also. (By record# I mean the Master UDO DocEntry#).
    So, I think the locking is stored in the database, rather than in a PC specific place.
    Please tell me any ideas you get in this angle.
    Regards,
    Geetha

  • WLS 12.1.2.0.0 : Another user (admin2) already owns the lock.

    hi
    Please consider a WebLogic Server 12.1.2.0.0 that is NOT in Production Mode (so in Development Mode).
    When is a button like "Take Lock & Edit" (ever) to be expected?
    Or messages like :
    - "admin2 is currently making changes."
    - "Another user (admin2) already owns the lock. You will need to either wait for the lock to be released, or take the lock."
    If both users "admin1" and "admin2" are in the "Administrators" group,
    the following scenario (sc1) seems to be reproducible:
    - (sc1-a) start a first browser session and login on the WLS admin-server console using "admin1"
    - (sc1-b) start a second browser session and login on the WLS admin-server console using "admin2"
    - (sc1-c) in the second browser session, click Deployments
    - (sc1-d) in the first browser session, click Deployments and see the "Take Lock & Edit" button and messages
    -- "admin2 is currently making changes."
    -- "Another user (admin2) already owns the lock. You will need to either wait for the lock to be released, or take the lock."
    The scenario (sc1) is included in the screencast
    at http://screencast.com/t/Yw3k3EI1
    - (q1) Is the lock message in scenario (sc1) intended behavior?
    It could be that these "locks" are causing our Jenkins jobs (doing an Ant wldeploy task) to fail when someone is "browsing" using the WebLogic Server console, with
    weblogic.management.provider.EditWaitTimedOutException: Waited 0 milliseconds
        at weblogic.management.provider.internal.EditLockManager.getEditLock(EditLockManager.java:259)
        at weblogic.management.provider.internal.EditAccessImpl.acquireLock(EditAccessImpl.java:266)
        at weblogic.management.provider.internal.EditAccessImpl.startEdit(EditAccessImpl.java:297)
        at weblogic.deploy.internal.adminserver.EditAccessHelper.startEditSession(EditAccessHelper.java:72)
        at weblogic.deploy.internal.adminserver.operations.AbstractOperation.execute(AbstractOperation.java:236)
        at weblogic.management.deploy.internal.DeployerRuntimeImpl$2.run(DeployerRuntimeImpl.java:846)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.management.deploy.internal.DeployerRuntimeImpl.performDeployerActions(DeployerRuntimeImpl.java:840)
        at weblogic.management.deploy.internal.DeployerRuntimeImpl.deploy(DeployerRuntimeImpl.java:418)
    many thanks
    Jan Vervecken

    The answer to this "(q1) Is the lock message in scenario (sc1) intended behavior?" you already know. Just for good measure see the documentation on managing locks (5 Managing a Domain's Configuration with JMX). Note that in development mode the locking in the admin console is automatic, you can change this in Admin Console - click the preferences link, User Preferences tab, here you can change the 'Automatically Acquire Lock and Activate Changes' option.
    WebLogic provides a ConfigurationManagerMBean (http://docs.oracle.com/middleware/1212/wls/WLMBR/mbeans/EditServiceMBean.html?skipReload=true#ConfigurationManager) that provides methods for safely starting an edit session. You can use haveUnactivatedChanges (http://docs.oracle.com/middleware/1212/wls/WLMBR/mbeans/ConfigurationManagerMBean.html?skipReload=true#haveUnactivatedChanges) to check if there are any pending changes (this gives you an indication if someone that has taken a lock is doing some actual changes to the system, such that the ANT job can decide not to start an edit session). If there is an edit session going on and there are no pending changes you can call undoUnactivatedChanges (http://docs.oracle.com/middleware/1212/wls/WLMBR/mbeans/ConfigurationManagerMBean.html?skipReload=true#undoUnactivatedChanges) - now the ANT job can start a new edit session.
    The following example shows the use of the ConfigurationManager (in Java with JMX)
                            Object[] unactivatedChanges = (Object[]) editConnection.getAttribute(configManager, "UnactivatedChanges");
                            if (unactivatedChanges.length > 0) {
                                System.out.println("ACTIVATING CHANGES");
                                editConnection.invoke(configManager, "activate",
                                        new Object[] { new Long(120000) }, new String[] { "java.lang.Long" });
                            } else {
                                System.out.println("CANCEL EDIT SESSION");
                                editConnection.invoke(configManager, "cancelEdit", null, null);
    More information can be found on using the EditService and ConfigurationManager can be found here: Middleware Snippets: Automatic Scaling an Application Using WebLogic (and the references therein).

  • Form based on a view -  FRM-40654: Record has been updated by another user.

    Hi All,
    I am hoping that somebody can help me with this problem that is occurring only when I try an update a record in forms.
    I have a block based on a join-view, I can insert no problems, but I can only update certain records within the block. If I come across a second record that is similar to the first except for primary key and a couple of other values and try and update that record forms gives me the following message FRM-40654: Record has been updated by another user. Re-query to see change.
    The first record I have no problems in updating and I have followed a number of suggestions to get this to work, like setting the key-mode of the block to updateable/non-updateable and setting the primary key to 'yes' for some of the database items. I have also created procedures within the database that are called by triggers on-insert, on-update etc.
    If anybody has any ideas how I can solve this I would be happy to hear your suggestions.
    Thanks in Advance.
    Regards,
    Scott.

    Scott,
    beside of
    1) In the block properties change the Key Mode property of the block to be Non-Updatable Primary Key
    2) Mark one or more columns as Primary Key in the item Property Palette - in this instance you would set the property for Empno.
    Enforce Primary Key = no
    Key Mode = Unique
    Update Changed Columns Only = Yes
    I found a bug entry that is supposed to be fixed in Patch 9 of Forms 6i (assuming you are running 6i). So if you could try with a more recent Patch set (e.g. 14) then probably the problem will go away.
    Fran

  • FRM-40654 Record has been updated by another user.Re-query to see change.

    Hi All:
    While Updating a record in form its updating fine at first time
    if i updating the record second time its not allowing me to update its showing following error
    FRM-40654 Record has been updated by another user.Re-query to see change.
    After Re-querying its allowing me to update the record .... so anyone can give a good idea to update the record without Re-query.
    i am using following versions
    Apps 11.5.10.2
    Forms 6i
    Database 10g

    @814950,
    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>Announcement: Forums Etiquette / Reward Points
    </ul>
    It is not good to use someone else's post to ask a new question; this is commonly refered to as "Post Hi-jacking." It is always best to create a new post and add a reference link to a similar post. Please create a new post for your question!
    Also,
    >
    BEFORE I NSERT OR U PDATE
    OF quantity, price_override
    ON po.po_line_locations_all
    >
    If I recall correctly from when I worked with the Oracle Enterprise Business Suite (EBS), the PO_LINE_LOCATIONS_ALL is an EBS ta ble. Oracle does not recommend you modify EBS tables directly. There are recommended methods for performing DML on EBS tables. I suggest you review the Oracle Applications Documentation library. Select your EBS version and then scroll to the Standards section and review the following documents:
    <ul>
    <li>Oracle Applications Developer's Guide
    <li>Oracle Applications User Interface Standards for Forms-Based Products
    <li>Oracle Application Framework Personalization Guide
    </ul>
    Again, please ask your question in a new post.
    Craig...
    Edited by: CraigB on Dec 1, 2010 9:29 AM

  • Error FRM-40657:Record Change or deleted by another user

    Hi dears
    Please HELP ME
    I have a form with multiple blocks and relationship between them
    I can insert in all of the blocks
    but I can not update the exiting rows in ANY block in application.
    I can update the rows from outside of the application
    it returns me this error:
    FRM-40657:Record Change or deleted by another user
    the properties about insert allowed,update allowed and so on are all YES in all blocks
    Would you please advise me about that?
    Need your help
    thanks
    Shahram

    This error occurs because the record as held in the Form is not the same as that held on the database. When Forms locks a record it checks the value of every database item on the Form with that currently stored in the database, and if the two are not the same it issues this error.
    This can happen for a number of reasons e.g.
    1. You may want to look at date fields and ensure the time component is being taken into account i.e. the LAST_MODIFIED column is stored as '01-JAN-2001 15:34:56' on the database but is stored as '01-JAN-2001 00:00:00' (a truncated date) on the Form.
    2. Check to see if there are any database triggers which alter the values of columns.
    You may need to go through every database item on the Form and compare it with the value on the database. Having found a discrepancy in values you need to determine why this occurs.

  • FRM-40657:  Record changed or deleted by another user.

    I have a forms module with a module component based on a view.
    This view is a simple view with 1 base table.
    This view has a 'client derived' primary key with a sequence.
    This view has a instead of trigger, which is calling the table API.
    There are no server derived columns etc.
    When I insert a record via the form and try to update the same record
    without requery, I get the message:
    FRM-40657: Record changed or deleted by another user.
    When I drop the trigger the error is not raised.
    Any idea ?
    Configuration:
    Forms 6.0.5
    Designer 6.0.5
    Headstart 5.1
    Oracle 8.1.7.4.0

    From Documment : 1236623.1
    Cause:
    1. Navigation from (Responsibility) System Administrator > Security > User > Define > Query out the responsibility, found responsibility key is <NEW_VALUE>. ..................... This is wrong Navigation
    2. Found value <OLD_VALUE> is included in column role_name of the responsibility under the user by sql statement:......................................................................................... Not sure whats the old Value
    select * from wf_local_user_roles
    where user_name = '<user_name>'
    and role_name like '%<OLD_VALUE>%';
    Solution :
    4. Identify the Role (responsiblity) to be changed, click 'Show' to expand the record, select a date to field 'Active To' to provide an end date to this role assignment. ..... Not sure how to get role for particular responsibility.
    From Document : 1273157.1
    We have created new responsibility , But now we are getting error while END_DATE old responsibility.
    New Responsiblity name : BPC-160 DC Staff-New
    Old : BPC-160 DC Staff

Maybe you are looking for

  • Installing Win7 on a macbook pro using a mac mini as external optical drive

    hi everyone, My 2 year old son watches movies on my macbook pro. He stuck something in the optical drive making it unusable. Repairing it is 200 to 300 euros (ouch). I want to install win7 via bootcamp and I'm using my mac mini (october 2009) as an e

  • Shared libraries?

    Is there an option or a solution within Photos to do shared libraries, multiple libraries on one computer and between multiple computers?  I am reading and initially it looks like there is less flexibility for this then there was in iPhoto/Aperature.

  • Templates with many specs in Lineage History

    Bussiness is inquiring about a "potential" performance issue with Templates. Once a Template has been used to create possibly 100's or even 1000's of specs and has the relationships populated in the Lineage History of the template for those 100's to

  • SQLCE Agent Replication Problem, maybe related to SQL Server not on default port

    I've got a problem getting the SQL Server CE Replication setup on a new server. SQL Server is 2008 R2 but we are running on a non-standard port (not 1433) and I'm not sure where I'd tell the agent that or if I need to. I've turned on full diagnostics

  • TS3988 no email sent for iCloud

    I am trying to set up my icloud account.  It does not send a verification email to me.  I have resent several times and still no email.