Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 2nd, 2005, 02:51 AM
onno1 onno1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Finland
Posts: 22 onno1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 49 m 7 sec
Reputation Power: 0
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!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Multiple rows with multiple radiobuttons in a form


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT