plsql - Concat an item with a loop variable in Oracle APEX -
i have set of item has same name add @ end of each position number :p77_variable_1, :p77_variable_2.
so in process add them database must item , make loop. loop
for in 1..:p77_nombre_variable loop l_variable := new sfd_si_variable_typ(sfd_si_variable_seq.nextval, :p77_nom_variable_i, :p77_type_variable_i); sfd_si_variable_pkg.ajouter(l_variable); end loop;
but problem doesn't work. can know way execute loop , adding "dynamically" item (or better way concatenation variable i. thank you.
leaving off whether wise thing (using individual variables should array, e.g. using apex collection), can use v()
function this.
for in 1..:p77_nombre_variable loop l_variable := new sfd_si_variable_typ(sfd_si_variable_seq.nextval ,v('p77_nom_variable_'||i) ,v('p77_type_variable_'||i)); sfd_si_variable_pkg.ajouter(l_variable); end loop;
Comments
Post a Comment