Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Drop-down box in PL/SQL? (kinda long!)
This is what I do .....
<sample>
htp.TableRowOpen; htp.print('<TD valign="top" rowspan="3">'); -- First we should display list of networks htp.print('<SELECT size=7 multiple name="net">'); open cur_log; loop fetch cur_log into rec_log; if cur_log%found then if rec_log.log_number_desc = '"** ALL NETWORKS **"' then htp.print('<option value="' || to_char(rec_log.log_number) || '" SELECTED>' || rec_log.log_number_desc); else htp.print('<option value="' || to_char(rec_log.log_number) ||
'">' || rec_log.log_number_desc);
end if; else exit; end if; end loop; if cur_log%isopen then close cur_log; end if; htp.print('</select>'); htp.print('</TD>'); htp.TableRowClose;
In my case I allow them to choose multiple values that's all. One with SELECTED is the one that gets highlighted .... Received on Fri May 05 2000 - 07:49:48 CDT