Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: (Q)Receiving values from checkboxes...
When receiving multivalued variables (such as checkboxes or elements of an html table), the PL/SQL procedure is passed an argument of type OWA_UTIL.IDENT_ARR. OWA_UTIL.IDENT_ARR is actually a PL/SQL table of varchar2; that is, an array.
The relative position of elements within this array will be the same of the corresponding html variables.
Thus, if several checkboxes are given the same name (and, normally, different values), you can easily iterate through them as illustrated in the following piece of code:
PROCEDURE get_checkboxes(chkbox IN OWA_UTIL.IDENT_ARR) IS BEGIN
FOR i IN 1..chkbox.COUNT LOOP IF chkbox(i) IS NOT NULL THEN htp.print(
'You checked box #' ||
TO_CHAR(i) ||
' whose value is: ' ||
chkbox(i) ); END IF; END LOOP;
![]() |
![]() |