RuleFrame and BR's that should be handled the PRE or before triggers.

When a business rule must be handled before INSERT/UPDATE/DELETE of an record, it looks to me like it cannot be implemented using a CAPI.
For example the following BR:
'When value of column is NULL use default value retrieved from other column.'
Do I have to defer from CAPI implementation and use TAPI to implemented this BR in PRE-TRIGGER? Or is there a better way that fits more in the CAPI structure??
Regards,
Sebastiaan

Sebastiaan,
From the CDM Standards & Guidelines Library, volume 2, chapter 7:
"However some change event rules should be implemented using the derivation expression mechanism given in Oracle Designer. This mechanism should be used when a value within the inserted or updated record must be derived or calculated as before the data is written to the database. [...] If more complex derivations are required, you will probably choose to create a derivation function as part of the Custom API, and then call this function in the derivation expression. Note that you must then set the
derivation expression type to Function Call."
For default values you may be able to use the Default Value property of a column (can also be a CAPI function call). However, it will only be applied if that column was not included in the insert call to the TAPI. Otherwise, you will have to use the Derivation Expression, and in the CAPI function you will then have to make sure that it is not executed during update, for example:
if g_inserting
then
return 100000;
else
return p_total_prj_limit;
end if;
Hope this helps,
Sandra

Similar Messages

  • My iphone is switched off as low batery and still viberates. how should i handle that problem?my iphone is switched off as low batery and still viberates. how should i handle that problem?

    my Iphoe is switched off and still viberates. how should i handle that problem?

    Try to set it up as new device and don't use the backup afterwards:
    How to back up your data and set up as a new device

  • I cant find an app that should be on that should be on the app store, and when I click on the website (sky poker) and I click on "downland thee app on the app store" only a white page appear on app store.

    I cant find an app that should be on that should be on the app store, and when I click on the website (sky poker) and I click on "downland thee app on the app store" only a white page appear on app store.

    Well, I went to a Sky Poker website and find it it seems to be something related to playing poker online and the currency is measured in pounds. I do not see anywhere on the website where it tells me that I can download an iPhone app, and when I search the App Store (US) I do not see a listing their either. You may need to send their support a question/email and ask if they have something in the app store and what the name of it is.

  • I can see my thumbnails for my events in iphoto, but when I click to open the folder, no photos show up. However, when I hover over the thumbnail, it shows the flicker of images that should be inside the folder, as well as

    I can see my thumbnails for my events in iphoto, but when I click to open the folder, no photos show up. However, when I hover over the thumbnail, it shows the flicker of images
    that should be inside the folder, as well as # of images in each folder. It also occasionally says the following when I try to even open iphoto:  "Your photo library will not be readable by previous versions of iPhoto after the upgrade. The upgrade process for very large libraries may take an hour or more to complete." So, I am scared to hit "upgrade" for fear I will never recover any of the images as the wording in this quote seems odd. The photos are not in the trash. Did I lose them all? Do you know if/how I can retrieve them?

    iPhoto 08?
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

  • How do I extend my WiFi with Airport Express? I have Ethernet in the house and an Wifi that do not cover the whole house. I do not get it to work.

    I have Ethernet in the house and an Wifi that do not cover the whole house. I do not get it to work. I have tried to get it into my network and it get connected via the WiFi but not the Ethernet. Also when it gives a green light I cannot see that it is giving any signals to my devices (iPhone etc).

    You need to pay attention to something, while extending your network with the latest AirPort Express upgrade, your devices will be connected to it except your iPhone, you'll see your iPhone always connected to the capsule instead, even if you're at 1 foot from the AirPort Express.
    You need to change the radio settings from automatic to 802.11a - 802.11b/g on your capsule, then I put it back to the default settings...
    Now in the AirPort utility you should see your iPhone connected to the AirPort

  • My 2011 MBP has begun running slow with frequent 'spinning beach ball' events. I'm running Yosemite and wondered if I should of use the original install disk for maintenance.

    My 2011 MBP has begun running slow with frequent 'spinning beach ball' events. I'm running Yosemite and wondered if I should of use the original install disk for a maintenance reinstall. I presume I'd have to download Yosemite again, though I'd be happy just using Snow Leopard again too.
    Thanks for the help.

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • HT1349 my phone keeps freezing on settings, I cannot make or receive a call but everything else is working including internet and mail. where it should be showing the reception bars it is only showing a broken line. How do I resolve this?

    my phone keeps freezing on settings, I cannot make or receive a call but everything else is working including internet and mail. where it should be showing the reception bars it is only showing a broken line. How do I resolve this?

    If you are not showing reception bars, then I don't know how the data is working? Have you tried doing a reset? Hold the sleep/wake and home buttons together until you see the Apple logo and then release. After the phone restarts, check to see if it works. If that doesn't help, then try removing the SIM card, then reinserting it. If that doesn't help, then contact your carrier for assistance in calling.

  • I am having the problem when trying to take a panorama picture.   It may only take the first frame or doesn't even start at all when I press the shutter button. even though when i  hold the phone straight up and down, so that camera is at the top

    I am having the problem when trying to take a panorama picture. 
    It may only take the first frame or doesn't even start at all when I press the shutter button.
    even though when i  hold the phone straight up and down, so that camera is at the top on the back and the home button is on the bottom on the front.
    This problem is irritating me....?

    To take panorama
    - ensure that the panorama option is on
    - press the shutter button once
    - you will see a line with an arrow
    - move around in a circle  ( I keep the camera steady and turn myself around in a circle)
    - as you do this you will see the arrow moving across the screen as it captures pictures
    - at the end of the capture, you will be able to see your panorama picture
    I hope that this helps, do report back.

  • How can I unlock my iphone??? on the screen I only have the apple logo and  a thing that looks like if the phone is working but no advance

    how can I unlock my iphone??? on the screen I only have the apple logo and  a thing that looks like if the phone is working but no advance

    Hi,
    Try a Reset of the Phone... You will Not Lose Any Data...
    Turn the Phone Off...
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    The Apple logo will Appear and then Disappear...
    Usually takes about 10 - 15 Seconds...
    Turn the Phone On...
    If that does not help... See Here:
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414

  • If I add a new account user,can I sync my iPhone and iPad to that account without effecting the other user?

    If I add a new account user,can I sync my iPhone and iPad to that account without effecting the other user? I'm trying to sync my iPhone and iPad  to a new account on a computer I am now sharing after my computer died.

    Don't create a new iTunes account.
    Just update everything with new info/change password/ security questions.
    -> https://appleid.apple.com/

  • When i try to restore my ipod touch 4g itunes keep telling me that to make sure that my network setting is correct,and make sure that i connected to the internet ?

    when i try to restore my ipod touch 4g itunes keep telling me that to make sure that my network setting is correct,and make sure that i connected to the internet,wht is that supose to mean i allredy connected to the inter net but i dont know how to make sure that my network sitting is correct help me plz

    Try:
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server

  • II am looking for information on iPad and iPhone apps and Mac software that are "top of the line" for academic research. The most current and comprehensive information I have found is dated July 2010.

    I am looking for information on iPad and iPhone apps and Mac software that are "top of the line" for academic research. The most current and comprehensive information I have found is dated July 2010.

    PogoPossum,
    My area of interest is in business and economic history. There is a considerable amount of reading and charting. Until the iPad hit the streets, I only considered stacks of books, journals, and downloaded documents, all marked up with highlighters, underlines, and marginal notes.
    Most of my PC based work involved MS Office, Endnote, and MS OneNote.
    What I would like to do with the iPad and MacBook are the same things (Office, Endnote, OneNote) and add the ability to read and markup all forms of printed materials from books to pdf to webpages.
    I cut my teeth on an iPod Touch and have tried a lot of the note taking and reading apps. Without a camera the standard iPod Notes works for short quick notes and long think pieces. I just emailed the content and downloaded the stuff to my PC. Obviously, I do not want to continue at this "non-integrated" level of work.
    Does this help?
    Dick

  • Hi, Just bought an ipod classic 160gb and i notice that when I turn the volume down all the way, music is still heard, i.e. I cannot turn it down lower than a certain volume. Is there a fix for this? Thanks

    Hi, Just bought an ipod classic 160gb and i notice that when I turn the volume down all the way, music is still heard, i.e. I cannot turn it down lower than a certain volume. Is there a fix for this? Thanks

    I've got a feeling that's the way it is. I know that if I turn the volume down all the way, I can still hear the music very softly -- which is great for listening when I have a migraine!

  • HT4623 I am using iPhone 5 by Cricket and it is international unlock and i tried that when i entered the sim first time it gives network but when i take out the sim and entered the sim again it doesnt give network

      I am using iPhone 5 by Cricket and it is international unlock and i tried that when i entered the sim first time it gives network but when i take out the sim and entered the sim again it doesnt give network and keep searching why ?? Is this problem can be resolve

    Don't know where you got that idea, all US Cricket iPhones are carrier locked, with NO way to get them officially unlocked, as Cricket DOES NOT offer official unlocking for the iPhone.

  • We are using apple tv to try to access our itunes account on the computer.  We see our library of music but when we click on the song it searches for a long time and then says that it cannot access the itunes store.  Any ideas on what we are doing wrong?

    We are using apple tv to try to access our itunes account on the computer.  We see our library of music but when we click on the song it searches for a long time and then says that it cannot access the itunes store.  Any ideas on what we are doing wrong?

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router.
    Reset the Apple TV (Settings > General > Reset > Reset all settings)
    Restore the Apple TV (Settings > General > Reset > Restore)

Maybe you are looking for

  • How to import photos into LR4 that LR states have already been imported.

    LR4 in import mode shows photo files that it has labeled with a leading "_" in a muted format and states they have already been imported and will not allow importing. I have been unable to locate them by file name or date in LR or using file searches

  • I'm a newbie: I have a question about threads

    midp 2.0 Java SE 5.0 J2ME version 2.2 Below is my code I'm stucked with..... The code here shows a midlet class and another class derived from Thread (NetworkThread). This NetworkThread gets started from the main midlet... Search my code for the term

  • Compiled binary crashes during initialization on Solaris 10/x86 platform

    Hi, I have a problem to run application built with Solaris Sun Studio compiler. It dumps a core which contains: $c_init+0x19a(1, 804761c, 8047624, 8047610, 80dabfd, 80da64c) _start+0x78(1, 8047744, 0, 804774c, 8047756, 8047829) > When application is

  • Problem with JButtons Text field not updating

    Im working on a program (which has its full code included below incase its part of the problem) which wants to change a Jbutton's name during a program. The way I'm trying to make it change is by having a string, "test", be called "before update". th

  • How to delete un-needed Lion install files

    To recover some extra disk space I am wondering if there are any temporary install files that I can now safely remove.  I did a google search and wasn't able to find anything.  Maybe the Lion install software already cleaned up as part of the process