Home » SQL & PL/SQL » SQL & PL/SQL » Textarea tag using Oracle HTP package (Oracle 9i, Win 2000 Professional)
Textarea tag using Oracle HTP package [message #291150] Thu, 03 January 2008 03:18 Go to next message
naiksushma
Messages: 15
Registered: December 2006
Junior Member
Hi,


While creating TEXTAREA tag using Oracle supplied HTP package, i am facing one problem, I wanted to have scrollbar as it is a TEXTAREA tag. The code is given below. Using which attribute Can I accomplished this?

htp.tableData(htf.FORMTEXTAREAOPEN2(
cname => 'v_Description'
, nrows => '3'
, ncolumns => '100'
, calign => NULL
, cwrap => 'Y'
, cattributes => 'DISABLED')||v_Description||htf.formTextareaClose);

Thanks & Regards,

[Updated on: Thu, 03 January 2008 03:31] by Moderator

Report message to a moderator

Re: Textarea tag using Oracle HTP package [message #291719 is a reply to message #291150] Sun, 06 January 2008 04:10 Go to previous message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
Try using CSS style="overflow: auto". Example:

SQL> DECLARE
  2    name_arr OWA.VC_ARR;
  3    value_arr        OWA.VC_ARR;
  4    v_description VARCHAR2(30) := 'my desc';
  5  BEGIN
  6    OWA.INIT_CGI_ENV(0, NAME_ARR, VALUE_ARR);
  7    htp.tableData(
  8       htf.FORMTEXTAREAOPEN2(
  9          cname => 'v_Description'
 10          , nrows => 3
 11          , ncolumns => 100
 12          , calign => NULL
 13          , cwrap => 'Y'
 14          , cattributes => 'style="overflow: auto"')||
 15       v_Description||
 16       htf.formTextareaClose);
 17
 18    owa_util.showpage;
 19  END;
 20  /
<TD><TEXTAREA NAME="v_Description" ROWS=3 COLS=100 WRAP="Y" style="overflow:
auto">my desc</TEXTAREA></TD>

PL/SQL procedure successfully completed.

Previous Topic: retrieving data from text file using utl_file
Next Topic: download sample schema
Goto Forum:
  


Current Time: Sun Dec 01 10:58:19 CST 2024