On-lock Trigger not working properly.

Hi Everyone,
I need to use on-lock trigger to satisfy the requirement.
The requirement is - for a given supplier name and supplier profile the form should be locked.Normally forms locks row by row. But my requirement is if any user doing some changes on a specific supplier and supplier profile then no other user can change for that supplier and supplier profile. If any user opens that then we need to show that it has been locked by some other user.
But the 2nd user can open the same form for some other supplier and supplier profile.
I need to write an on-lock trigger.
Can you please suggest what should I write in on-lock trigger ?
let table name is SUPPLIER  sp.
THEN
sp.supplier_name = :blk1.supplier_name
and sp.supplier_prof = :blk1.supplier_prof
The above condition should be locked.
Please help me out.

Ok, so whenever you select a new supplier/profile in your blk1, you want to lock that supplier/profile.
What you could do:
1. lock the supplier immediately after the selection. I guess your block blk1 is not a db-block, so you would ad the locking at the end of your selection-procedure
2. lock the supplier as soon as you start editing one of the country-rows, here you could use the ON-LOCK-trigger.
An example of how the Locking-code looks is here Re: [Block based on From Query] On-Lock Trigger
You have to do some additional steps, in the exception case (lock failed) you have to disable the whole county-block (with using SET_BLOCK_PROPERTY)
Hope this helps

Similar Messages

  • I have problem with my iphone 5 lock switch..as lock switch not working properly..and my iphone is not in warrenty.. so plz tell me what i do...

    i have problem with my iphone 5 lock switch..as lock switch not working properly..and my iphone is not in warrenty.. so plz tell me what i do...

    The iPhone 5 is less than a year old, so all of them should still be in warranty unless they have been jailbroken or physically damaged. If you have a hardware problem as you describe the only option is to get the phone replaced by Apple or repaired by a non-authorized shop. The Apple replacement will be free at any Apple store in the country where the phone was purchased. If Apple determines that the phone was physically damaged or jailbroken it will cost $229.

  • My auto-lock does not work properly in this new iOS 6

    My auto-lock does not work properly in this new iOS 6

    Do you have your Assistive Touch on? Per another user in another forum:
    Source: http://forums.imore.com/ios-6-forum/240631-auto-lock-not-working-ios-6-a.html. Username: Chambaka
    Okay, I did a 'reset all settings' in settings and problems fixed. Hope this can be useful for others.
    Edit: it appears that when the assistive touch is on the autolock function won't work while in the home screen, but will work if opening a app. I hope Apple fixes this bug in the next update.
    I tried what he said and my auto-lock's working again - so, I turned off my Assistive Touch. Hope Apple fixes this bug soon,

  • Caps lock light not working properly

    My Laptop caps lock is not working properly , when i press it , the light just flashes and dissappear , the light is suppose to stay there , the things that i type will still be in caps though , any idea how this happens?

    Hey,
    Sorry to hear about the keyboard problem.
    In a post a while back had this to say.  He makes a suggestion that the keyboard might need to be replaced, then the person with the question tried something else.  You might take a look and see if there's something there that will help.
    Thanks for coming to the forum.
    Hope I helped,
    GeorgeFN
    I work on behalf of HP.

  • HT4623 Lock key not working properly

    Lock key not functioning properly.
    Phones gets lock on clicking it 2-4 times

    This has happened because your phone was most likely imported and modified before it was sold you you. Updating the firmware has reset it back to it's default configuration
    You need to contact a nokia care point for help getting it back working properly. If the care point isn't an option visit the retailer where you purchased it.
    Care points/service centres and repair info:
    UK • Europe • Asia-Pacific • USA •
    Canada • Middle East and Africa
    Elsewhere: Click here, select your country, go to the support section, then select repair.

  • Wifi sudden disconnection and lock button not working properly on my iphone 4s.......    It is under warranty

    When using wifi on my iphone,sometimes it disconnects automatically...... And my lock button is not working properly.....
    What should i do, my iphone is under warranty....

    The Sleep/Wake button is a hardware issue and that's covered by the warranty. I would take it to the Apple Store and see what they can do.
    Hope that helps

  • IPhone 6 camera on lock screen not working properly

    When I drag up the camera icon on the lock screen I can see the camera app for a split sec but then the screen goes black.
    While in this screen I can still make pictures by vaguely pressing where the white button should be or using the volume buttons.
    It also doesnt work if I first drag up the 'settings menu' and access the camera from there, but when out of the lock screen everything works perfectly fine.
    Is there anyway I can try to reinstall iOS, or anything that might work? Sounds like a software problem to me.

    Press and hold both the home button and the lock button (sleep/wake button) until you see the apple logo. This performs a restart and does not delete any data.
    I hope this solves your problem.
    Austin

  • Hello My ipads Power button is not working properly when I press it once it shows option to turn off instead of locking and some other display problems like it suddenly lockes down or display disappears ...Please help. Thank You

    Hello My ipads Power button is not working properly when I press it once it shows option to turn off instead of locking and some other display problems like it suddenly lockes down or display disappears ...Please help. Thank You

    Thanks for that information!
    I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
    In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
    When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
    Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?!

  • After I updated to iOS 7.0.2 my lock button is not working properly

    After I updated to iOS 7.0.2 my lock button is not working properly I push the button many times and after many failed attempts it locks and sometimes not. I had to use the accesibility tool to lock it manually from the screen, this is really annoying.

    I guess it is.
    Do you have a question, or are you just sharing your experience with us?

  • I am facing a new problem after a missed call. i phone will get freez on its lock screen after a miss call. Its seems that its main screen touch is not working properly.  This problem occurs after each and every missed call.

    I'm using iphone 5s with ios 7.1.2  & I am facing a new problem after every missed call. i phone  gets freezed on its lock screen. It seems that its main screen touch is not working properly. It should be bug introduced by apple . This problem occurs after each and every missed call .There is no patch announcement for this issue yet. There are few workaround to fix this issue: Reboot your iphone. But its  irritating to reboot the phone frequently after each issue....

    Hello dipthebe,
    Check out the articles below go through troubleshooting steps for your iPhone when the screen is unresponsive. You may want to try and restore your iPhone as a new device and then test out what happens when you miss a call to see if the issue is still present afterwards.
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/HT1414
    Regards,
    -Norm G.

  • After updating iso 6.1.3 in my 4s my phone is not working properly

    After updating iso 6.1.3 my 4s is not working properly the main problem is touch is not working properly and battery problem also there pls anyone have some solution

    IOS 6 has had a lot of issues to date. I have a possible solution to offer but I cannot  be sure it will work. Two ideas.
    1. Reset the phone: hold the lock button and home button in at the same time for 10 seconds. This does nit erase anything, it's basically like rebooting a computer.
    2. Factory reset: Hook up to a computer and go to iTunes. Sync the phone (if possible). Once synced, in the summary screen select factory reset (or may be another name, I'm working from memory) it's right beside update software. This will completely reset the phone, you will need to restore it after the reset it complete. I don't know if this will help you, but it may. I hope you can fix it, good luck!!!

  • Html is not working properly

    i was trying to work on texteditor to code a simple html page but its not working properly like the shows only two color on the background that are green and black
    i dont know whats the issue but it use to work fine in mountain lion
    i have even tried to use color code still it didnt work then  i re-installed the os but the same problem again!
    is there any special setting ?
    i have change it to plain text and traditional html ..
    thank you

    Hi,
    Do you really think it applies to all these:-
    Categories:  Accessibility,  Boot Camp,  Finder Tabs & Tags,  iCloud Keychain,  iMessage & Messages,  Internet & Wi-Fi,  Installation, Migration & Setup, Mail, Contacts & Calendar,  Maps,  Multiple Displays,  Printing, Users & Groups,  Using OS X Mavericks    
    Tags:wireless, backup, ical, screen, email, duplicate, printer, preferences, time,
    hard, login, restart, vpn, font, dvd, excel, kernel, address, migration, mode, locked,
    dvd_problem, hdd, thunderbolt, gray
    It would be useful to see the HTML code you are using.
    It would also useful to know which version of HTML you are using to do that.
    8:57 pm      Wednesday; March 12, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Z2 double tap to wake up the screen is not working properly when taking it out of pocket

    when i take my phone out of my pocket, the double tap function is not working properly, sometimes i have to  tap over and over to wake up the screen. 
    do you know why? does same thing happen to yours ? 
    and please dont tell me not to use it. i have paid 700$ and i have right to use my phone fully functioning.  
    any advice ?

    Actually it needs some practice, you need two gentle taps on the upper third of the phone (around the place where the clock shows on lock screen), tapping too hard or tapping on the lower part of the phone will require repeating the tapping more than one time. This is from my personal experience.
    A proud Sony User since 2002
    If I was helpful to you, thank me by Kudos

  • I phone 3gs home button is not working properly

    Hi Folks..
    From the last few days my I phone 3GS is giving me a hard time.. Its HOME BUTTON is not working properly. Have to press it 2-3 times and have to press it hard to make it work. I am now running 5.1 iOS, it had the same problem with 5.0.1 iOS too. Can you suggest me what to do??? Do i need to take it to the service centre????

    I've just noticed this too, after updating my 3GS to iOS 5.1.  It seems to be happening off and on, but it is more of a problem when the phone has set locked and idle for a few minutes.
    I usually wake it from sleep with the power button, unlock it, and wait for the ability to use the home button.
    It might be worth it to take it to the Genius Bar or at least try to live chat with Apple Customer Service.
    I feel your pain.

  • Why does my ipad not work properly when charging

    when my ipad is plugged to charger it does not work properly  goes crazy

    Not sure what 'goes crazy' means but it most likely should not do that.  Try a reset... press the home and sleep/lock buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.
    Also try it plugged into another outlet (on another circuit) and/or try another charger.

Maybe you are looking for

  • Custom screen using MB_MIGO_BADI  in MIGO transaction

    Using MB_MIGO_BADI i have cretaed a subscreen in MIGO transaction.WHen i select a particular item in MIGO transaction that particulra item value,i have to get into my custom code to make some validations.In which method i have to use set& get paramet

  • Transport control program tp could not be started

    Hi, While importing a request to Quality Server , transport terminates with an error "Transport control program tp could not be started" RFC error. Function TMS_TP_IMPORT Message  TP_CALL_FAILED Tp output says "This is tp version 340.16.37 (release 6

  • 15 000 rows in reports Cisco Prime Infrastructure 2.2???

    Hi all!!! There is a problem with reports exports in csv, pdf formats.The report is divided into several csv or pdf files with max number of rows in the file - 15 000 rows. Can be done to a report generated by a single file (csv or pdf) without limit

  • SP2013 Workflow Service Application is not showing up only WF Service App proxy but the WF is working...

    I configured Sharepoint Workflow Manager 1.0 in Sharepoint 2013 App Server running under Windows 2012 R2. The Workflow manager is working properly - I tested using Sharepoint Designer and Sharepiont Workflow 2013 is listed.  But under Service Applica

  • N200: Sorting of Files in Fol

    Dear Community! Does anybody here know which characters the N200 uses for the sorting of files in a folder? If I rename my files to 0-..., 02-... sorting works correctly, but with foobar-0-..., foobar-02-... I got a completely randomly sorted play or