Bonjour,

Je voudrai envoyer un ensemble de paramètre dont le nombre est inconnu d'une procèdure A à une procèdure B à partir d'un formulaire voici le code ci-dessous :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
create or replace 
PROCEDURE UI_FORM
( vnb VARCHAR2)
  IS 
  i number(2);
BEGIN
	HTP.htmlopen;
	HTP.headopen;
	HTP.title('Affichage vol - compagnie aerienne');
	HTP.headClose;
	HTP.bodyOpen;
        HTP.print('Inserer les passagers');
 
         i :=1;
         HTP.formOpen(owa_util.get_owa_service_path || 'ui_check', 'GET');
         loop
              exit when i > vnb;
              htp.print('Nom ');
              htp.formText('vnom'||i,10);
              htp.print('Prenom ');
              htp.formText('vprenom'||i,10);
              htp.print('passeport ');
              htp.formText('vpasseport'||i,10);
              i := i + 1;
        end loop;
         ...
         htp.print('User ');
         htp.formText('vuser',10);
         htp.print('Password ');
         htp.formpassword('vpassword',10);
         HTP.formSubmit(NULL,'valider');
         HTP.formClose;
         HTP.bodyclose;
         HTP.htmlclose;
END UI_FORM;
Je ne vois pas comment faire la reception des paramètres à ui_check sachant que i peut varier, je sèche completment si quelqu'un peut m'aider...

merci de vos réponses par avance!