Using owa_util.showpage

Hi,
I just learning how the package owa_util works in my db 10g and I don't Know why the code that I describe below give me a few errors:
CREATE TABLE feds_data (
tid       NUMBER(9),
serial_no VARCHAR2(30),
mfg_abbr  VARCHAR2(8),
type_code VARCHAR2(5),
mod_dt    DATE,
mod_by    VARCHAR2(30));
INSERT INTO feds_data
(tid, serial_no, mfg_abbr, type_code, mod_dt, mod_by)
VALUES
(1, '42', 'BCAG', 'ABC', SYSDATE, USER);
INSERT INTO feds_data
(tid, serial_no, mfg_abbr, type_code, mod_dt, mod_by)
VALUES
(1, '666', 'MSC', 'XXX', SYSDATE, USER);
commit;
CREATE OR REPLACE PACKAGE feds_pkg IS
PROCEDURE get_data;
END feds_pkg;
CREATE OR REPLACE PACKAGE BODY feds_pkg IS
PROCEDURE get_data IS
CURSOR gmi_cur IS
SELECT tid, serial_no, mfg_abbr,
type_code, mod_dt, mod_by
FROM feds_data
ORDER BY tid;
ProcName VARCHAR2(61) := 'feds_pkg.get_data';
HeadText VARCHAR2(2000) := 'Demo Page Header';
FootText VARCHAR2(500) := 'Demo Page Footer';
BEGIN
  htp.p(HeadText);
  htp.p('<form method="POST"><center>');
  htp.p('<table border="1" width="30%">');
  FOR i IN gmi_cur LOOP
    htp.p('<tr>');
    htp.p('<td align="center">');
    htp.p('<font face="Arial" color=#000000">');
    htp.p('<input type=text size=3 maxlength=3 name="tid"');
    htp.p('value = ' || i.tid || '></font>');
    htp.p('</td>');
    htp.p('<td align="center">');
    htp.p('<font face="Arial" color=#000000">');
    htp.p('<input type=text size=8 maxlength=8 name="serial_no"');
    htp.p('value = ' || i.serial_no || '></font>');
    htp.p('</td>');
    htp.p('<td align="center">');
    htp.p('<font face="Arial" color=#000000">');
    htp.p('<input type=text size=6 maxlength=6 name="serial_no"');
    htp.p('value = ' || i.mfg_abbr || '></font>');
    htp.p('</td>');
    htp.p('<td align="center">');
    htp.p('<font face="Arial" color=#000000">');
    htp.p('<input type=text size=1 maxlength=1 name="serial_no"');
    htp.p('value = ' || i.type_code || '></font>');
    htp.p('</td>');
    htp.p('<td align="center">');
    htp.p('<font face="Arial" color=#000000">');
    htp.p('<input type=text size=7 maxlength=7 name="serial_no"');
    htp.p('value = ' || TO_CHAR(i.mod_dt, 'MM-DD-YYYY') ||'></font>');
    htp.p('</td>');
    htp.p('<td align="center">');
    htp.p('<font face="Arial" color=#000000">');
    htp.p('<input type=text size=6 maxlength=6 name="serial_no"');
    htp.p('value = ' || i.mod_by || '></font>');
    htp.p('</td>');
    htp.p('</tr>');
  END LOOP;
  htp.p('<p align=center>');
  htp.p('<input type=submit name="Submit" value="Save"></p>');
  htp.p('</form></center>');
  htp.p('</table>');
  htp.p(FootText);
END get_data;
END feds_pkg;
set serveroutput on
spool c:\PLSQL\demopage.html
exec feds_pkg.get_data;
exec owa_util.showpage;
spool offthe output error is:
ORA-06502: PL/SQL: error numérico o de valor
ORA-06512: en "SYS.OWA_UTIL",
línea 356 ORA-06512: en "SYS.HTP",
línea 1368 ORA-06512: en "SYS.HTP",
línea 1443 ORA-06512: en "SYS.HTP",
línea 1735 ORA-06512: en "HR.FEDS_PKG",
línea 15 ORA-06512: en línea 1Thanks in advance....

The htp package is meant for procedures that you call from the browser, not from sqlplus. Try this procedure call from your browser.
There is a way to get a preview via sqlplus, but you need to fake a CGI environment. Search this forum, I know this topic has been addressed before.
Here is one link:
Re: HTML not working in PL/SQL block..Help me ASAP
Edited by: InoL on May 20, 2011 3:40 PM

Similar Messages

  • Using OWA_UTIL.GET_CGI_ENV

    Oracle 10G Enterprise edition
    Hi All,
    I tried to use owa_util.get_cgi_env('HTTP_REFERER') to get the current URL, but it returned the previous URL of my webpage. Is there any other parameters to pass to owa_util.get_cgi_env() to get the current URL.
    Thanks
    R

    Not sure if there's a single variable, but you can always use
    'http://' || owa_util.get_cgi_env('http_host')
                    || '/'
                    || owa_util.get_cgi_env('script_name')
                    || '/'
                    || owa_util.get_cgi_env('path_info')
                    || '/'
                    || owa_util.get_cgi_env('query_string')

  • How to set an item when I redirect using OWA_UTIL.redirect_url

    I am using OWA_UTIL.redirect_url to redirect users.
    but I am lost in how do I set an item doing this. I have an item called :P101_MSG and I want to set it to 1.
    I added &:P101_MSG=1 this: OWA_UTIL.redirect_url ('f?p=&APP_ID.:101:&SESSION.*&:P101_MSG=1* ');
    but that was wrong.
    Can someone tell me the syntax to set P101_MSG=1 when I redirect.
    Howard

    Hi
    I'm not quite sure of what you're doing or where you are but this isn't how you set APEX items in the URL.
    See this example
    f?p=:&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.::::P1_ITEM1,P1_ITEM2:A,BThis sets item1 = A and item 2 = B.
    Is this what you mean (make sue you get the number of colons correct...
    Cheers
    Ben

  • Can you set username and password when using OWA_UTIL.REDIRECT_URL?

    If you have a PSP that runs under a DAD that includes username and password and therefore doesn't require users to log in and you want it to do OWA_UTIL.REDIRECT_URL to another PSP that runs under another DAD that normally requires login using basic database authentication and the first PSP already "knows" the user's username and password, is there any way to use them to skip the login dialog of the second page? Maybe hack into the request and use UTL_HTTP.SET_AUTHENTICATION somehow...?

    That doesn't seem to work, and trying that kind of url directly from the browser says "invalid syntax error", so maybe Oracle appserver just doesn't let you do that.
    I got the idea of trying to add an authorization header:
    OWA_UTIL.MIME_HEADER(BCLOSE_HEADER => FALSE);
    HTP.P( 'Authorization: Basic mybase64encodedcredentials' );
    OWA_UTIL.REDIRECT_URL('myurl', FALSE);
    OWA_UTIL.HTTP_HEADER_CLOSE;
    ...but it didn't work either and with a little further thought I guess it's obvious why: any code here modifies the response header for this request, not the request header for the redirect.
    Message was edited by:
    psalmu

  • Problem using owa_util.redirect_url

    I thought I could use the following to branch.
    However it does not work. Is there anything else
    I should be doing to make this work
    declare
    begin
    owa_util.redirect_url('f?p=294:20');
    end;
    Howard

    Hi Patrick,
    My application is facing with the same problem, i even tried your suggested
    apex_application.g_unrecoverable_error := true; -- tells apex engine to quitBut still it didn't worked well. Is there any problem with owa_util.redirect_url() in APEX 4.1.1 newly released patch?
    Also is there any other way to set homepage for an application at the time of login?
    My exact requirement is, after the successful user login, my authentication scheme has post-authentication procedure, which gets the users default homepage from the table and redirects user to the retrieved homepage, like:
    owa_util.redirect_url('f?p='||:APP_ID||':'||page_Number||':'||v('SESSION')||'::NO:::');Regards,
    Krishna

  • Using owa_util.get_cgi_env to get a cgi variable

    Using Forms 10g, on a UNIX server, I am trying to call this function: get_cgi_env('HTTP_CAMS_HTTP_USER') and assign the value for use in processing. I am trying to do this in my on-logon trigger of the form.
    Forms run-time is giving me :
    numeric or value error ORA 06512 at SYS.OWA_UTIL, line 356 ORA-06512 at SYS.OWA_UTIL line 375..
    Is it possible to use this function in Forms 10g running the 10g OAS, which is supposed to be based upon APACHE?
    Thank you,
    Tony Miller
    Webster, TX

    The value that the SSO package we use stores. It is the user's user id. We also have the actual session id in the SSO application available. AT this time, when we fire up a forms session, we have an .shtml file that calls the form url with a parameter, the session ID (from a cgi variable available to the .shtml file). I am trying to access that cgi variable so we DON'T need a parameter being passed on the url line for our main Form into the application..
    Thank you,
    Tony Miller
    Webster, TX

  • Unable to run PL/SQL Cartridge (OAS 4.0.8.1, Redhat Linux Kernel 2.2, Oracle 8.1.5)

    PL/SQL Cartridge server refuses to come up.
    Config:
    =======
    OAS 4.0.8.1 on Redhat Linux Kernel 2.2
    Oracle 8.1.5 on Windows NT
    Remote access to the database using connect string
    The Linux m/c and NT m/c have recommended system requirements and domain registering. I could invoke the procedure from SQL plus and view the HTML contents using owa_util.showpage. Also, I could install PL/SQL Web Toolkit using the same DAD. But Cartridge server just refuses to come up. If anyone has a solution for this, it would be a great help!!
    P.S: Attached below is wrb.log
    Thanks,
    Kiran
    Wrb Log Contents
    ================
    02-11-2000 17:27:49 746919 devlinux `Broker` 2231 1 0x10fff `OWS-04764: Unable to bring up cartridge server, type icsawebsite, at devlinux. `
    02-11-2000 17:27:50 760451 devlinux `Dispatcher` 2361 1 0x2fff `OWS-04517: Error indicated by broker in getting cartridges of type icsawebsite/ckreddy. `
    02-11-2000 17:27:50 860311 devlinux `Dispatcher` 2361 1 0x2fff `OWS-04512: Request 604CD69E9EBF-A5EC-E000-16FAA8C00954 has internal error due to Error 4511. `
    02-11-2000 17:31:47 204347 devlinux `Broker` 2231 1 0x10fff `OWS-04764: Unable to bring up cartridge server, type icsawebsite, at devlinux. `

    We had the same problem with the PL/SQL cartridge (OWS-04764 ...). We solved our problem with a new kernel. Its important that you have a kernel with symmetric multi-processing support (SMP) enabled, independent if you have a one or two processor machine.
    I hope it will help you.
    Best regards
    Hans Hirter
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by icsanet:
    PL/SQL Cartridge server refuses to come up.
    Config:
    =======
    OAS 4.0.8.1 on Redhat Linux Kernel 2.2
    Oracle 8.1.5 on Windows NT
    Remote access to the database using connect string
    The Linux m/c and NT m/c have recommended system requirements and domain registering. I could invoke the procedure from SQL plus and view the HTML contents using owa_util.showpage. Also, I could install PL/SQL Web Toolkit using the same DAD. But Cartridge server just refuses to come up. If anyone has a solution for this, it would be a great help!!
    P.S: Attached below is wrb.log
    Thanks,
    Kiran
    Wrb Log Contents
    ================
    02-11-2000 17:27:49 746919 devlinux `Broker` 2231 1 0x10fff `OWS-04764: Unable to bring up cartridge server, type icsawebsite, at devlinux. `
    02-11-2000 17:27:50 760451 devlinux `Dispatcher` 2361 1 0x2fff `OWS-04517: Error indicated by broker in getting cartridges of type icsawebsite/ckreddy. `
    02-11-2000 17:27:50 860311 devlinux `Dispatcher` 2361 1 0x2fff `OWS-04512: Request 604CD69E9EBF-A5EC-E000-16FAA8C00954 has internal error due to Error 4511. `
    02-11-2000 17:31:47 204347 devlinux `Broker` 2231 1 0x10fff `OWS-04764: Unable to bring up cartridge server, type icsawebsite, at devlinux. `<HR></BLOCKQUOTE>
    null

  • Htp procedures

    I've created a procedure with htp packages in sql plus, and I don't know how to use it for producing an html page. What do I have to do, use another product (I have Oracle 8i personal edition) ? Please help !
    thanx
    null

    You need a webserver
    Current main option is IAS (internet application server)
    OAS (oracle application server) is the old one
    There was also WebDB
    Of course You can execute Your procedure in SQL*Plus, then print out the result using owa_util.showpage, spool this in a html file and look what happened but as You could understand it is pretty ugly ;)
    null

  • OWA Errors using DBXML

    When I try to execute a procedure that contains a dbxml.query call, I get the following error stack:
    SQL> exec test_proc
    BEGIN test_proc; END;
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 315
    ORA-06512: at "SYS.OWA_UTIL", line 355
    ORA-06512: at "XMLBOOK.DBXML", line 121
    ORA-06512: at "XMLBOOK.DBXML", line 1367
    ORA-06512: at "XMLBOOK.DBXML", line 1826
    ORA-06512: at "XMLBOOK.TEST_PROC", line 4
    ORA-06512: at line 1
    I have loaded the plsxml packages but keep getting this error. I am running 8.1.7 on a Sun Solaris 7 Box. I can describe the OWA packages fine, any ideas?
    null

    public void setCGIVars(HttpServletRequest req, String name, String pass)
    throws SQLException {
    CallableStatement cs;
    StringBuffer command = new StringBuffer("DECLARE var_val owa.vc_arr;\n");
    command.append(" var_name owa.vc_arr;\n");
    command.append(" dummy_num_vals integer; \nBEGIN ");
    // Get dummy val, force to execute init code of the package
    // if not execute this call the global vars of packages of owa_init
    // and owa_cookie have null vals
    command.append("dummy_num_vals := owa.initialize;\n");
    String hostaddr = req.getRemoteAddr();
    //System.out.println(hostaddr);
    //!!! make faster right into "command" variable
    StringTokenizer st = new StringTokenizer(hostaddr,".");
    for(int i = 1; st.hasMoreElements(); i++)
    command.append("owa.ip_address(" + i + "):='" + (String) st.nextElement() + "';\n");
    // Set the owa.cgi_var_val and owa.cgi_var_name used by owa package
    // for example owa.get_service_path use the CGI var SCRIPT_NAME
    command.append(" owa.user_id:='" + name + "';\n" +
    " owa.password:='" + pass + "';\n" +
    " owa.hostname:='" + req.getRemoteHost() + "';\n");
    if (toolkitVersion.equalsIgnoreCase("3x"))
    command.append(" htp.rows_in:=0; htp.rows_out:=0;\n");
    else
    command.append(" htp.init;\n");
    CgiVars env = new CgiVars(req,this.connInfo,name,pass);
    for(int i=0;i<env.size;i++)
    command.append(" var_val("+(i+1)+"):='"+ env.values[i] + "';\n" +
    " var_name("+(i+1)+"):='"+ env.names[i] + "';\n");
    command.append(" owa.init_cgi_env("+env.size+",var_name,var_val);\n ");
    // get authorization mode
    command.append("END;");
    cs = sqlconn.prepareCall(command.toString());
    cs.execute();
    cs.close(); //don't wait for garbage collector
    }After this initialization step you must call your stored procedure and collect your page result with owa_util.showpage.
    Hope this help.
    Best regards, Marcelo.
    null

  • Error while setting Owa_Util.Mime_Header

    Hi.....
    I have to make code to download BLOB file from my custom table Oracle APEX.
    I am setting MIME Header using the following statement.
    owa_util.mime_header(nvl( v_mime,'application/octet'), FALSE );
    htp.p('Content-type: ' || v_mime);
    htp.p('Content-length: ' || v_length);
    htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    owa_util.http_header_close;
    I am using this code to download BLOB file from table.
    But i am getting following error:
    Error report:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 354
    ORA-06512: at "SYS.OWA_UTIL", line 413
    ORA-06512: at line 10
    06502. 00000 - "PL/SQL: numeric or value error%s"
    Can anyone tell me how to come out of this error.
    I am not able to understand this error.
    Thanks in advance.
    Edited by: user639262 on Sep 4, 2008 11:06 AM

    tward wrote:
    I'm trying to use:
    owa_util.mime_header('application/vnd.ms-excel', FALSE)
    htp.p('Content-Disposition: filename="test.xls"');
    owa_util.http_header_close;
    htp.htmlopen;
    htp.bodyopen;
    htp.tableopen(cattributes=>'border="1" width="100%" align="CENTER"');
    htp.tablerowopen;--(cattributes => 'align="LEFT", bgcolor="LIGHTGRAY"');
    htp.tableheader(cattributes=>'width="10%"', cvalue => 'Header 1');
    htp.tableheader(cattributes=>'width="15%"', cvalue => 'Header 2');
    htp.tableheader(cattributes=>'width="20%"', cvalue => 'Header 3');
    htp.tableheader(cattributes=>'width="10%"', cvalue => 'Header 4');
    htp.tableheader(cattributes=>'width="20%"', cvalue => 'Header 5');
    htp.tableheader(cattributes=>'width="25%"', cvalue => 'Header 6');
    htp.tablerowclose;
    htp.tableclose;
    htp.bodyclose;
    htp.htmlclose;
    My understanding is that this will open the window to Open/Save/Cancel the output in Excel.....
    But for some reason, it simply displays in a browser window.....
    The first line in the windows is:
    Content-type: application/vnd.ms-excel Content-Disposition: filename="test.xls"
    followed by the HTML Table....
    Why will it not open in Excel for me?Something is not getting recognized properly.
    Try hard-coding the functionality you want into a static HTML document. Then work on using owa_util.mime_header or Like MichaelS suggested htp.p surrounded by any needed tags w/options to duplicate the working static document's functionality.

  • Problem when downloading file to local using WPG_DOCLOAD.download_file

    Hi ,
    i am using database 11g and i am trying to write to file on database server using utl_file and download to the local machine by pl/sql procedure . i am directly executing this procedure in pl/sql . i am getting ORA-06502: PL/SQL: numeric or value error when executing owa_util.mime_header ('application/vnd.ms-excel',TRUE); statement in the procedure . not sure what is happening and i am new in using these features
    here is my code
    CREATE OR REPLACE PROCEDURE UTL_TEST_DOWNLOAD
    AS
    output_file utl_file.file_type;
    vexists BOOLEAN;
    vfile_length NUMBER;
    vblocksize NUMBER;
    l_blob BLOB;
    l_bfile BFILE;
    BEGIN
    output_file:=UTL_FILE.FOPEN('DATA_DIR', 'timesheet.csv', 'w');
    UTL_FILE.PUT_LINE(output_file,'COST_CENTRE'||
    'HISTORY_DATE'||
    'REF_NO'||
    'FIELD_NAME'||
    'VALUE'||
    'DATA_TYPE'||
    'CHANGE_DATE'||
    'INT_REF');
    UTL_FILE.fclose(output_file);
    UTL_FILE.FGETATTR('DATA_DIR','timesheet.csv',vexists,vfile_length,vblocksize);
    IF vexists THEN
    DBMS_LOB.createtemporary (l_blob, TRUE, DBMS_LOB.SESSION);
    l_bfile := BFILENAME ('DATA_DIR', 'timesheet.csv');
    DBMS_LOB.fileopen (l_bfile,dbms_lob.file_readonly);
    DBMS_LOB.loadfromfile (l_blob, l_bfile, DBMS_LOB.getlength (l_bfile));
    DBMS_LOB.fileclose (l_bfile);
    owa_util.mime_header ('application/vnd.ms-excel',TRUE);
    dbms_output.put_line('after owa_util' );
    owa_util.http_header_close;
    WPG_DOCLOAD.download_file (l_blob);
    end if;
    EXCEPTION
    WHEN utl_file.invalid_path THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_path');
    WHEN utl_file.invalid_mode THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_mode');
    WHEN utl_file.invalid_filehandle THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_filehandle');
    WHEN utl_file.invalid_operation THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_operation');
    WHEN utl_file.read_error THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.read_error');
    WHEN utl_file.write_error THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.write_error');
    WHEN utl_file.internal_error THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.internal_error');
    WHEN OTHERS THEN
    dbms_output.put_line('SQLERRM '||SQLERRM);
    END UTL_TEST_DOWNLOAD
    SQLERRM ORA-06502: PL/SQL: numeric or value error
    The file is getting created all the time i execute this procedure i am getting the above error while executing this statement owa_util.mime_header ('application/vnd.ms-excel',TRUE);
    Edited by: user5784286 on Jul 2, 2012 7:35 PM

    Hi,
    You need to call the procedure owa.init_cgi_env before you can use owa_util.mime_header from SQL*Plus.
    See [url http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:500221786045]here for details.
    Rod West

  • How to set #HOST# variable used in Chart template using Multiple Domains?

    I have a extended question to How can I set #HOST# variable referenced in the Chart template?
    In addition to the Proxy layer, we are looking to use multiple sub-domain names into the same Oracle APEX instance (through the one DAD) each mapped to a different application id. Therefore I don't think the solution in the link will work for me - as this embeds a single domain name in the DADS.CONF.
    Two questions:
    - Is it possible to set the "HTTP_HOST" in "dads.conf" using an existing HTTP Header value? - my proxy can pass on the original domain as "HTTP_X_FORWARDED_HOST". So if it was possible to use (say: using whatever form/syntax of parameterisation is available) ?
    >
    PlsqlCGIEnvironmentList HTTP_HOST=%{HTTP_X_FORWARDED_HOST}
    >
    If it can then that would work for me. It would be great if modl_plsql handled this out of the box as I understand the "X-FORWARDED" approach is pretty standard in the proxy world including passing on original IP addresses. Hitting an phpinfo() site shows headers
    >
    HTTP_X_FORWARDED_FOR     192.168.2.100
    HTTP_X_FORWARDED_HOST     dev.mycompany.com:443
    HTTP_X_FORWARDED_SERVER     mycompany.com
    >
    - Alternatively is it possible in APEX environment to set the #HOST# from the HTTP Header "HTTP_X_FORWARDED_HOST" if it exists for all requests?
    Thanks

    Hi Donna,
    changing the CGI environment variables HTTP_HOST, REQUEST_PROTOCOL and SERVER_PORT is the correct way how to resolve this, because it appears that your hiding the web server where you have installed mod_plsql or EPG by a different outside facing web server (also called reverse proxy). That's why APEX gets the host name, protocol and port of the internal web server, but should actually get the values of your reverse proxy web server. Can can fix that by changing the following CGI environment variables.
    HTTP_HOST should just contain the domain name (no protocol or port). For example: www.oracle.com
    REQUEST_PROTOCOL should contain http or https
    SERVER_PORT should be the port for https
    I don't want to add a new cgi variable called HOST because HOST sounds so generic and it might interfere with something else running in our environment. Or, I don't want to change the plsql cgi environment variable (such as HTTP_HOST) because many developers may use owa_util.get_cgi_env('HTTP_HOST') to get the current server. If the SERVER_PORT is part of the #HOST# then what could I change it to if it needs to be null. If you leave it blank, then the default SERVER_PORT comes from the CGI variables.The value of HTTP_HOST is wrong anyway and points to your internal web server, but I assume your developers actually want to get the host name of your external web server if they use it to generate absolute URLs. That's why I wouldn't bother and set it to the correct host name.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Reg. owa_util.ident_arr

    Hi Experts,
    I'm stuck up with a procedure where i need to pass multiple checkbox values. So, i'm using owa_util.ident_arr.
    But i'm not able to pass any default value for the same (required when 1st time loading the page).
    Please consider this a bit urgent.
    Help really appreciated.
    Best Regards,
    Ranit B.

    ranitB wrote:
    Hi Experts,
    I'm stuck up with a procedure where i need to pass multiple checkbox values. So, i'm using owa_util.ident_arr.
    But i'm not able to pass any default value for the same (required when 1st time loading the page).
    Please consider this a bit urgent.
    Help really appreciated.
    Best Regards,
    Ranit B.Urgent issues should be raised with Oracle Support. Urgent issues typically relate to commercially live systems, so posting urgent issues here is a breach of the terms of use of the forums...
    >
    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.
    >
    It is also considered very rude to expect the volunteers of these forums to ignore all other things they are doing or other posts they are answering to help you with your urgent issue, and it is also rude to all the other people posting questions to assume that your question is somehow more important than theirs.
    Read the FAQ: {message:id=9360002} especially point 2.
    Also, consider that SQL and PL/SQL does not have checkboxes, so your question isn't likely to be relevant to this particular forum, so read that FAQ and ensure you either a) provide sufficient information so that people can help you or b) post sufficient information in the correct forum.

  • Owa_util.mime_header, Excel, and style sheets

    Does anyone know of a way to pass styles from Cascading Style Sheets to an Excel file? I'm using owa_util.mime_header('application/excel') to open the spreadsheet from a PL/SQL procedure formatted for html using htp and htf tags. I can put the <font> tags back into the code if I have to, but I'd rather not...
    Thanks,
    Dave

    tward wrote:
    I'm trying to use:
    owa_util.mime_header('application/vnd.ms-excel', FALSE)
    htp.p('Content-Disposition: filename="test.xls"');
    owa_util.http_header_close;
    htp.htmlopen;
    htp.bodyopen;
    htp.tableopen(cattributes=>'border="1" width="100%" align="CENTER"');
    htp.tablerowopen;--(cattributes => 'align="LEFT", bgcolor="LIGHTGRAY"');
    htp.tableheader(cattributes=>'width="10%"', cvalue => 'Header 1');
    htp.tableheader(cattributes=>'width="15%"', cvalue => 'Header 2');
    htp.tableheader(cattributes=>'width="20%"', cvalue => 'Header 3');
    htp.tableheader(cattributes=>'width="10%"', cvalue => 'Header 4');
    htp.tableheader(cattributes=>'width="20%"', cvalue => 'Header 5');
    htp.tableheader(cattributes=>'width="25%"', cvalue => 'Header 6');
    htp.tablerowclose;
    htp.tableclose;
    htp.bodyclose;
    htp.htmlclose;
    My understanding is that this will open the window to Open/Save/Cancel the output in Excel.....
    But for some reason, it simply displays in a browser window.....
    The first line in the windows is:
    Content-type: application/vnd.ms-excel Content-Disposition: filename="test.xls"
    followed by the HTML Table....
    Why will it not open in Excel for me?Something is not getting recognized properly.
    Try hard-coding the functionality you want into a static HTML document. Then work on using owa_util.mime_header or Like MichaelS suggested htp.p surrounded by any needed tags w/options to duplicate the working static document's functionality.

  • Using CIS to get UCM environment variables

    Hi,
    I am working on extending an existing CIS application.
    I would need to read the UCM's environment variable value.
    I see there are CIS APIs for the most common actions needed, but couldn't find anything useful in the docs - is there something similar for the env variables?
    Any help is highly appreciated.
    Thanks,
    Zoran

    Do you want to get the port and server name from the web server or from the database?
    If it's the web server have a look at the package OWA_Util.print_cgi_env to get a list (you can also run this procedure in the SQL Workshop) of all available environment variables in the HTTP session context. Use OWA_Util.get_env to read the value of a particular environment variable.
    Hope that helps
    Patrick

Maybe you are looking for