Prevent exit from a block

Dear members,
I have a block on a stacked canvas. I want the user to exit only by clicking on a particular button. Thus I created a POST-BLOCK trigger to raise a form_trigger_failure if the user clicks anywhere else. It just checks if the view is visible. The button then just has to hide the view before exiting, so the trigger lets it do it.
The problem is that I want the user to be able to commit its work while on the block. But when I execute a 'COMMIT_FORM', Forms tries to exit from the block, gets the form_trigger_failure, and stops committing.
The solutions could be:
- To find another way to prevent the user from exiting from the block/canvas,
- To make the difference between a user exit and Forms exit so the trigger can sort it out.
Any clue will be much appreciated.

Let me put it clearer:
Actually, I do have my 'commit_form and exit that block codes' in my button trigger.
But the user can also exit from the block/canvas by clicking anywhere on the main canvas (since they are stacked), what I don't want. The post-block trigger is there to prevent him to do so, by raising a form_trigger_failure (since I can't use a go_block to go back to my canvas).
That means I don't use 'commit_form' in my post-block trigger.
By the way, what's the difference between 'commit_form' and 'FORMS_DDL('commit')' again ?

Similar Messages

  • Exiting from a Block that is in Enter-Query Mode

    hello,
    can anybody show me how to cancel the query of block "x" and go to block "y", when block "x" is in enter-query mode, and the user navigates using the mouse to a field in block "y".
    thanks

    Hi, Samir
    Please create the following WHEN-MOUSE-CLICK trigger in your second block.
    If you don't want to activate enter-query mode when you click on the second block, simply remove the "enter-query;" line below.
    if :system.mode = 'ENTER-QUERY' then
    declare
    oldmsg varchar2(2);
    begin
    oldmsg := :system.message_level;
    :system.message_level := '10';
    exit_form;
    :system.message_level := oldmsg;
    end;
    next_block;
    enter_query;
    end if;When the mode is ENTER-QUERY, some built-in routines change their behaviour. EXIT_FORM; is used to cancel the enter-query mode.
    Hope this helps,
    Pedro.

  • How can I prevent Firefox from cleaning my clipboard at exit (exit or closing firefox) ?

    How can I prevent Firefox from cleaning my clipboard at exit (exit or closing firefox) ?
    I am using FF 9.0.1 and the problem start from FF 5.0

    You can't prevent that.<br />
    If you've placed data on the clipboard in Firefox then you need to paste that data in the other program, if that is your intention, before closing Firefox.

  • When i put in a compact flash card iphoto automaticaly comes up to import my photos. I have to exit out of iphoto to use the editing softwear that i prefer to use every time. It is very annoying. How do i prevent this from happening?

    When i put in a compact flash card iphoto automaticaly comes up to import my photos. I have to exit out of iphoto to use the editing softwear that i prefer to use every time. It is very annoying. How do i prevent this from happening? I have looked in system prefereces....maybe i am over looking something, Thanks

    iPhoto Menu -> Preferences -> General -> Connecting Camera opens.... And select your preferred app.
    You can also make the same choice in the Image Capture (in your Applications Folder) and Aperture preferences.
    Regards
    TD

  • Exit from a pl/sql block

    Hi all. I'm on oracle 9i.
    I have a problem: I launch my sql file, which has a part made of some SQL commands and then inside it there is a part that is a PL/SQL block.
    What I want is that if a certain if condition is verified it must exit from PL/SQL block and also it must exit from all the file!
    Here is a part of code:
    drop table test1;
    create table test1
    as select * from test2;
    create table prova_test1
    as select * from test_1
    where 1=2;
    DECLARE
    conta number := 0;
    valore number := 0;
    contap number := 0;
    valorep number := 0;
    istruzione varchar2(2000) := null;
    BEGIN
    select count(1), sum(val) into contap,valorep
    from prova_test1;
    select count(1), sum(val) into conta,valore
    from test_1;
    if conta <> contap or valore <> valorep then
    istruzione := 'exit';
    execute immediate istruzione;
    else
    others sql statements.....
    end if;
    end;
    So what I want is that if the condition is verified it must exit from pl/sql block and also from all the process.
    How can I achieve that??
    Thanks for collaboration,
    Fabrizio

    Fabrizio Delli Priscoli wrote:
    whenever sqlerror exit 99
    whenever oserror exit 98
    Number 99 or 98, are SQLCODE returned from my exception?No, they are NOT SQLCODE.
    SQLCODE is an oracle database error code.
    Now,
    sqlerror is how 'Sql*Plus' (the one that is calling the pl/sql block) would handle ANY SQL ERROR coming out of pl/sql block OR other parts of the sql you are running within the SQL*Plus construct.
    99 and 98 are the error numbers that SQL*Plus is returning to the script or code that is calling SQL*Plus. In this case, probably the 'shell script' that calls this SQL*Plus construct.
    So, you would handle that error in the shell script.
    Maybe something like this: (this is the shell script that is calling a sqlplus session).
    1>>$LOGFILE 2>>$LOGFILE sqlplus -s $DBCONN <<EOF
    whenever sqlerror exit 99
    whenever oserror exit 98
    set serveroutput on
    set feedback off
    BEGIN
    some_code;
    END;
    exit
    EOF
    ret_value=$(echo $?)
    case "$ret_value" in
        99) mail -s "Error: Some sqlerror on the script on $(date)" $SOME_EMAIL <$LOGFILE ;;
        98) mail -s "Error: Some oserror on the script on $(date)" $SOME_EMAIL <$LOGFILE ;;
    esac

  • When I mouse over an active tab, a circular "block" symbol appears and prevents me from either clicking on or closing the tab

    When I am in FireFox, and I mouse over any area that would normally allow me to do something, like select a tab, close a tab, or even fill text into this details box, a circular "block" symbol appears and prevents me from entering or doing anything. I have scanned all of the installed programs in the Control Panel and removed anything suspicious and reviewed addons and the like in FireFox, all to no avail. BTW, this problem does NOT occur while in Google Chrome, but I much prefer FireFox. Help!!!

    Note that your System Details List shows multiple Flash plugins.
    # Shockwave Flash 11.9 r900
    # Shockwave Flash 11.8 r800
    You can find the installation path of all plugins on the <b>about:plugins</b> page.
    You can check the Flash player installation folder for multiple Flash player plugins and remove all (older) version(s) of the plugin (NPSWF32) and (re)install the latest Flash player.
    *(32 bit Windows) C:\Windows\System32\Macromed\Flash\
    *(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\

  • When I try to exit a video on the internet I received a screen asking if I was sure I want to leave. It to not have a confirmation tag. But it has prevented Safari from shutting down. Now I can not turn off my Mac? How do I reset?

    When I try to exit a video on the internet I received a screen asking if I was sure I want to leave. It to not have a confirmation tag. But it has prevented Safari from shutting down. Now I can not turn off my Mac? How do I reset?

    What kind of videos are you watching? 
    You need to force quit Safari, but hitting Command-option-esc, and force quit Safari. 

  • I allow my grandchildren to play free games on my ipad that I download for them.  Is there a way to prevent them from accidentally (or otherwise) purchasing upgrades?  My 6 yr old just did so and has no idea how she did it.  Can I block this access?

    I allow my grandchildren to play free games on my ipad and iphone that I download for them.  Is there a way to prevent them from accidentally (or otherwise) purchasing upgrades?  My 6 yr old just did so and has no idea how she did it. Is there a setting that would prevent this from happening?

    Yes.  You can set restrictions.
    This is covered in the manual.
    iPhone User Guide (For iOS 5.0 Software)
    iPad User Guide (For iOS 5.0 Software)

  • Prevent JVM from exit on Windows with an Atl-F4

    The "Alt-F4" key combination can be used to kill my Java program.
    Would anyone know of a way to prevent this?
    Since this only needs to be stopped on Windows and the
    application does bundle the "JRE" with it (we therefore
    control which version of Java we are using). I was thinking
    of trying to use the sun.misc.SignalHandler to intercept what
    I assume would be the SIGINT or SIGTERM associated with
    the "Alt-F4".
    Has anyone else done this?

    Actually I do use JNA to capture and forward the keyboard events. The JNA keyboard hook however
    does NOT see the Alt-F4 sequence. (My guess is the OS's handler get it first).
    I was instead hoping to capture the SIGINT or SIGTERM event (I'm not yet sure what it is) to prevent it
    from shutting down the JVM.
    Edited by: asnyder on Nov 24, 2009 5:03 PM

  • Permit internal Read Receipts but prevent them from exiting organisation

    http://blogs.technet.com/b/exchange/archive/2011/02/23/3412028.aspx
    Above article explains how to delete Read Receipts in Exchange altogether.
    Can I use Exchange to allow Read Receipts between internal users within the organisation but prevent read receipts from being sent to external mail addresses? Case in point is to prevent spammers from confirming live addresses within the organisation.
    So we want to know if anyone has read our emails; we want to know if we've read each others emails and if the outside world has read our emails but we don't want the outside world to know whether we've read their emails.
    I'm getting the impression that the functionality supported in Exchange means that you can only configure a rule like this on a separate gateway (front end?) if you want only external affected and you cannot specify the direction (i.e. allow incoming read
    receipts but delete outgoing read receipts).

    Hi,
    From your description, you want to prevent the external users from receiving the read receipts of internal users.
    You can create the following transport rule to achieve it. (Note: Because we use the "Read" as subject key word, it will delete the messages whose subject contain "read", please pay attention to use it.)
    What's more, I have a test in my lab. If I choose "Read:" as subject key word, the transport doesn't work. When I choose "Read" as subject key word, it works.
    Besides, to force an immediate update of transport rule, you can stop and start the Microsoft Exchange Transport service.
    Hope it helps.
    If you need further assistance, please feel free to let me know.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Prevent the use of blocked vendors in Funds Reservations

    Does anyone know of a specific user exit or way to prevent users from entering a vendor that has been blocked or marked for deletion in a funds reservation (FMX1)?

    I've done it - it does work.
    You just have to keep explaining why their response is incorrect (if it is incorrect). Eventually, OSS will convince you that it is correct or you will convince them that it is incorrect.
    However, sometimes if you cannot make progress, close the message and open a new one. Maybe you'll get someone more sympathetic to your cause. (Not the official SAP recommendation.)
    Rob

  • How can I prevent Firefox from re-installing test pilot?

    I had removed the test pilot extension and its feedback button in Firefox 4.0b9. I let Firefox upgrade itself to 4.0b10 and didn't notice that silently re-installed it.
    I was typing in another application when suddenly that window was minimized and the focus shifted to a Firefox "new test pilot study" window that popped up. Even if I had given permission for that software to be installed, that is rude.
    I am not willing to trust that if I disable this logging software that it will stay disabled the next time I upgrade. I will remove test pilot again. '''How can I prevent Firefox from re-installing it?'''
    One way might be to set extensions.rdf read-only. However, I do not wish to lose the ability to install add-ons, I merely do not want anybody (including Mozilla) to install an add-on without my permission.
    https://bugzilla.mozilla.org/show_bug.cgi?id=519357 doesn't seem to address this problem as test pilot is a known component. Its not a plug-in so I can't modify the plugin scanning settings to prevent it from being loaded. Is there some way I can reliably supplement http://www.mozilla.com/en-US/blocklist/ with a local block list file? If so, would I have to update that whenever a new version of test Pilot is released?
    http://support.mozilla.com/en-US/kb/Add-ons%20blocklist

    I'm not sure what you mean by "re-directs e-mails." Are the recipient addresses changing between the time you address the message and the time it is sent?
    If you could provide more information I think that would help in tracking this down.
    When you use Firefox to work with your webmail site, whether Yahoo! or Gmail or another, the mechanics of sending the mail are handled by the site itself. So if there is a problem with how messages are addressed, then you may need to check your Yahoo! mail settings.

  • Is there a way to prevent invoices from being cancelled

    Hello,
    Our business has come to me and asked that we take away the abililty for anyone to cancel invoices using VF02 and VF11.  Is there a way to do this?  I have researched a bit and it sounds like it can be done through transaction VOFA but I have not been able to figure out how to do this yet.  Any help or suggestion is appreciated.
    Thanks,
    Fred

    I just realized the obvious.  All I need to do is block transaction VF11 and that will prevent anyone from cancelling invoices.
    Thanks,
    Fred

  • How to prevent users from saving and emailing intranet documents externally

    Someone in our company needs to upload a pdf to our sharepoint intranet site for internal-only use. How can I prevent users from downloading it and emailing it externally?
    I mean, a user could screenshot it I guess, but I need to give management a due diligence answer.

    You would need to look into a reverse proxy/firewall that had the ability to block access based on content. This isn't something you can accomplish out of the box with SharePoint (even with AD RMS).
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Firefox says that I have a firewall that prevents me from connecting to Internet?

    I´ve used Firefox for a while now and I was really happy until now it just won´t work any more. When i try to connect to Internet with firefox I get a message "Connection failed" My firewall is preventing me from connecting according Firefox. But I´ve really done everything from turning my Firewall off and it still doesn´t work. I do not have any antivirus thats preventing Firefox from connecting. Internet Explorer still works perfect though.
    Please, could someone help me because i don´t want to use Internet Explorer.
    == This happened ==
    Every time Firefox opened
    == I was updating Firefox ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)

    In Firefox 3.6.4 and later the default connection settings have been changed to "Use the system proxy settings".
    See "Firefox connection settings" in [[Server not found]]
    You can find the connection setting here: Tools > Options > Advanced : Network : Connection
    If you do not need to use a proxy to connect to internet then select ''No Proxy'
    Another possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox.
    See [[Server not found]] and [[Firewalls]] and http://kb.mozillazine.org/Firewalls

Maybe you are looking for

  • Any hope for this iPod Shuffle stuck in DFU Mode?

    I received a 2nd Gen iPod Shuffle that was in dire straits. The owner complained that they couldn't access it at all, for anything. Plugging it in and looking at the System Profiler, the device showed up as a "USB DFU Device". Googling this issue, I

  • IPhoto issue when making albums

    While trying to make an album with blurb I encountered an issue with iPhoto. While tusing the share function to create an album (Full of the pictures I want to use in the blurb album) it 'quit unexpectedly due to core media plug in'. Do I have to rei

  • Tecra A3X appears 'dead'

    Hi Just picked up a Tecra A3x sold as spares or repair. Ok, pop some memory in,plug the adapter in and fire up. I get all the lights across the front, I can hear the HDD whirr but no screen. An external monitor shows nothing too (FN+F5 does nothing).

  • Iphoto prints - issue sending an order

    I'm trying to send in an order to make prints from iPhoto.  Able to log in with Apple ID, I successfully select the number of prints, but when I place the order, the Assembly step doesn't do anything.  It says "your order is being prepared and upload

  • Toshiba laptop hardware NO SOUND issue - I've tried everything!!! PLS help!

    I have a Toshiba Satellite tablet laptop Model R25-S3513 model... the sound initially started acting weird, sounding funny like skipping, or fluttering (?) eventually laptop internal speakers stopped working all together. I bought some head phones, t