How to programmatically prevent a list from changing

Hi
I want to be able to add a trigger to a list that if the list is changed it will validate some conditions and prevent or allow the change to occur. I tried to raise form_trigger_failure from when-list-change but it doesn't work. Any ideas?

I want to be able to add a trigger to a list that if the list is changed it will validate some conditions and prevent or allow the change to occur. I tried to raise form_trigger_failure from when-list-change but it doesn't work. Any ideas?
Example for Emp Table dept Dept no
1.Make it as LIST
2. Item Trigger ->When-List-Changed
3.Put Bleow code which will check -if dept 10 is selected you will get below message
message('TRigger- When List Changed');
message('TRigger- When List Changed');
If :Deptno1=10 then
     message('Deptno1= 10 is selected');
RAISE Form_Trigger_Failure;
End If;
IT will work

Similar Messages

  • How do I prevent tab focus from changing when I scroll tabs with the mouse wheel? [SOLVED]

    Whenever I scroll my tabs with the mouse scroll wheel the tab focus changes from the page I'm currently on to the tab being scrolled to. I usually have a large list of tabs open and I depend on being able to scroll tabs without changing page focus to keep myself organized.
    Also, I'd like to disable tab scroll wrapping; Once I've scrolled my tabs to the end I'd like it to stop scrolling, not wrap around to the start of my tabs.
    Is there a way to disable these features and revert to the tab scrolling behaviour of a previous version of Firefox?

    This is not a standard feature and can be caused by an extension.
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • How can I prevent network administrator from changing Firefox 35.0.1 homepage

    each morning I copy a "cfg" file into my Mozilla directory which gives me my desired homepage. Each night network updates and homepage is changed to the company's default homepage...Thanks

    hello Kropotkin, it's probably better to contact your administrator about this issue as we can't know how things are deployed and set up in your environment and what kind of tasks/scripts run over night...

  • How do I prevent my iphone from downloading my entire email address book from my computer when I do my "updates" .  My contact list is transfered to my iphone and then I have the laborous task of manuely deleting the unwanted unnecessary "contacts" now.

    How do I prevent my iphone from downloading my entire computer email address book when I "update" my phone by plugging it into my computer and do the update procedure.  I am having my phone "contacts" swamped with the entire contacts in my email on my computer and then I am having to manually delete them each time I update my phone...? thanks for any assistance on this...mm

    Thank you for your rapid...excellent answer!!  I feel abit foolish...but I am in a learning process and you are a wise teacher! thanks...mm

  • How do I prevent iTunes 11 from syncing apps with my devices?

    I want to be able to sync music to my iPad and iPod but I do not want to store their apps on my computer. Since iCloud remembers which apps I own, this is (in my mind) unnecessary. How do I prevent iTunes 11 from syncing my apps? This did not use to be a problem because in iTuens 10 it was an option. Now it seems that it isn't.

    Cate Kurtis wrote:
    Well, in fact the application stopped opening automatically for no reason that is clear to me. For about 5 days after I updated the software it opened automatically when I plugged in or unplugged my phone. Then it suddenly stopped. All I did between the last automatic open and the time that it ceased was, in the options window, uncheck the "manually manage music and videos" option and then check it again without clicking "apply" and also checking "sync only checked songs and videos" and unchecking again without clicking apply.
    I can't really recall now, but I thought that I played around with those settings and no matter what, I never saw the Option for Automatically Sync when Connected in iTunes.
    I can think of no reason why this would halt the automatic opening but it has definitely stopped. Yet I still don't have the option listed in the options window to "prevent itunes from opening automatically when device is connected."
    This is all very strange to me but I can think of nothing to pursue it further.
    I can't think of any reason why it would trigger that behavior and of the other 170+ views that this discussion has received, I suppose that nobody else had anything to offer either.
    I can't think of anything else to pursue it further either and as long as it is working the way that you want it to work now, I can't think of any need to pursue it further.

  • How do you prevent the organizer from mixing the order of pictures when down loading off the memory card?

    @How do you prevent the organizer from mixing the order of pictures when down loading off the memory card?

    This sounds like you are using Photoshop Elements, and the Photoshop Elements forum would be best at answering that.
    Photoshop Elements
    Gene

  • How do i stop my itunes from changing the location of my itunes media.  i have it saved on a external HD and it keeps changing back to my local drive with out being told

    how do i stop my itunes from changing the location of my itunes media.  i have it saved on a external HD and it keeps changing back to my local drive with out being told

    No, an external drive will not always be mounted. If the drive goes to sleep, it can unmount, or it may unmount for other reasons. As Chris said, confim that the drive is mounted and active before launching iTunes.
    Regards.

  • How can I prevent deleted mail from ending up in "All Mail"     and "Archives"?  To my horror, I've emptied these boxes and lost all my mail from all my boxes  (and why do I need to enter this question three times?"

    How can I prevent deleted mail from ending up in "All Mail" and "Archives"? 
    To my horror, I emptied these boxes and lost all my mail from all my boxes .
    All mail also disappeared from my iPad, I suppose because they are "synched"
    (Also, no offense, but why do I need to enter this question multiple times?)
    Thanks for any thoughts.

    I'm having a similar but slightly different problem. My company just migrated to Gmail, and it's saving mail drafts every 30 seconds into my Trash folder.
    I unchecked the "Show in IMAP" preference in the Gmail settings, but my Drafts folder completely disappeared. I went back and checked it and the folder reappeared (with my drafts still in there).
    I like the idea if starting an email on my laptop and having the option of finishing it on my iPhone or iPad, so only saving Drafts locally would not be ideal.

  • How to stop the option key from changing tools when trying to subtract from a selection?

    How to stop the option key from changing my tools when I am trying to subtract from a selection?
    I'm running CS3 on Mac OS Leopard, and the automatic tool switching slows me down, but even preferences doesn't show a way to turn this off.
    Thanks for your help.

    With any marquee tool, JUST holding down the option key should not switch tools. You need to explain the problem much more carefully, It's completely impossible to tell from your description whats going wrong.
    automatic tool switching
    The only preference related to this, is to do with the SHIFT KEY - "use Shift key for tool switch".

  • How to transfer a contact list from a cd to the Iphone 4S

    How to transfer a contact list from a CD to the Iphone 4S?

    Import them from the CD to a supported contact application on your computer, then sync them to your phone.

  • How do I prevent a website from opening another window

    A couple of websites I occasionally visit open up a second window to a spam website. I have put an entry in my Hosts file to prevent Firefox from connecting to the spam websites, so the second window is empty. However, it's still a little annoying.
    I have pop-up blocking turned on. Is there anyway to completely block the opening of the second window?
    If not, why not?

    Thank you for taking the time to reply. I really do appreciate it.
    Unfortunately, the link you posted tells me exactly nothing. My question is "How do I prevent a website from opening unwanted windows". These are full Firefox windows, just like you would get if you right clicked on a link and selected "open in a new window".
    There are only two possible answers:
    (A) To block unwanted windows, do this ________ (insert answer)
    or
    (B) It's not possible.
    If the answer is (B) then the follow-up question is -- Why Not?

  • Prevent a user from changing the Project ID in P6 EPPM 8.3.7

    Does anyone know if there is a Global or Project Security Profile privilege that will prevent a user from changing the Project ID on an existing Project?  We are using Primavera P6 EPPM 8.3.7
    Thank you,
    Eric

    Hi,
    Below project security profile may help you,
    Edit Project Details Except Costs/Financials
    Determines whether the profile will enable users to edit fields in General, Dates, Defaults, Resources, and Settings tabs in Project Details. To assign a project baselines, users must also have the "Assign Project Baselines" project privilege assigned to their profile.
    Regards,
    Marcos

  • How can we prevent a user from entering a value in Parameter Field?

    how can we prevent a user from entering a value in Parameter Field and Select-options Field?

    make it invisible, make it inactive, make it display only.
    if the field is not there or not to be seen the user WILL have problems inputting data.
    BUT once the field is there you can NOT prevent that the user fills it with data.
    all you can do is on PAI check if the data the user inputted was good or bad, and clear his inputs, but you can NOT prevent him inputting something.

  • How can I prevent my iPhone4 from starting after connecting to Power?

    How can I prevent my iPhone4 from starting (booting) after connecting to Power?

    You can't so far as I know. You can however, shut it down after it's connected to power and it should not power back on as long as it's connected. If the power is disconnected/reconnected, it will power back on.
    If you just want to avoid calls, etc. while it's plugged in, you could just put it in airplane mode.

  • How can i prevent my pro from over heating?

    How can i prevent my pro from over heating?

    Don't use the computer in your lap, or on a blanket or pillow. The case bottom is part of the heat dissipation system so it needs air underneath. If you must use the computer in your lap, get a lapboard. There are cheap, even more so if you make one yourself.
    If the computer is a older MBP with silver keys, avoid "clamshell" mode when using an external monitor. Those models let a lot of heat escape through the keyboard. The black-key Unibody versions don't seem to rely so much on the keyboard as a vent.
    Like eww said, what feels hot to you may not threaten the computer's well-being. Get a temperature monitoring utility. I like this one:
    http://bresink.com/osx/TemperatureMonitor.html
    It runs politely in the background and puts the readout in the menubar:
    so you don't have to invoke Dashboard like some other temp monitors require. As Dashboard loads all its widgets as soon as it's invoked, the extra widget processes can run up the temps and you don't get a true average use temp.
    If you use Dashboard a lot, those processes stay active after the first launch and can eat processor cycles as well as increase temps. I use DashQuit, a widget that shuts down Dashboard when I'm done without requiring a computer restart. It's here:
    http://www.apple.com/downloads/dashboard/status/dashquit_berenguierduncan.html

Maybe you are looking for