Not comming out of loop

Gurus
Below is the code which I have written, the problem is, when record is not found, its showing alert, but system getting hanged .. Can you suggest a solution
Declare
     CURSOR C_SUBCLASS IS SELECT DEPT, CLASS, SUBCLASS
                FROM SUBCLASS
           WHERE DEPT = TRIM(TO_NUMBER(:HEAD.DEPT))
           AND CLASS = TRIM(TO_NUMBER(:HEAD.CLASS));
  C_L_SUBCLASS C_SUBCLASS%ROWTYPE;                               
Begin
          OPEN C_SUBCLASS;
          FETCH C_SUBCLASS INTO C_L_SUBCLASS;
          IF C_L_SUBCLASS.DEPT IS NULL THEN
               L_ALERT := SHOW_ALERT('ALT_OK');
               IF L_ALERT = 'ALERT_BUTTON1' THEN
                       GO_BLOCK('HEAD');
                    CLEAR_BLOCK;
               END IF;
          END IF;
end;Regards
Message was edited by:
Seshu

Hi,
Sorry, to paste the L_alert declaration...
It is declared as L_alert varchar2(50);
The problem here is .. the place where dept and class are selected, they belong to one block ..
And the push button where I have written the code is in another block... I have tried another alternative ...
Declare
L_alert varchar2(50);
L_dept number;
BEGIN
     SELECT DEPT INTO L_DEPT
     FROM SUBCLASS
     WHERE DEPT = TRIM(:HEAD.DEPT);
EXCEPTION
     WHEN NO_DATA_FOUND THEN
     EMESSAGE('SUBCLASS WHEN NO DATA FOUND');
     L_ALERT := SHOW_ALERT('ALT_OK');     
                GO_BLOCK('HEAD')
END;Now the problem is, its showing message ... and alert .. and now when I am shifting the control back to the head block (where i will be selecting the dept and class), its displaying error "No navigable items in the block" ... Can you suggest something for this
Regards

Similar Messages

  • Monitor does not come out of sleep Mac-Mini Mini-DVI to Dual  DVI-D cable

    I have an August 2009 Mac-Mini that I'm using with an Apple supplied Mini-DVI to DVI adapter along with a DVI-D Dual Link Cable connect to a Sceptre X7XV-Naga+ LCD monitor.
    The monitor is going into sleep mode on its own with no way to disable this feature on the monitor itself. I've disabled sleep mode on the Mac-Mini in the power setting in System Preferences.
    When in sleep mode and I move the mouse or press a key, the monitor will not come out of sleep mode. From other posts, I read that the issue might be that I wasn't using a Dual-Link DVI-D cable, so I bought one and installed such a cable. That has not resolved the problem. The monitor will not come out of sleep mode. When I have the monitor connected with a mini-display port to VGA adapter instead of a DVI-D cable, it will come out of sleep mode every time.
    Message was edited by: Annorax64

    I know it's a year later, but I'm not finding much through search.
    I have the same exact problem.  Difference being I'm using an iMac with 10.7.5.
    Same video board and monitor - ATI Radeon HD 6750M video card connected via DisplayPort to Samsing S24A850DW.
    I've tried two different mini-DisplayPort to DisplayPort cables and no change.
    I think I read that 10.8.3 might fix the issue.  Anyone that can confirm that, or has another solution?

  • My ipod generation 5 will not come out of recovery mode. i was simply updating my software and this happened. it will not let me restore it comes up with and error. please help, thanks.

    my ipod generation 5 will not come out of recovery mode. i was simply updating my software and this happened. it will not let me restore it comes up with and error. please help, thanks.

    Hey erinoneill24,
    Thanks for using Apple Support Communities.
    Sounds like you can't update your device. You don't mention an error that it gives you. Take a look at both of these articles to troubleshoot.
    iPod displays "Use iTunes to restore" message
    http://support.apple.com/kb/ts1441?viewlocale=it_it
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808?viewlocale=de_DE_1
    If you started your device in recovery mode by mistake, restart it to exit recovery mode. Or you can just wait—after 15 minutes the device will exit recovery mode by itself.
    Have a nice day,
    Mario

  • When I take a picture with my iPod touch 5G they do not come out as 4 inch pictures, how do I make it so the camera takes fitted pictures?

    When I take a picture with my back camera the pictures have black bars on the top and bottom. They do not come out 4 inches. How do I fix this?

    Because the screen aspect ratio is different that the camera aspect ratio. The only way it could fill the screen vertically would be either to stretch/distort  the photos vertically or to cut off some of the photos on the sides.

  • HT1414 my iphone 4 running on IOS 5 will not come out of recovery mode and gives the error code -1. Can any one help me please because i've been without a phone for 2 weeks and still not getting anywhere.

    Hi there could someone out there please help i've got a Iphone 4 running on IOS 5 and it will not come out of recovery mode> It comes up with the error code -1 which i've looked everywhere on the web but no one seams to have the same issue.
    This is a reconditioned replacement phone from the apple genius guys which i paid £130 for and only got 3 months warranty with and as soon as the warranty run out it crashed on me and never been able to get it back out of recovery mode. I've been back to the apple genius guys and they have told me there's nothing they can do other than charge me £130 to take the phone off me and give me another reconditioned phone with a 3 month warranty. Which as you can properly tell i dont want to.
    PLEASE PLEASE HELP ME thanks for your time

    This is a bad hardware error, Baseband Error. Some have reported getting through this error by Restoring iPhone with the SIM Card removed. Try that. Try restoring with different computer. Search Web some more for other thoughts.

  • Ipod touch 4g wont connect to itunes or come out of recovery mode, its just stuck on the connect to itunes screen and will not come out, i tried doing a restore but something happened and now it wont finish or do anything else please help

    ipod touch 4g wont connect to itunes or come out of recovery mode, its just stuck on the connect to itunes screen and will not come out, i tried doing a restore but something happened and now it wont finish or do anything else please help and my itunes will not see that its connected. i also tried going though control panel and restarting the service and nothing happens. also i tried redoing the driver but its saying it cannot find any drivers for it

    lol ok nvm i fixed it

  • HP LaserJet P3005x will not come out of sleep mode

    Printer will not come out of sleep mode (after being in sleep mode for an extended period of time (over 24 hrs)).  When this happens, I can not ping the printer and pressing any of the buttons on the printer will not bring it out of sleep mode.  I'm testing now to see if I can recreate this with the printer attached to my PC via USB.

    Hi arosecarter,
    I understand your monitor is not coming out of sleep mode. Take a look at the following support document, Resolving Problems with Sleep and Hibernate Modes (Windows 7). Step 3 might be of particular interest to you, as you mentioned your keyboard and mouse are not really working for you either. Perhaps it is another connected device that is causing the issue? Anyway, hopefully this document will be of help to you. Best of luck. Have a wonderful day.
    Ryan1216
    I work on behalf of HP
    The advice and opinions given here are my own and not those of HP

  • External hard drive does not come out in desktop

    greetings! whenever i plug in an external hard drive or a USB flash disk through usb, it does not come out in the desk top. before, it used to come out, now it doesn't. i am still using the exact macbook. i think i touched something in the settings. please help

    Go to finder and choose preferences under finder in the menu bar. Now check and see if under General you have the choices clicked of what you want to show on the desk top.

  • I have a disk in my mac and came not get it out?  I use the command E key to eject but it does note come out?

    I have a disk in my mac but it does note come out useing command e to eject? how do i get it out or do I have to get it jixed?

    Force eject a stuck cd/dvd
    First try the normal methods to remove the disc. Drag its icon to the Trash can in the Dock or select 'Eject' from the File menu.
    If you are running a virtual machine, e.g. VMFusion, ensure that the CD is disconnected from the virtual machine. This will sometimes allow the CD to now show up in Mac OS X.
    Shut down the computer and start up whilst holding down the mouse button. This may take some time, but keep your finger on the mouse button right up until the disc comes out or the log-in screen has appeared.
    If you have Toast Titanium installed on your computer, choose EJECT DISC from the menubar.
    Sometimes you can successfully use the eject disc button in iTunes even if the disc is not visible to the Finder
    Open Disc utility and choose the disc you wish to eject in the left-hand pane, then click on the Eject button.
    Some Macintoshes have a paperclip hole that you can insert a straightened paperclip into, manually triggering the eject mechanism.
    Open Terminal and type "drutil tray eject" to eject the disc/tray, and "drutil tray close" to close the tray.
    If your computer has an eject button on the keyboard, restart the computer holding down the Option key. When the startup disk selection screen appears, let go of the option key and press the keyboard's eject button.
    Source: http://guides.macrumors.com/Force_Eject_a_Stuck_CD_or_DVD

  • I have a iphone 4s and i can't get the charger to come out of the phone its stuck on one side and will not come out

    I Have a iphone 4s and can't get the charger to come out...it was hard to get out the time before but i thought it was just me so then i charged it last night tryed taking it out and it is stuck on one side and will not come out...any suggestions on how to get it out?

    You will just have to carefully pull harder. Push the other side back in so it is aligned, then pull it straight out.

  • 3.3mhz iMac, just had Maverick installed and as I tried to upload Pix, the finder went into a wheel of death and since that point, have lost the ability to even type on ANY applicat would not come out of it.. did utilities and have no idea what to do next

    Have a iMac 3.3 mhz, tried to upload pix to an app and Finder went into the wheel of death and would not come out.. When it "Got Lost" I also lost the ability to even type on the machine in ANY APPLICATION. Have run utilities, made repairs and still no typing/text. On Thurs or Friday (10/24 or 10/25) Maverick was installed so this may be a problem that it created. As it happens I didn't ask for Maverick. How do I fix the "Finder" on the machine if i can't even type on it??

    Hi, beth.lau.gr.
    Thank you for visiting Apple Support Communities.  
    I understand you have been experiencing issues with your iPhone restarting and showing you a blue screen.  I wont be able to give you an exact answer as to why this is happening.  However, this is the most relevant troubleshooting article for this issue.  This article also provides options to reach out to us via phone for additional assistance.  
    If your iOS device restarts, displays the Apple logo, or powers off while you're using it
    http://support.apple.com/en-us/HT203899
    Cheers, 
    Jason H.  

  • Dbca does not come out after 100%

    I have installed and configuredthe Oracle 9i Rel2 on RH Linux 9.
    When I followed dbca steps to create a database, it does not come out after reaching 100%. I had to kill the process to end it. What could be reason? Because of this the init<SID> file is also not created.
    Please explain
    Mehul Trivedi

    I have installed Oracle9i on RH9 and I was able to use
    the dbca and really If your swap values in the OS are fine
    I do know whatelse you can check.
    If you want to create a database and the dbca is not
    functioning you have another option ( Create it manually )
    Chapter 2
    Administrator's Guide Contents / Search / Index / PDF
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96521.pdf
    Joel P�rez

  • Airport CD will not come out

    I have been trying to eject the AirPort Extreme Disc and it will not come out. I have tried several ways, iTunes, the eject botton on the keyboard, the file menu. When I try to eject it make a little noise and the then the disc disappears off the desktop but it is not ejected. I then have to restart to get it to appear again.
    suggestions?
    Thanks,
    1.25 Power PC DP G4   Mac OS X (10.4.7)   many macs

    ebhome, Welcome to the discussion area!
    Check out the suggestions in KB 88215, Power Mac G4: How to Eject a Disc From the DVD or CD Drive.

  • TS3694 I have attempted to update my iphone to ios8. My phone has gone into recovery mode. I have tried all of your recommendation and it will not come out of recovery mode. HELP!

    I have attempted to update my iPhone to ios8. My phone has gone into recovery mode. I have tried all of your recommendation and it will not come out of recovery mode. HELP!

    Without knowing what you did and exactly what happened (error messages) all I can suggest is:
    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • My iphone 4s will not come out of unlock mode ?

    my iphone 4s will not come out of unlock mode i reset the phone back to factory setting still not working

    When you updated did you have to create a different code for the install? I just got another tip from a different user and found out (and didn't think about it at the time) the install code has to be used to open the phone...NOT the previous version code! Got mine open. Good luck.

Maybe you are looking for

  • Error while release to accounting in VF02

    I have a problem when i try to release to accounting in VF02 .the error i as follows Balancing field "Profit Center" in line item 001 not filled please suggest?

  • ITunes Has Disabled My CD/DVD Drive - can anyone help ?

    Hi, I recently bought a 5th Generation iPod Video 30gb, and have some issues with the iTunes software. I am running a fairly new (4/5 months old) Packard Bell PC with Windows XP Home and have Sonic RecordNow CD burning software. Here's the problem...

  • Can't install OS X onto external firewire

    Hello all, I have a strange issue going on and apple care won't support it because I am booting an external drive. I have an older ibook and a macbook pro. I have an external drive that has one partition with OS X on it, and another partition for bac

  • Solaris 8 on Intel and apps for Sparc

    I have installed Solaris 8 on PC wit Intel processor but when i tried to run applications compiled for Solaris 2.6 for Sparc or Ultrasparc they did not start . Is there any way to start applications compiled for Solaris - Spark under Solaris for Inte

  • ABAPer to check this manually & not through SNOTE.:  if the note - 1037685

    Could you please check if the note - 1037685 is present in your system. Please ask your ABAPer to check this manually & not through SNOTE. Regards, Ashutosh