How can I go to another page from PL/SQL code

Hi
I have a code like this:
DECLARE
BEGIN
SELECT N INTO n_n FROM D WHERE ID=n_id;
INSERT INTO D (NUM,ID,NAME) VALUES(n_n,n_id,n_name);
EXCEPTION
WHEN NO_DATA_FOUND THEN
END;
In exception section I want to go to another page. How can I do this?
(I now it is stupid question, but I am newbie).
Thanks,
Dag

Hello Dag,
you can use something like:
owa_util.redirect_url(f?p=&APP_ID.:14:&SESSION.)Just replace "14" with the target page id.
Hope this help,
Arie.

Similar Messages

  • Every time I start Firefox, the upgrade/signup page is displayed in one tabe while google, my start;up page s displayed in another. How can I stop the firefox page from loading every time?

    Every time I start Firefox, the upgrade/signup page is displayed in one tab while google, my start-up page is displayed in another. How can I stop the firefox page from loading every time?

    See these articles for some suggestions:
    * https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    * https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • How can I stop the Drudgereport page from autorefreshing? None of the standard answers work.

    How can I stop the Drudgereport page from autorefreshing? None of the standard answers work.
    ''locking - https://support.mozilla.com/en-US/questions/775159 ''

    Drudgereport includes JavaScript code that refreshes the page. You could disable JavaScript for the drudgereport site, that will stop it from refreshing. You can do that by installing the [https://addons.mozilla.org/firefox/addon/4922/ YesScript] extension which allows you to block JavaScript on sites that you specify.

  • Can any one tell me how can i call a shell script from pl/sql

    i like to call shell script from pl/sql procedure.
    can any one suggest how can i do this

    Have you not mastered in asking the same kind of question ?
    First do write a script...
    no one will spoon feed you.
    How can i call a shell script from procedure
    How to call Shell Script from pl/sql block
    -Sk

  • How can I copy/paste a page from one pages document into another pages document?

    I have read the directions in the manual, but when I go to the document where I want to put the page the paste function is greyed out.  I assume this has something to do with styles, but can't find what to do. 

    You got it.
    Paste is greyed when we try to paste a page from a WP document into the thumbnails area of a Layout one.
    It's active if we try to paste in the pages area.
    In the document's tool bar, there is an icon with a + symbol at top left.
    In WP documents it's named Sections, In Layout ones its named Pages.
    Yvan KOENIG (VALLAURIS, France) mercredi 26 octobre 2011 17:50:55
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How can I stop my home page from opening OVER a page from a link I just clicked on?

    If I click on a link from an email, Firefox always opens 2 pages with my home page (Google) covering up the page I clicked the link to go to. How can I stop it from doing that?
    == This happened ==
    Every time Firefox opened
    == I think since I got the most recent upgrade (3.6.7)

    There's a good chance this is related to a bug that kicks in when you do not have Flash running in any tab and you open a new window to a page that does use Flash: suddenly, the previous window (typically the one from which you launched the link or bookmark) comes back to the front.
    The details are in this recent thread: [https://support.mozilla.org/questions/955659 Opening New Windows and Shockwave Flash].

  • How can I print only Selected pages from a Multipage document?

    HP Envy 114 e-All-in One Printer
    How can I print only pages 2 and 4 from a 10 page document using my Envy 114 Printer?
    This question was solved.
    View Solution.

    Hi,
    Where do you print from ? Under Word or PDF you can select page(s) you want to print.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How can I save one specific page from a .pdf file into it's own .pdf file?

    I've got this 4 page pdf file, and I need to save just one page from it.  I know that there's the option of using the select tool and doing a copy/paste to an image file, but I'm trying to keep it as a .pdf and I can't seem to figure it out.  Any help would be much appreciated.

    Perhaps this solutions workability will depend a lot on what type and generation of PDF you got and the tech built into the program suggested....
    But ! (never-the-less)
    You could try to see if the "Free PDF to Word Doc Converter version 1.1" will work for you....
    I know it will not get you a single page .PDF but if the program works you could get a .Doc of which you might have the possibility to save a single page after editing it !(?)

  • How can i log off another device from my apple id

    some time ago i have logged in with apple id on my friends iPad. and now his son is giving me a troubles in my game Clash of Clans. i have changed my apple id password, it doesnt resolve the problem. how can i log off on his ipad remotely ??

    Go to Settings>Mail, Contacts, Calendars and look in the Mail section.  If you have an icloud account listed there, just delete it.

  • How can I convert my web page from a fixed width layout to a fluid grid layout?

    I'm taking a web design class (I'm using Dreamweaver CS6, btw)  wherein the professor started us out building our websites in a fixed width layout but now I want to change my site into a fluid grid layout. My "site" so far is just one long page, and I've already designed it with fluid grid adjustments in mind (most things are centered  in the layout) so it shouldn't need excessive tweaking.
    Is there a way to duplicate the site folder that holds my first page, re-open a new document in fluid, then copy the code in and tweak the width parameters for the different layouts?
    Did I just answer my own question? Help - I am new at this!!
    Thanks all,
    KC

    Herbert2001 wrote:
    A bit off-topic, but Osgood: have you ever used SASS or LESS? When you are building your own grid systems it can save you a tremendous amount of time, and it's a lot of fun.
    Take the following simple example - it generates all the 23 css classes automatically for a 12 grid system. And simply changing one variable allows you to create and calculate any number of columns!
    //variables
    $desktop: 1025px;
    $large-columns: 12;
    @media only screen and (min-width: $desktop) {
         //regular grid span classes
        @for $i from 1 through $large-columns {
            .span-large-#{$i} {
                width: percentage($i/$large-columns);
         // push classes
        @for $i from 1 through (($large-columns)-1) {
            .push-large-#{$i} {
                margin-left: percentage($i/$large-columns);
    No, not explored it yet, and may never....I don't know. I don't really make much money out of web design. It's becoming more and more difficult to find the desire to learn new techniques when the opportunities aren't really there to put them into practice on as regular basis as I would like.  I've got  a very good handle on css, php, html, jQuery - I'm not sure I want to add another layer at the moment, given I'm never quite sure how long I will continue to 'bang my head against the wall' . I'm getting to the stage where I keep asking myself do I really need the problems associated with learning new stuff to the point of being comfortable with it if the financial rewards at the end don't equate to the efforts of learning it.
    I don't really enjoy web development if truth is known. I come from a Graphic Design background which I much prefer but somehow got side tracked and pushed in this direction and there's no way back now, lol. Whilst I concede Web Development is much more exciting its also 100 times more complex/difficult and the skills needed are considerably more.
    Your example looks interesting and I should think I could pick it up reasonably easily given I work with php which uses variables on a similar basis.

  • How can I HIDE a web Page From the Index above?

    I sometimes would like to directly link one page to another instead of listing every single page in the INDEX. For instance, I have a "Renovations" page with two other renovation pages following.....Can this be done from page to page with Hyperlinks ONLY? Is there a way to "hide" the titles in the Index listings above each page so they don't show with the web pages that I DO WANT listed?
    G5   Mac OS X (10.4.6)  

    Welcome twincrks
    You can use Inspector, Page Tab and uncheck "Include
    Page in navigation menu", this will stop the page
    being displayed in the navigation bar at the top of
    the screen.
    You can then manually create links to your other
    pages (see www.willg4pb.com - Hyperlinks for
    creating hyperlinks). Then, again using Inspector,
    this time the Link Tab, choose to Link To: One of My
    Pages, and choose the page you wish to link to from
    the drop down list.
    Will
    AWESOME! I just knew that there was a genius out there to help me. Thank you Will! Kathy

  • How can I recover my iweb pages from idisk?

    Hello Everyone! Need your help!
    I recently had to restore my system and completely forgot to make a seperate file to store my iweb. I found a copy of everything on my idisk but can not figure out how to get it back to iweb. Any ideas? Please help! Fairly new Mac user.....
    Thanks!
    Kay

    Basically, you won't ever find a way to do it because iWeb cannot import the files stored on your iDisk. iWeb is not an html editor.
    You are looking at re-building your site, although you can use what is on iDisk to cut and paste.

  • How can I print the whole page from an onlione HTML application - when the whole page is not visible without scrolling down?

    I am working with a spreadsheet with percentage marks; only 5 names out of a class are visible at one time. I need to print the data for the whole class - in a whole sheet.

    What is the size of your actual page? Have you tried Select All and Print>Selection? Most applications will also let you resize the print area to fit the paper, and with html you might be able to resize the page for printng at 75-80%. However, that may be too small to read.

  • A beginner question: How can I call an APEX page from outside

    I want to mix APEX functionality and other enterprise tools.
    Thus I wish to call by an URL an APEX page by transmitting the mandatory page argument and optionnal argument like an order number. I just couldn't found any information in the documentation about own argument in an URL
    Any idea?
    Frederic

    Hello,
    The following will give you everything you need to know about using ApEx URL:
    http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/concept.htm#BEIFCDGF
    Regards,
    Arie.

Maybe you are looking for