Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: htp.formSelectOption
On Tue, 05 Aug 1997 21:32:34 +0200, Stian Hundhammer <stian_at_origo.no> wrote:
>Hi !
>
>Does anybody know how I can parse the output from an from a MULTIPLE-
>select list?
>
>html-code :
>
><SELECT NAME="categories" size=15 multiple>
><OPTION VALUE="52"> Pictures
><OPTION VALUE="37"> Favorites
><OPTION VALUE="12"> Friends
></SELECT>
>
>If I select Pictures and Frinds from my list, the SUBMIT button send
>among other thing this to my PL/SQL script:
>
>..../owa/action?categories=52&categories=12
>
>but when i try to :
>
Make your procedure look like:
procedure action( categories in owa.vc_arr )
is
begin
for i in 1 .. 1000000 loop begin htp.p( categories(i) || htf.br ); exception when no_data_found then exit; end; end loop;
owa.vc_arr is a varchar2(2000) 'array' type you can use, or you can define your own (useful if your user doesn't have to select ANY item, you need to default the array). Consider;
create package types
as
type Array is table of varchar2(2000) index by binary_integer; emptyArray Array;
create procedure action( categories in types.Array DEFAULT types.EmptyArray )
is
begin
....
end;
/
>htp.print(categories) ;
>
>in my action-script, I only get 56!!!
>
>How can I get around this problem?
>
>I'm using a 7.3.2 database , WebServer 2.1.0.3 on IRIX
>
>Thanks!
>
>Stian
Thomas Kyte
tkyte_at_us.oracle.com
Oracle Government
Bethesda MD
http://govt.us.oracle.com/ -- downloadable utilities
![]() |
![]() |