HTML not working in PL/SQL block..Help me ASAP

declare
l_col VARCHAR2(30) :=to_number(to_char(to_date('01-feb-2011','dd-mon-yyyy'),'dd'));
CURSOR name_cur IS
  select name
      from   od_shift_schedule
      where   year=2011
      and    (month)=('Feb')
       and    decode(l_col,1,"01",2,"02",3,"03",4,"04",5,"05",6,"06",7,
                     "07",8,"08",9,"09",10,"10",11,"11",12,"12",13,"13",14,"14",15,"15",16,"16",17,"17",18,"18",19,"19",20,"20",
                     21,"21",22,"22",23,"23",24,"24",25,"25",26,"26",
                   27,"27",28,"28",29,"29",30,"30",31,"31")='W';
BEGIN
  DELETE FROM nam;
  commit;
  FOR i IN name_cur
  LOOP
  dbms_output.put_line(i.name);
  htp.p('<b>Employee '||i.name||'  has been ticked.
   </b><br/>');
  EXECUTE IMMEDIATE 'insert into nam(name) values('''||i.name||''')';
  commit;
END LOOP;
end;Kindly help me with this
If i'm wrong here kindly help me that how can i place a display message

Re: HTML not working in PL/SQL block..Help me ASAP
Using the community discussion forums for urgent issues is rude and a violation of the terms and conditions.
http://www.oracle.com/html/terms.html
>
4. Use of Community Services
Community Services are provided as a convenience to users and Oracle is not obligated to provide any technical support for, or participate in, Community Services. While Community Services may include information regarding Oracle products and services, including information from Oracle employees, they are not an official customer support channel for Oracle.
You may use Community Services subject to the following: (a) Community Services may be used solely for your personal, informational, noncommercial purposes; (b) Content provided on or through Community Services may not be redistributed; and (c) personal data about other users may not be stored or collected except where expressly authorized by Oracle
>
Also please read the FAQ on how to ask questions.
SQL and PL/SQL FAQ
>
2) Thread Subject line
Give your thread a meaningful subject, not just "help please", "Query help" or "SQL". This is the SQL and PL/SQL forum. We know your question is going to be about those things, make it meaningful to the type of question so that people with the right sort of knowledge can pick it up and those without can ignore it. Never, EVER, mark your subject as "URGENT" or "ASAP"; this forum is manned by volunteers giving their own time to help and your question is never urgent or more important than their own work or than other people's questions. It may be urgent to you, but that's not forum members issue.

Similar Messages

  • Syntax highlighting not working on PL/SQL developer tool

    Hello,
    Syntax highlighting is not working on PL/SQL developer tool using the beautifier. When I go set Syntax highlighting parameters (from  EDIT>PL/SQL Developer Beautifier Options > User Interface> Editor> Syntax Highlighting ) and click apply, the changes are not reflected in SQL code in the SQL window. Other feautures in the beautifier such as Fonts, Window types are working fine.
    Please help me with this issue.
    Thanks!!
    Shreejit

    As this is not an Oracle related question (let alone Oracle SQL or PL/SQL), and as you've been given a link to the relevant website... I'll now lock this thread.

  • Raise form_trigger_failure is not working in multi-record block?

    raise form_trigger_failure is not working in multi-record block.
    Why?
    I am using Form 9i.
    Thanks and regards,
    Vikas

    Here is my code. Workorder_master is single block, workorder_dtls is multi-block.
    This code is written in KEY-NEXT-ITEM of labour_code in workorder_dtls.
    If suspended labour, invalid labour etc. is selected then it should not leave labour_code, but does not happen as I like. What will be the solution?
    DECLARE
    v_count                         NUMBER;
    v_status                    CHAR(1);
    v_workorder_no     VARCHAR2(15);
    v_pass_no                    VARCHAR2(15);
    v_rec_pos                    NUMBER;
    BEGIN
         IF :workorder_dtls.labour_code IS NOT NULL THEN
              v_rec_pos := :SYSTEM.CURSOR_RECORD;
              SELECT COUNT(*) INTO v_count FROM labour_master
                                  WHERE labour_code = :workorder_dtls.labour_code;
              IF v_count > 0 THEN --if labour exist.
                   SELECT status INTO v_status FROM labour_master
                                  WHERE labour_code = :workorder_dtls.labour_code;
                   IF v_status = 'I' THEN--'I' stands for busy.
                        --check if labour is for extension i.e. if labour is working for same workorder
                        SELECT COUNT(*) INTO v_count FROM workorder_dtls
                                            WHERE labour_code = :workorder_dtls.labour_code
                                            AND workorder_no = :workorder_dtls.workorder_no
                                            AND to_dt <= SYSDATE;
                        IF v_count > 0 THEN
                             --if working in same workorder then for extension, then give from_dt, to_dt
                             SELECT MAX(TO_DT)+1 INTO :workorder_dtls.from_dt FROM workorder_dtls
                                                 WHERE labour_code = :workorder_dtls.labour_code
                                                 AND workorder_no = :workorder_dtls.workorder_no
                                                 AND to_dt <= SYSDATE;
                        ELSE
                             --if not working in same workorder then give message.
                             SELECT workorder_no, pass_no INTO v_workorder_no, v_pass_no FROM workorder_dtls
                                                 WHERE labour_code = :workorder_dtls.labour_code
                                                 AND to_dt <= SYSDATE;
                             MESSAGE('This labour is already working through workorder no. '||v_workorder_no||' using pass '||v_pass_no);
                             MESSAGE('This labour is already working through workorder no. '||v_workorder_no||' using pass '||v_pass_no);
                             RAISE FORM_TRIGGER_FAILURE;
                        END IF;
                   ELSIF v_status = 'A' THEN--'A' stands for available.
                        :workorder_dtls.from_dt := SYSDATE;
                   ELSIF v_status = 'H' THEN--'H' stands for help-up.
                             SELECT workorder_no, pass_no INTO v_workorder_no, v_pass_no FROM workorder_dtls
                                                 WHERE labour_code = :workorder_dtls.labour_code
                                                 AND to_dt <= SYSDATE;
                        MESSAGE('This labour has been held-up for not submitting gatepass.');
                        MESSAGE('This labour has been held-up for not submitting gatepass.');
                        RAISE FORM_TRIGGER_FAILURE;
                   ELSIF v_status = 'S' THEN--'S' stands for suspend.
                             SELECT workorder_no, pass_no INTO v_workorder_no, v_pass_no FROM workorder_dtls
                                                 WHERE labour_code = :workorder_dtls.labour_code
                                                 AND to_dt <= SYSDATE;
                        MESSAGE('This labour has been suspended through workorder no. '||v_workorder_no||' using pass '||v_pass_no);
                        MESSAGE('This labour has been suspended through workorder no. '||v_workorder_no||' using pass '||v_pass_no);
                        RAISE FORM_TRIGGER_FAILURE;
                   END IF;
                   IF v_status IN ('A', 'I') THEN
                        :BLK_TEMP_WORKORDER.LABOUR_CODE := :WORKORDER_DTLS.LABOUR_CODE;     
                        GO_BLOCK('WORKORDER_DTLS_IMG');
                        EXECUTE_QUERY(NO_VALIDATE);      
                        GO_RECORD(v_rec_pos);
                        GO_ITEM('WORKORDER_DTLS.FROM_DT');
                        IF :workorder_dtls.from_dt + 180 <= :workorder_master.to_dt THEN
                             :workorder_dtls.to_dt := :workorder_dtls.from_dt + 180;
                        ELSE
                             :workorder_dtls.to_dt := :workorder_master.to_dt;
                        END IF;
                   END IF;
              ELSE --if labour does not exist.
                   MESSAGE('Invalid labour code');
                   RAISE FORM_TRIGGER_FAILURE;
              END IF;
         END IF;
    END;

  • " help me please"  I have Windows 7 installed on my mac pro and Bought Mini DisplayPort to VGA Adapter to connect to lcd tv But it does not work? why? please help me

    " help me please"  I have Windows 7  32 bit installed on my mac pro and Bought Mini DisplayPort to VGA Adapter to connect to lcd tv But it does not work? why? please help me
    I have to boot with a Windows
    When I use the Mac operating system not have a problem  and DisplayPort to VGA Adapter Working properly
    why does not work with windows ?
    What should I do؟
    I'm grateful to give advice
    tanks
    [email protected]

    Someone in another section answered this. Thanks.

  • After my iphone4S update to 7.0.6, it have a problem that keep searching network then no service show on display. Can't call. I have try check sim card, reset network settings, and restore my iphone. Still not working at all. Need help please.

    After my iphone4S update to 7.0.6, it have a problem that keep searching network then no service show on display. Can't call. I have try check sim card, reset network settings, and restore my iphone. Still not working at all. Need help please.Urgent.TQ

    Izit software or hardware? Confuse:(
    Only can use wifi now.
    Any way thanks guys for ur suggestion:) amishcake and simes

  • Why does my webcam not work with Skype - can anyone help?

    Why does my webcam on Mac Book air not work with Skype - can anyone help?

    Did you set the Skype Audio/Video preferences to use the camera?

  • I have a problem with iphone 4s...is ringing but another sounds not working....please help me!!!

    i have a problem with iphone 4s...is ringing but another sounds not working....please help me!!!

    Hi pystyke,
    Welcome to Apple Support Communities.
    You may find these links helpful with troubleshooting the audio issue you're experiencing:
    iPhone Assistant
    http://www.apple.com/support/iphone/troubleshooting/
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Best,
    Jeremy

  • HT1491 I'm trying to recover it .....but it's not working ....plz help me what shoud i do now?

    I'm trying to recover it .....but it's not working ....plz help me what shoud i do now?

    What error are you getting?

  • HT201365 hello sir i purchase second hand iphone4s now my iphone ask for activation with id and password i contact with previous owner and use that id and password but that also not work what i do ola help me

    hello sir i purchase second hand iphone4s now my iphone ask for activation with id and password i contact with previous owner and use that id and password but that also not work what i do ola help me i try all other method restore ' upgrade etc but none work plz say what i do if u find some solution tham msg me on [email protected]

    First, we're not Apple here (Apple does not participate in this forum).  We're only users like you.
    The previous owner has not given you the correct ID and password for you to use.
    If the iphone has iOS version 7, then read through the following...
    http://support.apple.com/kb/HT5818

  • Hello sir i purchase second hand iphone4s now my iphone ask for activation with id and password i contact with previous owner and use that id and password but that also not work what i do ola help me i try all other method restore ' upgrade

    hello sir i purchase second hand iphone4s now my iphone ask for activation with id and password i contact with previous owner and use that id and password but that also not work what i do ola help me i try all other method restore ' upgrade etc but none work plz say what i do if u find some solution tham msg me on
    iPhone 4S

    oenkz33 wrote:
    this does not help at all for the second owner, after making the first owner id with careless, sorry for my english ...
    Careless? Possible, but unlikely. Most likely the phone was stolen from the first owner. It would be a VERY careless iPhone owner who did not erase their personal information from a phone before selling it, and to do that it is necessary to disable Activation Lock. In most places in the world knowingly using stolen property is a crime, so the fact that the phone doesn't work may be the least of one's risks.

  • I have a iphone 5....it's model A1428 but it's not working 4G network...Help Me Please!

    i have a iphone 5....it's model A1428 but it's not working 4G network...Help Me Please!

    Hi rushandias,
    Thanks for visiting Apple Support Communities.
    The steps in this article can help with troubleshooting your cellular data connection:
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    All the best,
    Jeremy

  • TS3367 Hi, the FaceTime just did not work between my mom and I. It used to work weeks ago, but now it does not work after showing"connecting". I feel frustrated and try all the method I can think of. Still do not work. Hope u can help me. Thanks!

    Hi, the FaceTime just did not work between my mom and I. It used to work weeks ago, but now it does not work after showing"connecting". I feel frustrated and try all the method I can think of. Still do not work. Hope u can help me. Thanks!

    Was it just this one time?  Could be that you, or your mom, were experiencing network problems.  Try again at a later time.

  • Exported HTML not work in my host.

    Exported HTML not work in my host.
    The program works fine. Looks good in the browser preview and published in businesscatalyst, but when i exporting as html and upload it to my server is bad, all misplaced.

    Thanks for the reply.
    Everything is apparently copied and permissions are well.
    Watch this please.
    So it should be seen:
    http://koldo01.businesscatalyst.com/
    It is seen:
    http://www.koldofuentes.com/

  • Hello,everyone.i purchased an iphone 5S from a retailer in my country after coming back to my home i restore this iphone it shows an activation id but i dont know what i have to do now?my apple id does not work in this situation.kindly help me out

    Hello,everyone.i purchased an iphone 5S from a retailer in my country after coming back to my home i restore this iphone it shows an activation id but i dont know what i have to do now?my apple id does not work in this situation.kindly help me out because it cost me to high and if this is not activated i have to bear a huge loss.i am a loyal customer of apple from a past 5 years.thank you for your cooperation

    Yes, this is activation lock. Return the phone for a refund, as it is useless without the activation information of the previous owner.

  • I am running Office 2013.  Trying to sync my reminders with my iphone using icloud for windows, but it is not working.  Can anyone please help?

    I am running Office 2013.  Trying to sync my reminders with my iPhone 5c version 7.1.2 using icloud for windows, but it is not working.  Can anyone please help?

Maybe you are looking for

  • Purchases do not show up on iTunes

    I just got my first MacBook and iPod Touch and was excited to start using iTunes, but I made several purchases on iTunes and they do not show up on my computer. I also cannot find a way to download them from iTunes. I must be an idiot because this is

  • HT204053 Multiple apple id's

    My daughter and I have different apple id's. we would like to use the same one so that we can use apps such as find my I phone. How could this be done?

  • Using Desktop Software for Mac with an 8703e - Can it be done?

    I downloaded the new BB desktop software for Mac but it doesn't seem to work with my 8703e device.  And since I had to erase the PocketMac software to install the new BB software, I now have no way to synch my Mac and BB.  Can anyone shed any light o

  • NTSC to PAL (from 29fps to 25fps) need help

    Hey Folks, I read this post here: http://discussions.apple.com/thread.jspa?messageID=2675891 And I wasn't able to reply to it since it was closed... so here's my situation. I shot a music video on my Sony TRV-19 camcorder @ 29fps (not positive if it'

  • Notifications in Portal UWL and external email Id

    When we run the workflow, the Tasks showup in the Universal worklist but the notifications don't (even though they appear in R3 Business workplace). Is this correct? DO we need to do some settings to take care of this. We also need to send the notifi