Lock record on query for single user

Is there any way to use the on-lock trigger to lock a particular record as it is simply queried, instead of after a change has been made to it. For instance, if user A is viewing a queried record, and user b attempts to query the same record, then we would display a message to user b stating that the record is unavailable, or simply just skip it. I know that if a field in the current record is altered, forms recognizes the status of the record as 'CHANGED' and will then by default proceed to lock the record until a commit or rollback is issued. However, this is not what we are looking for. I have read a little about this, and I have seen an example through a datablock based upon a stored procedure, a ref cursor select for update statement. (NOTE: we are not basing our datablock on a stored procedure though)
We have two scenarios that require this type of locking capability. The first simply queries one distinct record, and the second queries a distinct result of records.
A select for update statement would suffice for the first scenario, i.e. if another user tries to query the same record, their query is denied; however, for the second scenario when two users perform the same query, user a is viewing record #1, and user b's program sees that record #1 is 'locked' and thus proceeds to the next record in the result .
Any suggestions? Thanks in advance.
Eric M Weiss

You don't need to override on-lock you can just call the LOCK_RECORD built-in in POST-QUERY or whatever.

Similar Messages

  • How to use the same POWL query for multiple users

    Hello,
    I have defined a POWL query which executes properly. But if I map the same POWL query to 2 portal users and the 2 portal users try to access the same page simultaneously then it gives an error message to one of the users that
    "Query 'ABC' is already open in another session."
    where 'ABC' is the query name.
    Can you please tell me how to use the same POWL query for multiple users ?
    A fast reply would be highly appreciated.
    Thanks and Regards,
    Sandhya

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

  • How to Enable the LOV to query for partial user entries in af:query in an ADF search form

    Hi guys,
    I have faced one issue in creating a search form in ADF, in that I have used af:query and table region. and I have attached an lov vo to the base vo for the list of values and given UI hint as Input values with List of values. Now the issue is that I have given auto submit property as true so when I give some value suppose "Jan-14" and tab out it gives me all the correct results. but if I give like "Jan%" and then tab out then it does not give me any value. Could you kindly help me with some solution. I am using Jdev 11.1.1.6.0.
    Thanks,
    Tanmoy

    To enable the LOV to query for partial user entries, we can trap the 'LaunchPopupListener' event and add custom code there. Within the af:query component, just wondering how can we set property the 'LaunchPopupListener' for the search criteria ?

  • Can't exec /bin/sh for single user

    Hi,
    When I boot up my iMac G5 it sits on the gray screen with the apple and spinning "doing something" icon, and then goes to a terminal window telling me:
    "can't exec /bin/sh for single user: Input/output error"
    It started doing this last night after multiple beachball of death situations. Anyone have any ideas? Or is it time for this old machine to be put out to pasture?
    Thanks
    Mungo

    Hi Mungo,
    invalid key length is a serious issue that can sometimes be fixed by "heavy duty" utilites like DiskWarrior and Drive Genius.
    If you don't have enough room to re-install the OS, though, you have seriously overfilled it and they may not be able to deal with the problem either.
    You should always aim to keep at least 15% free space on the drive, preferably more. On my 250 Gig internal drive, for example, I see the beginning of stability and speed problems when I get down to below around 30 gigs of free space. It varies a bit depending on what you use your Mac for, but my own preference is to always aim for 50 Gigs free on this 250 Gig drive.
    You have to fix the "keys out of order" problem before you even think of re-installing the OS.
    The best solution is to reformat the drive. It is unlikely that it actually needs replacing. However I still think you should buy another drive, but an external one, if you don't have one already.
    My approach to your problem would be:
    1) Go and buy a nice big external firewire drive if you don't have one already (ideally at least twice the size of your internal).
    2) Install OSX on the external drive (You may want to partition it into two volumes first, keeping one partition to store a "cloned backup" of your internal and one for general usage, overflow storage, etc)
    3) Boot from the external HD and copy across your precious stuff from the internal drive to the external. (If you have created two partitions on the external you could use the excellent utility "SuperDuper" to "clone" the internal to the second partition - the one witout the OS installed on it)
    4) Reformat the internal drive, preferably using the single "zeroing" option.
    5) Re-install the OS and software on your internal drive
    6) Copy back your data (documents, music, movies etc) to your internal but make sure you leave plenty of free space on it. If you have a large music library , or lots of movies, for example, you might want to keep them on the external, rather than putting them back)
    7) From now on use one partition of your external drive for regular "cloned" backups of the internal and the other for general storage overflow etc.
    Cheers
    Rod

  • Change NWA language for single user

    Hello, gurus!
    The question is stated above: how can I change NWA interface language only for single user?
    Users in our BPM system are fetched from Active Directory therefore I cannot change (as they advise) user for my user from NWA. It is inactive.
    Is there any other solution?

    It shows that users are stored in LDAP.
    Also I'd like to draw your attention to language preferences in my browser
    Desirable language (English) is specified as recommended in guidelines, but NWA nevertheless is showed in Russian as you can see.

  • Init: can't exec /bin/sh for single user.....

    Has anyone come across this gem during start-up? it's outputting
    init: can't exec /bin/sh for single user: No such file or directory
    init: can't exec /bin/sh for single user: No such file or directory
    init: can't exec /bin/sh for etc/rc: No such file or directory
    This shows up after the apple logo on start-up. Any ideas?

    That message suggests that Mac OS X isn't able to open a shell or run the startup scripts because one of the items it needs is missing. Fixing this issue will require reinstalling Mac OS X.
    (11150)

  • MACBOOK won't boot - bin/sh for single user message

    Powered up my 3 year old Macbook tonight and it won't boot.
    After some while it displayed a message saying I had to restart the Macbook which I did.
    Now (agian after a long while) it gets to a black screen then displays (twice) Diskos2: OX2103005 (Undefined) or somethimg like that as it's too small to read then
    Launched : Can't exec bim/sh for single user : input output error
    Any ideas?
    Thanks
    Dick

    Say, that does sound messed up! But so far sounds like a Hard Drive/Software problem.
    Boot from the Install CD/DVD, but do not install. Answer ONLY the "What Language" question and wait for the MenuBar to be drawn. Then Choose Disk Utility from the Utilities Menu.
    Select your Hard drive and click ( Repair ) Run it again until it comes clean or gets stuck. If stuck, write down the messages and post them here.
    It is also a good idea while you are up to do a ( Repair Permissions ). This only checks the things the Installer installed originally, but that is a lot of stuff. \[Once your Mac is up and running off the Hard Drive, you should Repair Permissions again.]
    A Mac that cannot boot from an appropriate Installer Disc has a Hardware problem.

  • How to disable Query for single controls in a Form Applet?

    Hi All,
    this should be so simple, but seems like I don't get it at the moment.
    I have a Form Applet in HI Mode and want to disable the possibility to Query on certain fields. these are Calculated fields and querying will most likely crash the application due to heavy performance impact. They should be for displaying only. How to do that? I have searched for Applet Control User Properties and such stuff but couldn't find one.
    Thx

    Hi Siebelade thanks for your reply,
    in the meantime I managed to do it using a BusComp Field User Property called "DisableSearch". If you set this to "TRUE" for the desired fields, the user will receive an error message when trying to query for these fields.
    Benny

  • Set PO query for all users in POWL screen

    Dear All,
    In Purchase order work list (POWL) need to define a new query and set it for all the users.
    Request to please let us know how we can create and set that query in POWL for all users?
    thanks,
    mahesh.

    Dear All,
    In Purchase order work list (POWL) need to define a new query and set it for all the users.
    Request to please let us know how we can create and set that query in POWL for all users?
    thanks,
    mahesh.

  • Recording NWBC scripts for End User Experience

    Hi Experts,
    I am recording NWBC scripts using the Netweaver Business Client GUI for loading and running it through Robots for End User Experience Monitoring. I don't see an option to "LogOff" in NWBC client while recording  the script. We only have option to "Close all session and LogOff" in NWBC client .
    When I am using this option, it closes all the sessions including the EEM Recorder also without saving the recording .
    I need to include "LogOff" as the last step so that it doesn't leave any active sessions for each run by different robots.
    I have a Solution Manager 7.1 SP10 and NWBC client 3.5 Patch 13.
    Please help me achieve this.
    Regards,
    Manish K

    Hi,
    for a browser the recommendation is to open a new, empty tab to keep the browser alive while closing the tab with the  session. All that with the hope that the backend will use the triggered event of collapsing tab to close session.
    Maybe a similar strategy works for NWBC.. but I don't know the UI in detail.

  • Fetching accessible record type list for any user

    How to get list of standard record types being accessible for any user role?
    One solution - We know the entire list of standard record types, so we can keep trying to access each record type and if we get access violation exception, then skip that record type. This solution is NOT a good idea as it will be poor in performance and may become insufficient in future version of OCOD (which may have more standard record type than the count present today).
    Is there any direct API available? or any generic solution?

    Hello,
    this is the forum for the tool {forum:id=260}. Please mark this question as answered, so others know that they can ignore it.
    Then post again in {forum:id=75}
    Regards
    Marcus

  • Session expired error for single user

    Hi,
    I'm getting a SessionExpiredLongJumpException in our prod portal but only for one single user.
    All other users can access the same page.
    The defaultTrace log has a specifric time in the error message saying
    '...or session has expired before Sat Jun 26 16:44:18 BST 2010' This seems very specific.
    Any idea why this is happeneing?

    Check your browser settings for accepting cookies from this domain, you must have tried this by now clearing all your browser cache and cookies.
    try solutions beacon site where they have Oracle Apps Demo Instances for Public
    http://www.solutionbeacon.com/tools_vision.htm

  • Change membership for single user?

    Hi, i signed up for team membership but now realize I should have chosen membership for a single user, since it's only for me. Can I change it?

    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Script for Single User Mode

    I manage two school Mac labs and have relied on ARD for many years!
    I have been unable to successfully write an ARD script to to force my lab machines to restart in "Single User Mode". This would allow me to run AppleJack 1.5 remotely.
    Any help would be appreciated.

    When you say you have "OSX" but not the "original install disks" do you mean the mac originally came with an earlier version and you don't have those disks, but you have a retail copy of Tiger?
    The circle with the slash means that Open Firmware cannot find BootX. Basically, I think this means that Open Firmware recognises the startup volume as such but cannot hand control to the operating system at all. BootX is what it uses to get the operating system going. Without this, as you've seen, you cannot make even single-user mode.
    What is SMU?
    *Is your data backed up? If not, prioritise that unless you can afford to loose it.*
    Does DiskWarrior repair permissions? If not and you have the Tiger retail version, try running Disk Utility to do that. I don't think this will help, but it won't hurt.
    Do you have another Mac? If so and you have the retail Tiger, you might be able to use Pacifist to replace BootX (in /System/Library/CoreServices). Alternatively, if the other Mac is running the same version of the OS and is also a PPC Mac, you could try copying the file from that machine.
    Before you do any of this (with the exception of the permissions repair), try to backup any data you need if that's at all possible.
    - cfr

  • Gnome 3 fallback mode for single user

    How is it possible to set the gnome 3 fallback mode as default mode for a single user?
    All the other users on the system should stay with gnome-shell as default.
    @op

    Hi,
    You should read the wiki : https://wiki.archlinux.org/index.php/Gn … lback_mode

Maybe you are looking for

  • IDVD or do I need better?

    I would like some recommendation for a reasonably savvy user needing to create a DVD of grand child's  third year consisting of an hour's worth of miscellaneous movies from Blackberry phones, Youtube downloads and various cameras.  Usually uses full

  • How to track the sql commands issued against database

    Hello, We are using an interface developed by oracle forms. Its giving some error while pressing an icon. I can not able to trace out from where it arises. This error is displayed by form developed by oracle forms. I dont have source code to track it

  • Function Module (BAPI) for Delivery Change

    Dear All, We have a Function Module "BAPI_SALESORDER_CHANGE" for changes in sales order, wherein we also can enter Texts in sales order. Please tell me similar such function module for Outbound Delivery, wherein I can enter / insert / change the Text

  • Cant instal my itunes after resetting pc to factory settings

    After resetting my pc back to factory settings I downloaded itunes but it wont instal. I get a message saying contact application vendor to verify this is a valid windows installer. Can anyone help please

  • Java Basic CMYK color scheme Support

    Is java has basic CMYK color scheme suppotr as i look in java.awt.Color class of Java6 and java7. We can only pass RGB in color constructor. I used some libraries but it only supports CMYK convert to RGB not directly choosing color from CMYK. Please