Running SQL you leave a page

Hi all

I would like to run sql to remove the contents of a table, whenever you leave a specific page. Possible?

Thank you very much

It's easy.

Go to your list of point (shared-> list-> list entry components) and write INIT (or whatever you want, it's freetext) in the field titled 'request '.

This generates a URL like this: http://tryapexnow.com/apex/f?p=12345:52:3997328169542393:INIT

brgds,
Peter

-----
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
Work: http://www.click-click.at

Tags: Database

Similar Questions

  • Run a process when you leave a page

    Hello

    Is it possible to run a process when the user leaves a page?

    Let me explain:

    On a page, I have an automatic processing of the line (DML) and a process of PL/SQL. These two processes are running when users click on the apply changes"" button.

    Is it possible to run these two processes ALSO when user leaves the page (click on another tab)?

    I want to do this to make sure that the changes are saved, even if users forget to click on the button "Apply Changes".

    Thanks in advance for your help.

    Have you looked into using a pl/sql dynamic action page unload event?  I've never tried, but if you set the item values in the first stage of dynamic action and then run a pl sql routine that mimics the DML, it can work.  Given that the action would fire after each unload page, probably also needed validation to provide he fire during normal processing.

    Ricker

  • stop editing the page warnings when you leave the page

    My browser Safari keeps harassing me with warning on saving the changes when I leave a page or a saying that you need to return the information to another page. How can I stop these warnings.

    Bob,

    I see that you have a problem with the Safari browser, which is an Apple product.

    You need access to this page: Apple Support for Safari

    See you soon ~!

  • APEX 5: "Schutzverletzung bei Sessionstatus" when you leave a page

    Hi all,


    After the update of the 4.0.2 5.0, there are error messages in the following cases:


    Suppose a page with a report and a selection list, the result of which is used in the WHERE clause of the report. For example, the user selects a year in the list item. It s a list of 'normal', not connected to a database column.

    After selecting a year, the report is displayed, everything works fine.

    In the end, the user has two possibilities to leave the page:

    -a button with a redirect to a homepage

    -Click on the menu bar (tab set)


    The button works as expected. If I choose a tab entry (which in this case would redirect me to the same page as the button), there is an error message "" 5 APEX: Schutzverletzung bei Sessionstatus: Dieser Fehler wurde einen caused, weil das geschutzte Seitenelement P233_GJAHR sandrine geändert wurde. "." " (Sorry, I had this only in German, even when I pass the developer in English).


    Where (what attribute) can I change to delete these messages?

    Hi Norbert W.

    I checked your application, and you receive error below.

    APEX 5: the State of the Session to access violation: this error may have been caused because the protected side P233_GJAHR item changed manually

    because

    P233_GJAHR is a hidden item

    and protected amounted to Yes for this article

    I changed the value to no.

    It's working now, please check and confirm the same.

    No, it's not so easy - I know what you're talking about those hidden it s. As explained in this article (P233_GJAHR) is the list item to select a year...

    P233_GJ_IDNR is the element that you use to select the year not the P233_GJAHR.

    Also, you have 3 more hidden on the same page items

    P233_MONAT

    P233_MANDANT

    P233_DATUM

    I changed their value protected no.

    Kind regards

    Jitendra

  • In Yahoo Mail, when you compose an email I get a Panel "asking to leave this page. It does not matter that I choose to stay or leave, the Panel will appear again... and again... the only way is to force enough Firefox and start all over... help please...

    In Yahoo Mail, when you compose an email I get a Panel "asking to leave this page. It does not matter that I choose to stay or leave, the Panel will appear again... and again... the only way is to force enough Firefox and start all over... help please...

    Some extensions or toolbars can add such a report.

    It can also be part of the code on a page to prevent dataloss if you began to type text (composing a new mail) and you try to close this tab.

    You should be able to close this report and close the active tab.

    What I posted above is applicable to all platforms, including Mac.

  • One or more ActiveX controls could not be displayed because that is: 1) your current security settings prohibit running ActiveX controls on this page, or 2) you blocked an editor of one of the controls

    Well this problem started a week ago. When computer first starts or restarts (I did not open any program still!) I get this message,

    One or more ActiveX controls could not be displayed because that is: 1) your current security settings prohibit running ActiveX controls on this page, or 2) you blocked an editor of one of the controls

    I know this usually occurs with internet explore, but as I said I do not have anything yet open. I've activated all the active X controls in internet explore with no luck. I searched the web for active x forums and blocked the editor and followed all the instructions in the error message (most of them see enabling active x) but without success. I am an advanced user (15 years and more), but it has left speechless me. If I try to open "Services", I get the same error. When I opened my anti virus, it opens but it is just a blank page. I know that my anti virus is working well.  Also if I open internet explorer, I get a blank page, if I go to a website (enter it or go to my favorites) it works fine. I've deleted all the temp, historical, cookies etc. etc. (use CC Cleaner and other programs to clean) but if reopened once again it says white. If I use help and you want to see a help topic that it is said (may not display due to problems of congestion or network, check connection) but internet works fine. I know that I have not a virus (a lot of people in the forums think it) I scanned with Bitdefender, Eset Nod32, Super Anti Spyware pro, Malaware Anti Malawarebytes, Spybot, Stopzilla, etc. etc. and did not find a virus (in safe mode) there are many people on the web with the same problem (with the same and some with different programs). This problem seems to be random (does not affect a certain program) I tried for a week now and I'm stumped! Anybody have ideas that I heard yet?

    Thank you if you do!

    Hi Morksr2d2,

    As you mentioned that the problem reappears as soon as you run the anti-virus program, it seems that we found the cause of these error messages at startup.  I would like to recommend that you Uninstall the antivirus & check if the problem reappears. This should also allow you to make changes on the services tab in system configuration utility.

    Later, reinstall the antivirus program.

    Hope the helps of information. Please post back and we do know.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Receive the error message "you really want to leave this page.

    Original title: problems after 17 updates.

    After only 17 update last night I have a pop up appear in my e - bay account by saying: "do you really want to leave this page" whenever I try to go to another screen. Others have the same problem. What is the solution?

    It is a known issue with KB2846071,
    See http://support.microsoft.com/kb/2846071/en-us

  • Please let me know why I can not download Flashplayer because it runs the scripts on the page... I bought acrobat dc 7/10.  Thank you.

    Please let me know why I can not download Flashplayer because it runs the scripts on the page... I bought acrobat dc 7/10.  Thank you very much. @@

    Hi dmrmultimedias,

    I guess you are referring to the script error using the installer online.  If so, the DPI setting has been identified as the culprit.  If the DPI setting is not set to 100%, 125%, 150% or 200% installer will return the script error.  If your DPI setting is set to something else, please set it to one of these and Setup online should work.  The team is working on a fix for this.

    To check/change the DPI setting:

    1. start the control panel and go to control Panel\All Control Panel Items\Display

    2. in the left menu, select the custom text size (DPI)

    3. in the custom configuration Windows DPI select 100%, 125%, 150% or 200% in the menu drop-down

    4. Select OK

    5. Select apply

    6. open a session/disable

    7. online installer should now run without displaying the script error.

    This is planned which will be fixed within two 2 weeks.

    --

    Maria

  • Truncate a collection when the user leaves the page

    Hello


    I need to truncate a collection when the user leaves the current page and navigates to any other page in the application.

    The only way I can think is the execution of the APEX_COLLECTION. TRUNCATE_COLLECTION (collection_name) in the onLoad of each page section. I have about 100 pages. I would add this process on each page?
    Is there a way I can truncate the collection when the user leaves the page?

    Thanks in advance,
    Dippy

    Fisher,

    You can create an application process in shared components, type your pl/sql code within the process and give the appropriate condition so that code is applied to all pages in the application.

    Check out this link.
    http://download.Oracle.com/docs/CD/B31036_01/doc/AppDev.22/b28550/BLDR.htm#BABJDICG

    In case you, I think you need an application process with
    On Submit: After presentation, Page - after calculations and Validations.
    Make sure you that you specify a larger sequence number so that this process be completed after all of them are made.

    Or if you want that the process of running before the loading of each page, you can use
    On load: before the header (page header Template). develop process for the application process.

    Since it is a part of the shared components, this code is executed for every page, and therefore the collection would be deforested as where you want to.

  • Running SQL scripts on different databases

    Hello!

    At my work we have many databases on a server. I have to make a request so that users can run the application on a selected database SQL scripts.

    So my question may be separated into 2 sections:

    1 - is possible to let users SQL scripts run directly from the application?

    I think a database to create a page that displays the list of all the SQL scripts, that we want to use, and when you click on a specific script name in the list, it asks something like "Where the database you want to run the script?", and then, as confirmed by the user, it would show results running the script on a different page.

    is 2 - possible to let users choose what database to run these scripts?

    Any information would be helpful, I'm at the beginning of the project and am not sure at all about how to proceed, or if it is at all possible.

    Thank you!

    Fallen_Kaede wrote:

    Thanks for the quick response. I confirm that we are talking about databases on a server.

    The request is to "debug" to other databases. For example, be run scripts to the locks on the list, to show the different indexes on a table, etc. to help diagnose problems.

    It looks like the 'users' are DBA who should use OEM/Grid Control to do so.

    1 - is possible to let users SQL scripts run directly from the application?

    Lol the only way to run scripts in the APEX is the use of the SQL Scripts for SQL workshop component.

    The key word in your question is 'application '. SQL * more and Developer SQL are applications that allow users to run SQL scripts on the desktop. Scripts SQL is an APEX integrated application that allows developers to run SQL scripts on the web. However, there is no documented way supported for end users to run SQL scripts in a custom of APEX application that you created. Therefore, rethink your approach. Rather than create an application APEX runs scripts, you must convert the scripts in PL/SQL, APEX packages, pages, components and applications leverage features of the APEX and reports, graphics and interactivity (e.g. exploration links; timed refreshes etc.). This will give you a user experience improved, beyond what is possible using static SQL scripts.

    is 2 - possible to let users choose what database to run these scripts?

    The APEX applications would exist on an instance of the APEX in a database and access other databases using the database links (which can have a performance impact). It would be possible to create a LOV based on the view of the USER_DB_LINKS dictionary and use in a selection set to a global page list to provide a control to set the current context of the database. Region data sources will have to be generated dynamically in the packages of PL/SQL use the links from relevant database based on this value LOV.

  • Firefox crashes whenever I try to leave a page to a different site.

    It seems to happen only when I have more than one tab open, but everytime I try to leave the page initially opened, it crashes. This just started today (03/19/14) and I tried to reset Firefox but it did not remedy the problem.

    This kind of accident is caused by trusteer report, please see if you can solve it by updating the program to its latest version (it should be a fix available soon) or other Dungeon it disabled for support of trusteer the moment and contact: www.trusteer.com/support

  • How can I set the new version of firefox so that the things that I write in journals and other things are stored in case I accidentally leave the page?

    In Firefov version 3, there is a feature that will remember what I typed in a journal or note the entry before posting. Is not like an auto-complete because test disappears if I browse pages too far from him. The usefulness of this one was that if accidentally, I sailed off the page before sending my message or my journal, I might just press the back button and what I wrote above would still be there. I had to go back to version 3.6.19 because version 5 does not have this option turned on, unless you preform a very specific routine. You will need to reactivate the ability of firefox to save the tabs when you exit. Then, you must close firefox while saving the tab with the page you want to write a journal about pulled up. Then, when you go back to firefox, you can tap on the saved page and if you accidentally leave it, you can press the back button and it is saved. However, it disappears when you refresh the page or try it on any other page. I would like to know if it would be possible for me to activate this feature in firefox 5, or if I should continue to use version 3.

    Try to use this extension.

    https://addons.Mozilla.org/en-us/Firefox/addon/textarea-cache/

  • ActiveX control error: your current security settings prohibit running ActiveX controls on this page.

    Original title: problem with Activex controls

    I m trying to open my scanner program, but windows shows me the below msg: Please help me solve this problem...

    one or more activex controls couold appears no not because either:

    (1) your current security settings prohibit running ActiveX controls on this page.

    (2) you have blocked an editor of one of the controls.

    As a result this page may not display correctly.

    Hi euriskofiles,

    The problem may occur if the security settings for the Local computer zone are configured to prevent the ActiveX content to run.

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: 322756

    Steps to follow:

    (a) click Start, click run, type regedit, and then click OK.

    (b) expand the following registry subkey:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0

    (c) in the right pane, right-click right 1200and then click change.

    (d) in the value data box, type 1, or 0 to replace the existing value of 3. Then, click OK.

    Note If you type 1 in the value data box, you receive the following message when you start Microsoft Project:

    You want to allow software such as ActiveX controls and plug-ins to run?

    In addition, you receive this message at other times when you use Microsoft Project. If you do not receive this prompt, type 0 in the value data box.

    The values 0, 1 and 3 are associated with the following behavior:

    o 0 = on, or the action is possible

    o 1 = Prompt

    o 3 = disabled, or action is not allowed

    (e) exit the registry editor.

    See if that helps. Kind regards

    Shinmila H - Microsoft Support

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Windows Update cannot currently check the updates, because the service is not running. You may have to restart your computer.

    Whenever I have click search for updates in Windows Update and it just gives me the error message: Windows Update cannot currently check the updates, because the service is not running. You may have to restart your computer. Can someone help me please? I'm using Windows Vista Basic

    Hello

    see if that helps to fix:

    How to reset the Windows Update components?

    There is also an automatic 'fix - it' here

    http://support.Microsoft.com/kb/971058

    Also, try to put the KB numbers in the search on the link below and then manually download the

    http://www.Microsoft.com/downloads/en/default.aspx

     

    or please repost your question in the correct windows update forum

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_update?page=1&tab=all

  • Try running FIX hit IT run now send me help page file extension?

    Sometimes, when I try to download Microsoft Fix It he sends me to the "PAGE" of the FILE EXTENSION.  I see this every day so many times. OK today had there and click on run now, immediately on the Page of the file Extension. No one knows what is the cause?  Help PLEEZ

    Thank you, sotiredofproblems

    Hello

    Thanks for posting the question.
    1 are. what Microsoft Fixit you referring?
    2 What problem confined to a particular Fixit or with all?
    3. what exactly is the problem you are having?
    If you are having problems with Microsoft Fixit, I would tell you to contact Fixit center support
    I suggest you provide more information about the issue so that we can better help you.

Maybe you are looking for

  • I can't read my dvd - r with windows media player

    I can't read my dvd - r with windows media player.  Any help much appreciated.  Thank you.

  • My OFFICE the FILES DELETED...

    HI I WAS WONDERING IF SOMEONE COULD HELP ME WITH THIS. MY DESKTOP FILES DISAPPEARED ALL OF A SUDDEN AND NOW I CAN'T CREATE ANY NEW FILES ON THE DESKTOP OR DAVE FILES ON MY DESKTOP. I HAVE NEITHER THE ICON "MY COMPUTER", OR "BASKET"... THANKS IN ADVAN

  • SD not showing as storage device

    Hello I have a Photosmart 6520 all in one and, since I went wireless, when I insert a card in the front slot, NOW, does not present as a storage device on my Mac. I would like to take a few pictures that I took off of the sd card and set by the post

  • Registration for the service is missing or damaged

    Hello I ran a scan with troubleshooting Windows Update tool and it came with this error: registration for the Service is missing or damaged. How can I fix it? Any help would be greatly appreicated! See you soon!

  • VCS CPL block call between subareas

    Hello I'm looking for, it is possible to create a script to block calls between the sub-areas, I mean, I don't want to, for example, that sales of subarea may call for subzone Marketing. I do not have different Alias prefix, the prefix aliases are th