|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Multiple rows with multiple radiobuttons in a form
Hi everyone.
I have a form with an unknown amount of rows. Each row has a certain amount of radio buttons. In each row only one button can be checked at the time. Here's a part of my code: for r in ( select * from hops_ojaksot where tyyppi like 'p' and opiskelijanr like opnum ) loop htp.tablerowopen; htp.formHidden('opjaksokoodi', r.koodi); htp.tabledata(r.koodi,'','','','','','width=60'); htp.tabledata(r.opjakso,'','','','','','width=280'); htp.tabledata(r.laajuus,'','','','','','width=55'); if r.lukukausi1 is null then htp.tabledata(htf.formradio('llk'||klk,'lk','')); else htp.tabledata(htf.formradio('llk'||klk,'lk','checked')); end if; if henktyyppi like 'N' then if r.lukukausi2 is null then htp.tabledata(htf.formradio('llk'||klk,'lk','')); else htp.tabledata(htf.formradio('llk'||klk,'lk','checked')); end if; else if daika>6 or (daika<=6 and norm like 'n') then if r.lukukausi2 is null then htp.tabledata(htf.formradio('llk'||klk,'lk','')); else htp.tabledata(htf.formradio('llk'||klk,'lk','checked')); end if; end if; end if; if henktyyppi like 'N' then if r.lukukausi3 is null then htp.tabledata(htf.formradio('llk'||klk,'lk','')); else htp.tabledata(htf.formradio('llk'||klk,'lk','checked')); end if; else if daika>12 or (daika<=6 and norm like 'n') or ((daika>6 and daika<=12) and norm like 'n') then if r.lukukausi3 is null then htp.tabledata(htf.formradio('llk'||klk,'lk','')); else htp.tabledata(htf.formradio('llk'||klk,'lk','checked')); end if; end if; end if; if henktyyppi like 'N' then if r.lukukausi4 is null then htp.tabledata(htf.formradio('llk'||klk,'lk','')); else htp.tabledata(htf.formradio('llk'||klk,'lk','checked')); end if; else if daika>18 or ((daika>6 and daika <=12) and norm like 'n') or ((daika>12 and daika<=18) and norm like 'n') then if r.lukukausi4 is null then htp.tabledata(htf.formradio('llk'||klk,'lk','')); else htp.tabledata(htf.formradio('llk'||klk,'lk','checked')); end if; end if; end if; tp.tablerowclose; klk:=klk+1; end loop; klk:=0; When my form jumps to the next procedure the only thing that happens is that in the first collum of the first row you'll see the which radio button was checked in the first row (of the previous form). In the second collum of the first row you'll see which radio button was checked in the seccond row (of the previous form). If you watch the second row it's the same as the first row. I use something like this in the next procedure: for i in llk0.first..llk0.last loop htp.tabledata(llk0(i)); end loop; for i in llk1.first..llk1.last loop htp.tabledata(llk1(i)); end loop; Please help me! |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > Multiple rows with multiple radiobuttons in a form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|