Help on HTP.P in PL/

I am using the following line of code in my PL/SQL procedure.
htp.p('Link');
Actually the application is deplyed and running in Weblogic server. If I running the application normally it is displaying content of JSP file which contains Forward,BackWard,Refresh buttons.i.e displaying all webcontent data. But when I tried access this page from the above link using PL/SQL HTP code, I can see one tab content only. I cann't see the all tabs names and forward,backward,refresh buttons at all. Can you please suggest me how can I load the webcontent into HTP code html page?
Thanks in advance...

Duplicate posting.
{message:id=4198256}

Similar Messages

  • Display a generated query in a text field with values

    Hello, I generate a query based on pl/sql. This works fine, but how can I display the query with the values from an item?
    i.e. in my query i have select * from a_table where name = :p1_name
    if i want to display the query in the correct way " select * from a_table where name = 'JOHN'.
    When i try this i only display select * from a_table where name = :p1_name, not the value i have applied to the item.
    Hope someone can help..

    htp.p('select * from a_table where name = ' || :P1_ENAME);
    Scott

  • Progress Bar using HTP.DIV -Help please

    Hi,
    Below is my Code to get a progress bar on the screen writen as a package
    PROCEDURE lp_progress_bar IS
    BEGIN
    htp.htmlOpen;
    htp.headOpen;
    -- Create Link to Style Sheet
    htp.linkrel(crel => 'stylesheet',
    curl => pk_constant.PATH_STATIC||'internal_body.css',
    ctitle => 'text/css');
    --Include the Javascript to Call the Progress Bar
    lp_js_copy();
    htp.headClose;
    htp.bodyOpen;
    --Define Attributes for the DIV tags to print the Progress bar
    htp.div(cattributes => 'id="bar"');
    htp.div(cattributes => 'id="progress"');
    htp.bodyClose;
    htp.htmlClose();
    END lp_progress_bar;
    and the JS for the progress bar
    NL CONSTANT VARCHAR2(2) := CHR(13) || CHR(10);
    PROCEDURE lp_js_copy
    IS
    vBodyCode VARCHAR2(500);
    BEGIN
    pk_js.js
    'var time = 10000;'
    || NL ||'var aCopy = 5;'
    || NL ||'var aCopyDone = 1;'
    || NL ||'function progress() {'
    || NL ||'parent.fr_buttons.btnCancel.disabled= true;'
    || NL ||'var bar = document.getElementById("bar");'
    || NL || 'alert(bar);'
    || NL ||'var aStep = (bar.offsetWidth -2) /aCopy;'
    || NL ||'var x = Math.round( aStep *aCopyDone); '
    || NL ||'var progress = document.getElementById("progress");'
    || NL ||'progress.style.width = x +"px";'
    || NL ||'aCopyDone++;'
    || NL ||'if( aCopyDone > aCopy) redir();'
    || NL ||'else setTimeout( "progress();", time /aCopy);'
    || NL ||'}'
    || NL
    || NL ||'function redir() {'
    || NL ||'alert("Copy Successfully Completed");'
    || NL ||'parent.fr_buttons.btnCancel.disabled= false;'
    || NL ||'parent.fr_buttons.btnSave.disabled=true;'
    || NL ||'}'
    END lp_js_copy;
    The stlye for bar and progress aere defined in the stylesheet internal_body.css as
    #bar
    MARGIN: 0 auto;
    WIDTH: 250px;
    TEXT-ALIGN: left;
    BORDER: 1px solid black;
    #progress {
    WIDTH: 0;
    BACKGROUND: darkblue;
    but I am not getting anything on the screen. What should I do to get it pop up on the existing screen.
    I had posted it on a the database thread too. But I guess it was th wrong category.Hence posting it new here.
    Please Help.
    Message was edited by:
    ora newbie

    Hi Dwijesh,
    U can use a OCX control. Make a OCX control and insert microsoft progress bar object into it. Then you can write codes into it accordingly to incerease the bar.

  • HTP Package Help

    Can someone help me on " how do I export the output of a pl/sql program into a notepad file through HTP Package."
    The output is supposed to be a multibyte character.
    Thanks!!

    the htp package is a package used by the mod pl/sql for apache in the AS. I don't think you can redirect it to a file. Just use dbms_output instead...

  • How to call a parametrized procedure from a htp.formsubmit

    Hi there, i'm trying to call a procedure with parameters from my formsubmit. i would like to call that procedure once my submit button is pressed. I did this :
    HTP.formOpen(twbkwbis.f_cgibin||'MyPackage.MyProcedure(param1, param2, param3, param4)');
    twbkfrmt.P_PrintText('<input type=submit name=ACTION  value="Soumettre">');
    HTP.formClose;
    but i had that 404 error page not found .
    i also did this :
    twbkfrmt.P_PrintText( htf.formSubmit(NULL, 'Soumettre', cattributes=>'ONCLICK= " return MyProcedure(param1, param2, param3, param4) " ') );
    and still the same error...does anyone have an idea to help me with this...thank you
    Edited by: user11146505 on 2009-07-10 06:49
    Edited by: user11146505 on 2009-07-10 06:51
    Edited by: user11146505 on 2009-07-10 06:52
    Edited by: user11146505 on 2009-07-10 06:52
    Edited by: user11146505 on 2009-07-10 06:54
    Edited by: user11146505 on 2009-07-10 06:55
    Edited by: user11146505 on 2009-07-10 06:55
    Edited by: user11146505 on 2009-07-10 06:57

    Hello and welcome to the list,
    To call your MyPackage.MyProcedure procedure as the submit action of a form use code like this:
    HTP.formopen('MyPackage.MyProcedure ','POST');
    HTP.formtext('param1');
    HTP.formtext('param2');
    HTP.formtext('param3');
    HTP.formtext('param4');
    HTP.formsubmit(cvalue=>'Soumettre');
    HTP.formclose;Note that when your code gets called it will be passed named parameters corresponding to each of the fields defined in the form, so if your procedure has 4 paramters named param1, param2, param3, param4 then you need 4 fields on your form with the same names, additionally the should each be defined with a default value such as NULL since unfilled fields on the report are not guaranteed to be passed to your procedure. If you have fields in your form with names other than the paramter names in your procedure you will get an error.
    As you can see there is no need to define the parameters in the formopen procedure, and no need to define an onclick handler on the submit button. Also you don't want to name the submit button unless you are going to pass the value of the buttons label (the cValue) to your procedure as a paramter.

  • Using htp.p for print dynamic data in apex region make my page slow?

    Hi, everyone!!! My name is Rafael, and...
    I search in the web and in this forum but i can´t find a answer for my doubt.
    Using the procedure htp.p for print dynamic data in apex region through on demand process , this will leave my webpage slow to load when the user access?
    Example:
    For build a menu in my webpage, it´s read a function in the database that returns variable string, so by a demand process this string is obtain and print in a web page using htp.p.
    I notice that this practice causes slow to load the data on the page.
    This is it...
    If someone help me, thanks...
    bye and Happy new Year!!!
    Edited by: user9518141 on 26/12/2009 17:19

    Hi,
    Try commenting out the function call and print some sample text in the htp.p like htp.p('Hello world..');
    I think the function call is probably taking a lot of time .. not htp.p.
    I have used htp.p to print out values dynamically in a lot of situations and have not ever come across any performance issues.It could be a problem with the function you are calling.
    Thanks,
    Rajesh.

  • Need help to show a thumbnail image column in report

    Hi, Gurus:
    I need to display a column of thumbnail images in a classical report. I follow the thread https://kr.forums.oracle.com/forums/thread.jspa?threadID=2201667
    I am using APEX 4.1, Oracle 11gR2
    Here is my table:
    CREATE TABLE "SORS"."SOR_IMAGE"
       (     "IMAGE_ID" NUMBER(10,0),
         "OFFENDER_ID" NUMBER(10,0) NOT NULL ENABLE,
         "IMAGE" BLOB CONSTRAINT "SOR_IMAGE" NOT NULL ENABLE,
         "THUMBNAIL" BLOB,
         "MIME_TYPE" VARCHAR2(50 BYTE),
          CONSTRAINT "SOR_IMAGE_PK" PRIMARY KEY ("IMAGE_ID")
    )Here is my procedure:
    create or replace
    procedure dl_sor_thumbnail (p_offender_id IN NUMBER) as
       v_mime_type VARCHAR2(48);
       v_length NUMBER;
       v_name VARCHAR2(2000);
       v_image BLOB;
    BEGIN
      SELECT 'IMAGE/JPEG', dbms_lob.getlength(thumbnail), thumbnail
      INTO v_mime_type, v_length, v_image
      FROM sor_image
      WHERE offender_id = p_offender_id
      and image_id = (select max(image_id)from sor_image where offender_id = p_offender_id) ;
    -- setup the HTTP headers
    owa_util.mime_header(nvl(v_mime_type, 'application/octet'), FALSE);
    htp.p('Content-length: '||v_length);
    --htp.p('Content-Disposition: attachment; filename="' || substr(v_name, instr(v_name,'/') + 1) || '"');
    --htp.p('Content-Disposition: attachment; filename="'somemmmmmfilename.jpg'");
    -- close the headers
    owa_util.http_header_close;
    -- download the Photo blob
    wpg_docload.download_file (v_image);
    END dl_sor_thumbnail;here is my report:
    select distinct 'MAP', '<img src="#OWNER#.dl_sor_thumbnail?p_offender_id='||so.offender_ID||'"/>' detail,
    so.doc_number as "DOC Number", so.offender_id as "Offender_ID", so.first_name||' '|| so.middle_name||' '||so.last_name as "Offender Name",
    so.checksum as "checksum",
    so.last_name as "Last Name",
    so.first_name||' '|| so.middle_name as "First Name",
    (select sc1.description from sor_code sc1 where sc1.code_id=so.race) as "Race",
    (select sc2.description from sor_code sc2 where sc2.code_id=so.sex) as "Sex",
    (select sc8.description from sor_code sc8 where sc8.code_id=so.hair_color) as "Hair Color",
    (select sc9.description from sor_code sc9 where sc9.code_id=so.eye_color) as "Eye Color",
    replace(replace(nvl2(sl.address1, sl.address1||' '||sl.address2 ||' '||sl.city ||' '||sl.county||' '||(select sc3.description from sor_code sc3 where sc3.code_id=sl.state)||' '||sl.zip, '-'),'#'),',') as "Address",
    replace(replace(nvl2(sl.physical_address1,sl.physical_address1||' '||sl.physical_city ||' '||sl.physical_county||' '||(select sc4.description from sor_code sc4 where sc4.code_id=sl.physical_state)||' '||sl.physical_zip, '-'),'#'),',')  as "Physical Address",
    sl.status as "Status",
    to_char(sl.ADDRESS1_LATITUDE) as "Address Latitude",to_char(sl.address1_longitude) as "Address Longitude",
    to_char(sl.physical_address_latitude) as "Physical Latitude",to_char(sl.physical_address_Longitude) as "Physical Longitude",
    decode(rox.habitual, 'Y', 'Habitual', '') as "Habitual",
    decode(rox.aggravated, 'Y', 'Aggravated', '') as "Aggravated"
    from sor_location sl, sor_offender so, registration_offender_xref rox, sor_last_locn_v sllv
    where rox.offender_id=so.offender_id
    and sllv.offender_id(+)=so.offender_id
    and sl.location_id(+)=sllv.location_id
    and rox.status not in ('Merged')
    and rox.REG_TYPE_ID=:F119_REG_ID
    and upper(rox.status)='ACTIVE'
    and nvl(rox.admin_validated, to_date(1,'J'))>=nvl(rox.entry_date, to_date(1,'J'))
    and (((select sc11.description from sor_code sc11 where sc11.code_id=so.race and sc11.code_id=:P5_SL_RACE) is not null ) or (:P5_SL_RACE is null))
    and (((select sc12.description from sor_code sc12 where sc12.code_id=so.sex and sc12.code_id=:P5_SL_SEX) is not null ) or (:P5_SL_SEX is null))
    and (((select sc13.description from sor_code sc13 where sc13.code_id=so.hair_color and sc13.code_id=:P5_SL_HAIR_COLOR) is not null ) or (:P5_SL_HAIR_COLOR is null))
    and (((select sc14.description from sor_code sc14 where sc14.code_id=so.eye_color and sc14.code_id=:P5_SL_EYE_COLOR) is not null ) or (:P5_SL_EYE_COLOR is null))
    and (exists ( (select sm.offender_id from sor_mark sm, sor_code sc15 where sm.offender_id=so.offender_id and  sc15.code_id=sm.code and sc15.code_id=:P5_SL_OTHER_MARKS  and sm.description is not null) ) or (:P5_SL_OTHER_MARKS is null))
    and ((exists (select sm1.description from sor_mark sm1 where sm1.offender_id=so.offender_id and upper(sm1.description) like upper('%'||:P5_TF_OTHER_MARKS_DESCRIPTION||'%'))) or (:P5_TF_OTHER_MARKS_DESCRIPTION is null))
    and ((floor(to_number(sysdate-so.date_of_birth)/365)-:P5_TF_AGE between -5 and 5) or (:P5_TF_AGE is null))
    and ((to_number(:P5_TF_HEIGHT_FEET)*12+to_number(nvl2(:P5_TF_HEIGHT_INCHES, :P5_TF_HEIGHT_INCHES, '0')-(floor(so.height/100)*12+mod(so.height, 100))) between -6 and 6) or (:P5_TF_HEIGHT_FEET is null))
    and ((so.weight-:P5_TF_WEIGHT between -25 and 25) or (:P5_TF_WEIGHT is null))and I set detail column as standard report column.
    however, the report shows no image, just an icon which indicates the image is not available. Would anyone help me on this problem?
    Thanks a lot.
    Sam
    Edited by: lxiscas on Apr 16, 2013 1:59 PM

    lxiscas wrote:
    I need to display a column of thumbnail images in a classical report. I follow the thread https://kr.forums.oracle.com/forums/thread.jspa?threadID=2201667
    Bad choice. Only one person involved in that thread knew what they were doing...and you copied from the wrong one.
    Here is my procedure:Lose it. Custom download procedures are overcomplicated and now almost never required.
    See the recommendation to use declarative BLOB support, as shown in the Thumbnail image problems.

  • I have a box that will not go away, it says,  "To open JavaApplication, you need to install a Java SE 6 runtime.  Would you like to check for and install one?  If i push not now, it keeps popping up, if I push install, it says it's not available, help.

    I have a dialogue box that will not go away and it seems to have started when I upgraded to Mt. Lion.  the box says, "To open JavaApplication, you need to install a Java 6 SE runtime.  Would you like to check for and install one?  (smaller print)  Note: Usw of this software is subject to the Software License Agreement applicable to the software you are downloading.  A list of Apple SLAs may be found here: htp://www.apple.com/legal/sla/
    Finally there are two boxes to click.  One says not now.  If I click on that the box goes away for 2 to 3 seconds and then pops back up and WILL NOT go away.  If I click on the second box, Install, it says  The software is currently unavailable.  To install a Java SE 6 runtime later, open Java Application again.
    My confusion here is that I have no idea what the java application is, When I click "okay" on that box, the original box pops us again and WILL NOT go away. CGoing to the apple lega web site was no help.  My solution so far has been to drag the dialogue box as far to the lower right and out of the way as far as I can.  Help.

    Does this happen immediately after you log in? If so, one of your login items is probably causing it.

  • Please help me...Javascript question

    Hi everyone,
    what i am trying to do is..
    EX:
    TABLE: EMP
    empno empname sal entered_by
    1 john 1000 user1
    I have a form on the table EMP.The users want to enter the same record again(because mutiple users enter the same record) but want an alert message when they hit the create button like.. Eg:
    when user2 is trying to enter this data..
    empno: 2 (generated by sequence)
    empname: john
    sal: 1000
    he wants to see an alert message like: THE Record is Already exists in the database which was entered by USER1 (But he can enter the same record)
    what i did is.. I have a javascript which calls the application process (PL/SQL) where it check whether the data entered is already there in the database and returns back an alert message like this:
    JAVASCRIPT:
    ==========
    <script language=javascript>
    function  f_insert_record()
            var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=INSERT_RECORD',0);
            get.add('P2_EMPNAME',html_GetElement('P2_EMPNAME').value);
            get.add('P2_SAL',html_GetElement('P2_SAL').value);
            gReturn = get.get();
            var a = gReturn.split("|");
            if(gReturn)
                if (a.length > 0) {alert(a[0]);}
            else
                null;
    </script>APPLICATION_PROCESS
    ===================
    DECLARE
       l_error   VARCHAR2 (4000);
       V_NAME VARCHAR2(1000);
       V_MSPR_ID NUMBER(15);
       I NUMBER;
       V_MYNUM STRING_OBJ := STRING_OBJ();
    BEGIN
      FOR C1 IN (SELECT DISTINCT entered_by ENTERED_BY_USER_NM 
    from emp 
    WHERE  
      empname = :P2_EMPNAME
      AND sal  = :P2_SAL
      ) LOOP
        V_MYNUM.EXTEND;
        V_MYNUM(V_MYNUM.COUNT) := C1.ENTERED_BY_USER_NM;
      END LOOP;
      V_NAME := NULL;
      l_error := NULL;
      FOR I IN V_MYNUM.FIRST..V_MYNUM.LAST LOOP
        --dbms_output.put_line(V_MYNUM(I));
        V_NAME := V_NAME || '   ' || V_MYNUM(I);
      END LOOP;
      IF V_NAME IS NOT NULL THEN
        l_error := 'The record already exists in the database which was created by '||V_NAME;
      END IF; 
      HTP.PRN(l_error);
    END;everything works fine...when i have a ONBLUR event on the SALARY field.
    But i want the same thing to be achieved with the ONCLICK event on the CREATE button (Template based button).
    The code i have shown over here is just an example...But the requirement is the same..Multiple Users can enter the same record but they want to see an alert message like this record was entered by USER1,USER2.
    The only think i am not able to figure out is the ONCLICK event on that create button.
    I tried like this Target: URL
    javaScript:(f_insert_record();doSubmit('CREATE');)
    I am not getting the alert message.
    Please help me to solve this
    thanks
    phani

    damn it! Those little quotation marks.....
    I already did figure it out awhile after I posted my question
    Thanks anyway!

  • HT1926 hey guys,i tried to install the latest version of itunes but when i try to open it,it just comes up windows error 2 apple application support was not found,can anyone help me out and tell me what i need to do pls ?

    hey guys,i tried to install the latest version of itunes but when i try to open it,it just comes up windows error 2 apple application support was not found,can anyone help me out and tell me what i need to do pls ?

    If you run into the "another installation" message even after the reboot of the PC (which is an excellent idea by HTP ProXy), reregistering your Windows Installer Service is worth a try.
    First, launch a command prompt as an administrator. In your Start search, type cmd then right-click on the cmd that comes up and select "Run as administrator".
    At the command prompt:
    Type %windir%\system32\msiexec.exe /unregister and hit enter.
    Type %windir%\syswow64\msiexec.exe /unregister and hit enter.
    Type %windir%\system32\msiexec.exe /regserver and hit enter.
    Type %windir%\syswow64\msiexec.exe /regserver and hit enter.
    Restart the PC and try another reinstalll.

  • My ipod touch is disabled, i installed the latest version of itunes, but cant figure out how to restore, can anyone help with this?

    My ipod touch is disabled, i installed the latest version of itunes, but cant figure out how to restore the ipod, can anyone help?

    If you run into the "another installation" message even after the reboot of the PC (which is an excellent idea by HTP ProXy), reregistering your Windows Installer Service is worth a try.
    First, launch a command prompt as an administrator. In your Start search, type cmd then right-click on the cmd that comes up and select "Run as administrator".
    At the command prompt:
    Type %windir%\system32\msiexec.exe /unregister and hit enter.
    Type %windir%\syswow64\msiexec.exe /unregister and hit enter.
    Type %windir%\system32\msiexec.exe /regserver and hit enter.
    Type %windir%\syswow64\msiexec.exe /regserver and hit enter.
    Restart the PC and try another reinstalll.

  • PLSQL Web Tool Kit (HTP) disabled in R12 - What are the alternitives

    We have developed a fair amount of add-on applications in our e-business suite using the plsql web toolkit (htp). This functionality has been disbaled in R12.
    My question to Oracle, "What is the work around for using applications we developed in 11i that were developed using the plsql web toolkit?
    Oracel response:
    R12 does not support WWK fucntions.
    You will need to recreate these as custom JSP pages.
    The pl/sql toolkit in the Apache Server is disabled in R12 as a security precaution.
    1. What are other people doing who have encountered this issue?
    2. Is it possible to enable the pl/sql toolkit in the apache server? If for nothing else than to buy time until these apps are re-written as jsp apps.
    3. Is anyone doing something other than jsp? i.e. SSWA Servlet Function?
    Any help or suggestions appreciated.

    Pl see your duplicate post here - R12 plsql web toolkit disabled - what are the alternatives?
    Srini

  • 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.

  • Help with htmldb_Get calling an on_demand application proccess

    Hi,
    I wonder if anyone can help with a problem I have. I have a button (coded in Javascript) that uses htmldb_Get to call an on_demand application process that should be updating the database. Unfortunately it does not, and I cannot see what I've done wrong! Perhaps some fresh eyes can help?
    Call to htmldb_get / application process
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=applicationProcessSaveToDB',0);
    get.add('STO_ID',myStoId)
    get.add('DTE_ID',myDteId)
    get.add('ADJ',myAdj)
    var gReturn = get.get();
    alert( 'gReturn <'+gReturn+'>' ) ;
    On_demand process code
    DECLARE
    l_msg VARCHAR2 (2000);
    BEGIN
    SELECT :ADJ || CHR(10) || :STO_ID || CHR(10) || :DTE_ID
    INTO l_msg
    FROM dual;
    UPDATE fid_live.tffd_cash_sls
    SET local_est_manl_adj = :ADJ
    , est_manl_adj = pk$_sa_exchange.f$_get_ukp_value
    TO_NUMBER( pk$_sa_sel.f$_sel_sto_no( :STO_ID ) ),
    :ADJ,
    pk$_sa_sel.f$_sel_calendar_dte( :DTE_ID )
    WHERE sto_id = :STO_ID
    AND dte_id = :DTE_ID;
    -- COMMIT;
    HTP.prn (l_msg);
    EXCEPTION WHEN OTHERS THEN
    l_msg:='Exception has occurred '||SQLERRM||', '||SQLCODE;
    HTP.prn (l_msg);
    END;
    I was expecting to see (a) the database updated (it is not) and (b) the text string l_msg echoed back via the alert(gReturn) - it does not (but does if I comment out the UPDATE statement, which makes me wonder if the SQL is being rejected, but then I'd hope that the exception block would return an error message).
    Can anyone help?
    Many thanks,
    MarkB...

    Hi Mark,
    for the future in case you have again a problem with an on-demand process. The following posting which I have written some time ago should help you to test it.
    http://inside-apex.blogspot.com/2006/12/how-to-test-on-demand-process.html
    Testing without the javascript call and seeing the actual result values is much easier then the through javascript.
    Greetings
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Htp query in Oracle

    I have Pl/sQL procedures and packages which contain htp statements htp.htmlopen; etc to present the output of the SQL query in web based HTML format
    We use htp.tabledata to represent the data in a tabular format. I would like to decrease the font size and also to reduce the width of the tables in order to
    make it display in a single screen rather than scrolling down to view the data
    Pls can anyone suggest on this

    This helps?
    Fixed Width for htp.tableData()?
    And this?
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b15896/pshtp.htm#i1006166
    Edited by: Vitor M.A. Rodrigues on 20/Jul/2011 9:52

Maybe you are looking for