Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: PL/SQL & OraWeb 3.0: overloaded proc has performance hit
Input objects are associated with pl/sql variables based on their name. Multiple objects with the same name are passed as an array. Here's a short example of each. Once the variables are in the procedure, you can do any sort of manipulation on them you want.
CREATE OR REPLACE PROCEDURE input_form
IS
BEGIN
htp.formOpen('output_form','post'); htp.formText('input_value'); htp.formSubmit; htp.formClose;
CREATE OR REPLACE procedure output_form(input_value VARCHAR2)
IS
BEGIN
htp.print('input_value = '||input_value);
END;
/
CREATE OR REPLACE PROCEDURE input_form2
IS
BEGIN
htp.formOpen('output_form2','post'); htp.formText('input_value'); htp.formText('input_value'); htp.formSubmit; htp.formClose;
CREATE OR REPLACE PROCEDURE output_form2(input_value OWA_UTIL.IDENT_ARR)
IS
i INTEGER;
BEGIN
i:=1;
WHILE input_value.exists(i) LOOP
htp.print('input_value(' || i || ') = '||input_value(i));
htp.br;
i:=i+1;
END LOOP;
END;
/
Received on Wed Sep 17 1997 - 00:00:00 CDT