How to stop a process to run and display a message

I have a button that inserts data in a table based on variable bind selected on the page. I want to add code to the button that will check to see if some data already exists in the table, to bind the variable, and if the data already exists, stop the process and displays a message that says 'you have already inserted this information - blah blah blah ". If this is not the case, continue to insert. What would be the best way to do this?

Currently, the button is a plsql that inserts the data.

Any help or examples would be greatly appreciated!

mholman

Published by: user10488561 on July 27, 2009 08:48

Use a validation process for this. If the validation fails (there are data) the process will not be executed. If this is not the treatment will continue.

Denes Kubicek
------------------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
------------------------------------------------------------------------------

Tags: Database

Similar Questions

  • When I shut down windows end progra - sample appears and windows will not be stopped, unless I click for end of program. Eny one have an idea how to stop this program from running?

    When I shut down windows end progra - sample appears and windows will not be stopped, unless I click for end of program. Eny one have an idea how to stop this program from running?

    Then, you will need to request Support Intel if the drivers you downloaded were appropriate for your hardware and Windows XP.

  • How to find what processes are running on my computer and use it from memory?

    * Original title: find running processes

    How to find what processes are running on my computer and use it from memory?

    You can press Ctrl-Shift-Escape to see which processes are underway and those who is using memory (and how much they use).  Although the memory usage is not as important as how they use lots of CPU, which is what can make your computer slow if there are too many programs use the CPU at the same time.  For memory, even if she says that he uses a lot, an inactive program ' pages on "memory to the hard disk and it frees room for other programs to use, is not as important as the CPU generally (unless you are very very low on memory).

  • How to stop disk check to run every time that windows vista starts?

    How to stop disk check to run every time that windows vista starts? I had a problem with one of my backup disks so I removed it, but now the drive is still running a disk check whenever I boot my system. It takes so long to run and there is no error, but it starts every time. Why and how can I make sure that she? I read similar questions, but they don't tell you how to run a disk check, they mention however that "If you want to cancel the regular disk for some reason check, check out this guide." but tell you what guide or link?

    Hello

    This tells you how to enable and disable it:

    How to difficulty Chkdsk will not run at startup in Vista
    http://www.Vistax64.com/tutorials/130824-CHKDSK-will-not-run-startup-Vista.html

    Video: Stop Check Disk from constantly running at startup in Windows Vista
    http://blogs.TechRepublic.com.com/itdojo/?p=193

    ChkDsk runs every time Windows starts.
    http://www.WinVistaClub.com/T20.html

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • How to stop making the pdf online and do it as before on your computer?

    How to stop making the pdf online and do it as before on your computer?

    Hello Sumit

    I have intalled Adobe Acrobat XI on a new computer.

    To make a pdf, it's easy

    File = pdf or Binder do make

    Now

    File = pdf online maken

    I want to make it as = make pdf file or linking

    And is not

    File = pdf online maken

    How can I chance that

    Groeten Vlaar Interieurbouw B.V.

    Jan Vlaar

    Info@Vlaar-interieurbouw .nl

    <>[email protected]> [email protected]

    http://www.Vlaar-interieurbouw.nl> www.vlaar-interieurbouw.nl

    Op al eleven transacties zijn van toepassing leveringsvoorwaarden, gedeponeerd bij K.v.K Altmühl - Holland onder nr. 36043432

    BTW nummer NL 8148.01.444.B01.

    Van: Sumit Singh

    Verzonden: Thursday 9 April 2015 14:18

    Aan: J Vlaar

    Onderwerp: How to stop making the pdf online and as before do it on your computer?

    How to stop making the pdf online and do it as before on your computer?

    created by Sumit Singh https://forums.adobe.com/people/Sumit+Singh> in download, full installation, commissioning - see the discussion of https://forums.adobe.com/message/7421526#7421526>

  • I created form in adobe acrobat X 1 Professional. Now, I want to put logic on a field. I want that the document will be closed if someone between age under the age of 18. and display a message for minors?

    I created form in adobe acrobat X 1 Professional.

    Now, I want to put logic on a field.

    I want that the document will be closed if someone between age under the age of 18. and display a message for minors?

    The final document is a little drastic... Perhaps simply display an error message? In any case, you can do it like this, as a custom field validation script:

    if (event.value && Number(event.value)<18) {
        app.alert("You must be an adult to fill in this form!");
        this.closeDoc(true);
    }
    

    Be aware that using this code will close the file without saving it, and the user will lose all unsaved data that they have entered.

  • How to stop as files to run until a certain range

    Hi all

    I have a flash game simple with two frames at the moment.
    Most of the things that happens is in the form of files related to the various clips.

    I grappler only had a setting my background image and when to test I just press CTRL + ENTER and bamm far it goes the actionscript code works as soon as the movie/game starts and ergo plays the game.

    My problem is this, I now have a picture of start/home at the beginning (of course) that has the start game button which, when clicked, and THEN starts the game.

    Currently, the game starts in the first picture with the Start button :(

    How to calm down the game running right now and my first frame contains the Start button, which, once clicked then passes to the 2nd section and starts the game?

    Regards,
    Red.

    A friend has solved the problem for me;
    By renaming the main contrustor and this call in the action script start button example apply to the button:

    ONSET OF ACTION SCRIPT
    ##########################################################################################

    import flash.events.MouseEvent;

    Stop();

    startBTN.addEventListener (MouseEvent.CLICK, startClick);

    function startClick(event:MouseEvent):void
    {

    trace ("button clicked");
    gotoAndStop (2);

    gameGo();
    * gameGo() is the renowned main document class, renaming it prevents it from run immediately
    and it is called by the button * /.

    }

    ########################################################################################## #
    END OF THE SCRIPT IN ACTION

  • How to stop the log in page and continue straight on the desktop at boot?

    Original title: desktop

    How to stop the newspaper in stright page and go to the desktop page when starting

    Hi Ms.HarleyChic,

    Windows operating system you are using?

    If you use Windows 7, try the steps in the following article and check if this can help:

    Enable or disable a secure connection (CTRL + ALT + DELETE)

  • How to call a process that runs in another engine

    Hi all

    I looked through the 10.3.1 OBPM docs, I found "Subflow activity" and "Business process" can invoke a process that runs in another engine. But in the studio OBPM, I find not all the properties of these two activities to set up this feature.

    Any ideas? Thanks in advance.

    Best regards
    Bill

    Hi Bill,
    In addition to the above, you may consider using process Interfaces, you can define an interface to process in a project and import it into another project to simulate its execution by the way and receive arguments, after when you deploy business interfaces are not published and are substituted by real projects located in tha other project.
    HTH

  • How to stop stealing my contacts of whats up virus message numbers?

    HI, Im using Iphone 6s, recently I have faced a problem with a virus whatsup message. a message on the phone without starting by + 1xxxxxxx I opened my phone and it got a little hang then my whole list of contacts that i can see in whats up message. I was shocked to read this message. is it possible a whats up with virus message can start on the phone number, if yes how to stop it.

    Thanks in advance

    Thalavai.M

    There is no virus affecting the iOS unless you jailbroke your device. As long as you have not, then no additional access is necessary.

  • My Mac has stopped at random to send and receive text messages. Any thoughts?

    My Macbook Air stopped randomly send and receive text messages today. All software are up to date on my Mac and iPhone, and transfer of text messages is on my iPhone. Don't know what to do!

    You may have been signed off iMessage on your Macbook Air for some reason any. To check, open messages on your Macbook Air, click Messages at the top of the screen, then click on Preferences, tap accounts, click iMessage and login if you are not yet connected. If you try disconnecting and by signing insert it again. This should solve the problem. Let me know if this helped!

  • How to store characters in result file and display on front panel

    Hello

    currently I am working on the FPGA project.i want data acquired from FPGA board.i want to know on how to store characters to the file and contineous each character display on the façade in the string format.

    I'm full up to characters on the front display, but display characters only when I want all characters in string format.

    I don't see how this question fits in any digital i/o, but it looks like you just need a change of register with the concantanate string function.

  • Detect the browser and display the message, without PHP?

    My site is not fully functional with Google chrome, still many works in Firefox and almost nothing works with IE (for now), is there some kind of code/script that I can use to detect whether a browser is not Google chrome? And then if the browser is not Google chrome a message appears? I can't use anything PHP, Javascript or something else would be better.

    could someone just help out me with the display of a popup, but only for a browser that is not in a specific list?

    You have no idea how MANY different browser user agents and there are versions?  I don't think you do, or you wouldn't ask that question.   An exhaustive list could continue for pages and still not all cover.

    Let's say that for a moment your site looks OK (maybe not 100% perfect, but OK) in all modern browsers EXCEPT Internet Explorer 6, 7 and 8.  You could use a conditional comment to pre - IE9 target browsers and display a "warning message" then load your page.  Just paste this after thetag in code view.

    
    
    
    

    Purely for the reasoning, suppose that we are in the Bizzaro world (another dimension where everything works in opposites).  Your site works well in all versions of Internet Explorer, but has problems in all modern browsers.  You can use a conditional comment of exclusion like this:

    
    
    
    
    
    

    In summary, I do not recommend the use of browser detection scripts because they are not infallible. Object detection is much more reliable.  To learn more about the reasons, see this article from quirksmode.

    http://www.quirksmode.org/js/support.html

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • Check invalid date and display error message for that forms 10 g or 12 c

    Hi all

    a text element text_fdate is of data type date mask and the format is dd/mm/rrrr

    In this text element that I want to display validation message "you have entered an incorrect date that does not exist.

    When the user enters an invalid date as 30/02/2016 which is not exists.

    What trigger I use and when.

    Florian wrote:

    Hey Hamid,

    GET_ITEM_PROPERTY ('ITEM_NAME', ITEM_IS_VALID);<--it is="" not="">

    Above will work only on the query mode.

    The code works, but the below error code you gave does not work in forms 12 c.

    1. IF ERROR_CODE = 50012 THEN
    2. MESSAGE ("Please enter the correct date.");
    3. MESSAGE ("Please enter the correct date.");
    4. END IF;

    The correct error code is 50004 12 c forms.

    Just change the ERROR_CODE of 50012 to 50004 and it will work.

    I'll check the error code in form 10g and will play with you again.

    I already checked and functional at 10g.

    Hamid

  • How to stop the process in a base directory? tnslsnr

    Hello
    When I try to upgrade the database to 10.2.0.3.0 10.2.0.1.0, I stop all the databases and listner but I get the following error? Please tell me how to fix it?

    The following processes need to be stop befor continues:
    tnslsnr

    Thank you
    Goussard

    That means that your listener is not shut down cleanly.

    Try to check your status of listener again

    lsnrctl status

    and stop it again. See also listener.log for error.

    as a last resort. kill the process.

Maybe you are looking for