How to tell if commit_form is successful

Hello

I'm new with Oracle Forms.

I'm developing an application using forms 6i and Oracle 10 g express.

Can someone guide me please regarding the code under SAVE button (I placed a few buttons on form for add_new, save, Reset ect).

I'm trying to manage a DUPLICATE_RECORDS AND NULL_VALUES through this code that is in form ON_ERROR triggering

declare

x number;

Start

If dbms_error_code in (-1400,-1407) then

x: = show_alert ('alert_Empty');

raise form_trigger_failure;

elsIF dbms_error_code = '-00001' then '.

x: = show_alert ('alert_duplicate');

raise form_trigger_failure;

end if;

end;

and the code under the button SAVE is

declare

a number;

Start

commit_form;

a: = show_alert ('alert_Saved');

clear_form (NO_VALIDATE);

raise form_trigger_failure;

but same shape gives rise to duplicate value or the value null, Alert_save shows that the file has been saved.

My question is how can I be sure that record was actually recorded?

I tried to check: SYSTEM. FORM_STATUS and return it CHANGED.

is there any approach I should use, any piece of sample code will be much appreciated.

Kind regards.

end;

Well, looking at the forms, (built-in FORM_SUCCESS) help system they give an example of how test whether validation succeeded.

IF Form_Success THEN
  Commit;
  IF :System.Form_Status <> 'QUERY' THEN
    Message('Error prevented Commit');
    RAISE Form_Trigger_Failure;
  END IF;
END IF;

Craig...

Tags: Oracle Development

Similar Questions

  • How to tell if someone uses remote adjustment to control the use of my computer?

    How to tell if someone uses remote adjustment to control the use of my computer?

    * original title - monitoring computer use *.

    Hello

    Why do you think that someone is watching your computer use? One would have to have
    loaded tracking software (trojan) on your computer or have access to the source of the network
    you use, such as cable, on your leg of it and have very sophisticated equipment.

    If you need search malware here's my recommendations - they will allow you to
    scrutiny and the withdrawal without ending up with a load of spyware programs running
    resident who can cause as many questions as the malware and may be harder to detect as
    the cause.

    No one program cannot be used to detect and remove any malware. Added that often easy
    to detect malicious software often comes with a much harder to detect and remove the payload. Then
    its best to be thorough than paying the high price later now too. Check with them to one
    extreme overkill point and then run the cleaning only when you are sure that the system is clean.

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
    the regular windows when you can.

    TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
    It will display all the infections in the report after you run - if it will not run changed the name of
    TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
    check with the other methods below.
    http://support.Kaspersky.com/viruses/solutions?QID=208280684

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
    (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/products/malwarebytes_free

    SuperAntiSpyware Portable Scanner - free
    http://www.SUPERAntiSpyware.com/portablescanner.HTML?tag=SAS_HOMEPAGE

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can
    Download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
    security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
    here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
    (viruses, Trojans, rootkits, etc.). who infected your computer despite safe
    what you have done (such as antivirus, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    -----------------------------------

    Original version is now replaced by the Microsoft Safety Scanner
    http://OneCare.live.com/site/en-us/default.htm

    Microsoft safety scanner
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    ----------------------------------

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    After the removal of malicious programs:

    Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
    system files.

    Start - type this into the search-> find COMMAND to top box and RIGHT CLICK-
    RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker
    (SFC.exe) program generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    =======================================

    For extreme cases:

    Norton Power Eraser - eliminates deeply embedded and difficult to remove crimeware
    This traditional antivirus analysis does not always detect. Because the Norton Power Eraser
    uses aggressive methods to detect these threats, there is a risk that it can select some
    legitimate programs for removal. You should use this tool very carefully and only after
    you have exhausted other options.
    http://us.Norton.com/support/DIY/index.jsp

    ================================

    If you are in North America, you can call 866-727-2338 to get infections of virus and spyware. Seehttp://www.microsoft.com/protect/support/default.mspx for more details. For international information, check your subsidiary local Support site.

    I hope this helps.

  • How to tell the difference between recommended, and optional updates long after they have installed bene?

    I have a Vistaprogram of the window running on my Toshiba laptop.

    In the past, I've confirmed that optional udates be installed. Please help: now I want to uninstall optional updates because my computer is slow.  How to tell the difference between recommended, and optional updates long after they have installed bene?

    Hey monkey 44,

    I suggest you view the history in Windows Update:

    http://Windows.Microsoft.com/en-us/Windows-Vista/see-which-Windows-updates-are-installed

    Those listed as recommended is technically optional.

    Before you delete updates the computer, I suggest you try the steps from the following link to improve performance and check if that helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/ways-to-improve-your-computers-performance

    I hope this helps.

  • How to tell if someone uses my count at home when I'm not home?

    Original title: who was on my computer.

    Probably a stupid question, but I've never had to ask before.  How to tell if someone uses my count at home when I'm not home?

    You can examine (eventwvr.exe) Event Viewer system log. He recorded each logon.

  • How to tell if windows Genuine in my pc (Windows 8)?

    How to tell if windows Genuine in my pc (windows 8)?

     
     
    Original title: Question

    See the following topics:

    http://Windows.Microsoft.com/en-us/Windows/help/genuine/what-is-validation

    or

    Press the Windows key + X

    Click System

    Scroll down to the Windows Activation

    Click on see details in the Windows Activation

    So says his active, then its true.

    Is it preinstalled on your computer?

  • How to tell a select statement to ignore a clue?

    Dear all,

    I have a large query that uses many clues, but when I create a new index on the table, accessed by the query, the query will try to use this additional index and so it performs badly. Can you tell me how to tell this query to ignore this clue, because I need the index in other queries and I can't let it go.

    Concerning
    Wassim

    You can also use the NO_INDEX hint.

    / * + NO_INDEX ( ) * /.

    This trick will force the optimizer to ignore the index named when it formulates the plan.

    Karen

  • How to tell if ObjectProxy contains the ArrayCollection collection or single object?

    When I retrieve data from a web service, the list contains an ArrayCollection collection. Within each collection ArrayCollection, the element can be a single object or a collection of objects theser ArrayCollection. It seems that FLEX provides what he thinks it's the ObjectProxy object type based on the number of children under the parent node.

    If the done ObjectProxy refers to an ArrayCollection collection, I want to iterate on it, but if she refres to a single object, I want to remove some of its properties.

    How do I tell at runtime if an ObjectProxy made reference to a collection ArrayCollection, or a single object? Thank you very much in advance!

    Found an answer here:
    ons-in-adobe-flex-2-how-to-successfully-read-any-number-of-xml-nodes.aspx http://www.theruntime.com/blogs/be-sharp/archive/2008/02/26/Web-services-and-arraycollecti

    which provides a response if there are NO child nodes, if there is exactly one child node, or if there are several children nodes...

  • I need help and im not sure how to tell you what the problem is. Firefox has a tools app

    There are a bunch of garbage that firefox imported from google and I can't get rid of it. How can I stop firefox support Web sites. I am very frustrated. I love firefox but if I can't solve this problem I will be forced to remove it.

    Could you be more specific on the rubbish heap?

    In the meantime, here is my procedure suggested to track down and cleaning of the bad modules. I know it seems long, but it's not so bad.

    (1) open the Control Panel, uninstall a program. After the loading of the list, click on the column heading "installed on" to group infections, I mean additions by date. This can help the undisclosed items bundle smoker who snuck out with some software, you have agreed to install. Beware of everything that you don't recognize / remember, since malware often uses sounding names important or innocent to discourage you remove. Out as much garbage as possible here.

    (2) open Firefox page modules using either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons
    • in the Windows "Run" dialog box, type or paste
      firefox.exe "about:addons"

    In the left column, click on Plugins. Set essential and unrecognized plugins 'never enable '.

    In the left column, click Extensions. Then, in case of doubt, disable (or delete, if possible) not recognized and unwanted extensions.

    Often, a link will appear above at least an extension disabled to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    Any improvement?

    (3) you can search the rest of problems with scanning/cleaning tools listed in our technical support article: Troubleshooting Firefox problems caused by malware. These scanners on request are free and take a long time to run. If they end quickly, especially if they require the payment you have a serious infection. I suggest the specialty forums listed in the article in this case.

    Success?

  • LabVIEW, how to check if GSM texted successfully

    Hi all

    This is a difficult question.

    Here I have a VI for message send using a GSM modem, but after sending, I want to know if this gas SMS successfully sent or not?

    Some said after sending, the GSM will give an acknowledgement, to inform the user of the State accrediting.

    So here's my question, how can I check if the previous message has been sent successfully or not?

    How connect you to the modem via AT commands or by using a DLL?

    What brand / model of the modem?

  • How to tell the difference between default programs downloaded vs programs

    How can I tell the difference between my default that is already installed on my computer and programs that were downloaded on my computer that I need to uninstall? I'm very nervous about to enter Control Panel and then try to decide what programs or downloads that need to be uninstalled by fear of uninstalling vital programs in need of my computer.

    Hi AnitaJackson,

    What operating system is installed on your computer?

    Built-in applications on Windows will not appear in the control panel of Windows. The programs you have downloaded only appears in the Panel. If you want to uninstall any program downloaded, you can uninstall it from Control Panel.

    Hope the helps of information.

  • HOW TO TELL (MULTIPLE TRACKS) ON A MUSIC AUDIO PLAYING IN THE SAME SCENE? AND WHAT I NEED TO ADJUST THE VOLUME DURING PLAYBACK OF THE TRACK - OR WHO WILL BE AUTOMATIC AS SOON AS I START THE NARRATION?

    ON MOVIE MAKER - I'M TELLING ON A TRACK THAT PLAYS WHILE THE PHOTOS ARE DISPLAYED.

    1. HOW DO I TELL ON THE MUSIC TRACK PLAYING?

    2. DO I HAVE TO SET THE COLUME ON THE MUSIC TRACK - OR - THE MUSIC WILL AUTOMATICALLY ADJUST ONCE I HAVE START THE NARRATION?

    3. WHEN I FINISH a SEGMENT OF THE MOVIE - AND "SAVE THE PROJECT" - HOW DO I INSERT IT IN THE FILM COMPLETE?

    I HAVE TO SAVE AS WINDOWS MEDIA? WHAT I HAVE TO PUT IT ON A DVD? ... AND THEN INSERT IN MY COLLECTION AND THEN ADD THE FINAL MOVIE?

    PLEASE NOTIFY

    1. HOW DO I TELL ON THE MUSIC TRACK PLAYING?
    =================================================
    Apparently you have imported a file of music to your slide show and you
    want to add narration also. I think would be best to delete
    the music file for now, create your narration, and then replace it
    music file.

    The problem of having two audio tracks playing simultaneously?

    You must save the slide show / narrative as one. WMV Movie file...
    File / save movie file. Then reimport them saved. Just the WMV video file
    as you would for any other video and audio music will be
    clear for you to add your music files. The volume of the tracks can be
    adjusted to... Right click / Volume, drag the slider.

    =================================================
    2 CAN I ADJUST THE VOLUME ON THE PIECE OF MUSIC
    -OR - THE MUSIC WILL AUTOMATICALLY ADJUST ONCE I HAVE START
    NARRATION?
    =================================================
    The removal of the music file will clear this up.
    =================================================
    3. WHEN I FINISH a SEGMENT OF THE MOVIE - AND
    'SAVE PROJECT' - HOW DO I INSERT IN FULLY
    FILM?
    =================================================
    In addition to "Saving The Project" (for the future edition)...
    Save the movie file in the... WMV format.

    Then you can import the saved. WMV video file and
    Use it in a project as you would for any other... WMV
    video file.

    =================================================
    I HAVE TO SAVE AS WINDOWS MEDIA?
    =================================================
    . WMV would be the format of the recorded movie.

    DV - AVI is also an option, but the file size will be much larger.
    I'll add options at the end of this registration message.

    =================================================
    WHAT I HAVE TO PUT IT ON A DVD? ...
    =================================================
    No, just save to a folder on your hard drive.
    =================================================
    AND THEN INSERT IN MY COLLECTION AND THEN ADD
    FOR THE FINAL MOVIE?
    =================================================
    As stated previously, just reimport him. WMV video and use it
    as you would for any other video clip.
    =================================================
    The following article is maybe worth a visit:

    Record a narration in Movie Maker 2 and some of the
    You may encounter problems of microphne.
    http://www.mightycoach.com/articles/mm2/narration-moviemaker2.html

    the following video tutorials may be worth a visit:

    Windows Movie Maker 2 tutorials
    http://www.atomiclearning.com/moviemaker2
    (in the 'I' section there is a clip called: "Narrating your")
    film project")

    More tutorials:

    Articles and tutorials for Windows Movie Maker
    http://www.windowsmoviemakers.NET/tutorials/
    (#2 is Audio / Narration)

    And Movie Makers Forums may be worth a visit:

    Movie Makers Forums

     
    =================================================
    info on savings:
    To save in a .wmv movie file...
    Type of... CTRL + P (or go to...) File / save movie file)
    to open the wizard movie recording.

    Choose... My computer.
    Next /.
    Enter a name and a location.
    Next /.
    ICT... "Best quality for my computer.
    Next /.
    Wait while the movie is saved.
    Finishing...

    To save a DV - AVI movie file...
    (and other options)
    Type of... CTRL + P (or go to...) File / save movie file)
    to open the wizard movie recording.
    Choose... My computer.
    Next /.
    Enter a name and a location.
    Next /.
    Show more choices.
    Other parameters.
    Open the window of the droplet and choose... DV - AVI.
    Next /.
    Wait while the movie is saved.
    Finishing...

    In addition, you may find it useful to use
    a custom profile:

    Movie Maker 2 - Save movies - custom WMV profile
    http://www.Papajohn.org/mm2-SavingMovies-CustomProfiles.html

  • CPU has 4 usb at the back. 2 are 2.0 and 3.0 2. How can tell you who's who

    Just bought new HP PAV p7 1380 t.  It has four USB at the back.  According to specifications

    2 are 2.0 and 3.0 2 How tell you who's who?

    Hello

    Your machine: must select one of the following options (IE can have)

    1. 15-in-1 card reader multimedia + 2 taken from Headset USB 3.0 + 1 + 1 microphone taken
    2. 15-in-1 multimedia card + 2 taken reader headphones USB 2.0 + 2 USB 3.0 + 1 + 1 micro

    From your description, your computer has the #2 option. Simply plug any UCB 3 flash drive or disk external HARD at these ports, the system will tell you which is which.

    Kind regards.

  • How to tell if Windows is for sale at retail or OEM?

    I'm looking to install a new motherboard and processor in my PC, but I was told that the license for Windows 7 is assigned to the motherboard, so if I have an OEM version it will not work with the new parts. Unfortunately I lost my Windows 7 disc, if I still have the product key and product ID. Can someone tell me how I would know if my version is retail or OEM please? I heard that the OEM letters appear in the product ID, if it's an OEM version (which is not in my case), is that correct? Finally, as I have lost the disc, can I download a copy of Windows 7 and use my product key?

    Thanks in advance for any help!

    http://www.w7forums.com/official-Windows-7-SP1-ISO-image-downloads-t12325.html

  • How to tell if MDS Simulator is running?

    I want to use the 9500 Simulator to test a Web site, but I can't connect to the web.  I turn the MDS Simulator before you start the trainer 9500, but it merely a display of messages and then close the window, so I don't have an idea he ran ok or had problems.  Because I can not connect to the web, I imagine that SDM is not running, but don't know how to debug this.  Is there a service that I can look for to tell if SDM is running?  The MDS Simulator creates a journal somewhere?

    I am running WIndows 7 - could - he is having problems with the simulators running on this subject?

    Finally, since I'm new to this, is there a FAQ somewhere of the current coding problems that cause problems for BlackBerry?  The problem that my users will see is that they can get to my research page, but nothing happens when they try to make a search.  It works on other phones.  If I could find a list of the things to look for, it would be extremely useful.

    Thank you!

    Cosmic

    For ASP.NET, it can be useful:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800878/800733/How_To _...

  • How to tell if the samples in a Swatch Group are selected

    Hello. I'm trying to figure out how to get the samples selected in a particular group of swatch. Currently, I managed to get the nuances in the swatch group with:

    docRef.swatchGroups.getByName ("shirt Swatches") .getAllSwatches)

    but from there, I can't seem to not get that is sorted. I tried a loop with docRef.swatchGroups.getByName ("shirt color chart"). [i] .selected, but each result returned as undefined. I don't want to use docRef.swatches.getSelected () because I want only the samples selected in my group swatch "swatch of shirt. Alternatively, if there was a way to tell if any selected sample was in my band "Shirt color chart" I guess that would work, but I don't want to write a function that compares each sample to each sample in the Group of swatches shirt because it seems that there should be a more efficient way to do but if I have to I'll do it.

    This seems to be a very simple problem with a basic solution, but maybe it's not. Any suggestions?

    There is no direct access to samples selected in a swatch group, a way to bypass that limitation is to get the nuances in the Group of shirts and transform the table into a string, then you can search each color chosen against the chain of swatches of shirts.

    function main () {
        var idoc = app.activeDocument;
    
        var selectedsw = idoc.swatches.getSelected();
        var shirtSwatches = idoc.swatchGroups['Shirt Swatches'].getAllSwatches().toString();
    
        for (var a=0; a		   

Maybe you are looking for

  • update applications in itunes

    I can no longer access my wifi on an iphone 4 and can't find out how to upgrade applications through itunes.  Prior to the update of the OS of Capitan, I was able to find it in the view menu.  All the previous questions on this forum about the update

  • Firefox slow on the Site of HTML5

    I don't understand why when I try and watch a HTML5 website in Firefox, Firefox slows down to a crawl. I tried all the latest versions including Beta.

  • split screen on the iPhone 6 s more?

    iPhone more than 6 s has got split screen function? THX

  • HDMI input/output

    Hello I have a HP Pavilion dv7-6c54ea, and I wanted to connect my PS3 to my laptop to show the game on my laptop. I looked in my manual but I can't know if my laptop has a HDMI input option. I do not want to connect them to the case where I break my

  • Help! Accidentally deleted music folder

    Can someone help me please?  I've been a total jerk and delete my music folder - had problems to import iTunes music and managed to remove it from the My Documents folder. Trouble is, I emptied the trash since then, so I can't retrieve it from there.