Home » Developer & Programmer » Forms » Radio and chek box value
Radio and chek box value [message #86985] Fri, 26 November 2004 09:05 Go to next message
orcl_dev
Messages: 14
Registered: November 2004
Junior Member
Hi THnx to all of those whoare helping here...

 

i wold like to ask that how can i programmtically chek that which radio button is selected.

suppose ihave radio gropp RG and have 2 buttons RDyes

and RDno

wat code shud i rite e.g to chek if rdyes is cheked then call form 1

and if rdno ischeked call form2 etc

and watis the proerty for chek boxes.. as wel

plz tell it clearly

thnx alot in advance

Best Regards.

 
Re: Radio and chek box value [message #86986 is a reply to message #86985] Fri, 26 November 2004 13:43 Go to previous messageGo to next message
Hi!
Messages: 9
Registered: November 2004
Junior Member
You should be able to just reference the radio group as you would any other block level item

(remember) Set each of the radio buttons with a checked value and it should work as expected.

e.g (please forgive syntax!)
IF :rdno = 'Y' THEN
call_form('form2');
END IF;
Re: Radio and chek box value [message #86992 is a reply to message #86986] Fri, 26 November 2004 17:52 Go to previous messageGo to next message
orcl_dev
Messages: 14
Registered: November 2004
Junior Member
hello
well its not working at all
i set the value of radiobutton rdno as checked.
and that of rdyes as checked.then
i wrote.

:rdno='y'the
call form('form2')

its not working

even i tried with rdyes.value='y' its not worknig

then i set the value of rdyes as y
and that of rdno as n

and wrote the same above code
it is still not working at all
giving me some compilation error

ANYONE PLZ with some correct help n suggestion

REgards
Re: Radio and chek box value [message #86999 is a reply to message #86992] Sun, 28 November 2004 07:51 Go to previous messageGo to next message
Hi!
Messages: 9
Registered: November 2004
Junior Member
Radio buttons:
You should have 1 radio_goup with at least 2 radio_buttons.

Radio_group (initial value = 'A')
+
--- radio1 (radio button value property = 'A')
--- radio2 (radio button value property = 'B')
push_button

:push_button (when_button_pressed trigger)
------------------------------------------
if :radio_group = 'A' THEN
call_form('form1');
elsif :radio_group = 'B' then
call_form('form2');
else
message('invalid radio button');
end if;

---------------
---------------

Check boxes are very similar, but you need to specify the check unchecked values and initial values.

check_box1 (initial value = NULL
value checked = NULL
value unchecked = 'N')

:push_button (when_button_pressed trigger)
------------------------------------------
if nvl(:check_box,'Y') = 'Y' THEN
call_form('form1');
else
call_form('form2');
end if;

That should be about it... (remember that Oracle IS case dependant).

what version of forms are you users (I can't remeber if you told us)?
Re: Re:::Radio and chek box value [message #87030 is a reply to message #86999] Tue, 30 November 2004 06:45 Go to previous messageGo to next message
orcl_dev
Messages: 14
Registered: November 2004
Junior Member
Thnx alot for you replies.... but

sorry one thing is still left

i am unable to set the initial value of the radiogroup

Using Forms 6i..... i have understoood how to set the

value for radio buttons..

but how set the initial value of radio group.

because if not set .when i compile the form it does compile but

show me message

ora-30188- no initial value set ...etc..

and then when i select one of the radio button and click on the puch button

it doesnt works.



HI.... plz solve this problem urgent ...

THnx alot

REgards
Re: Re:::Radio and chek box value [message #87293 is a reply to message #87030] Thu, 16 December 2004 11:22 Go to previous messageGo to next message
hi
Messages: 15
Registered: February 2002
Junior Member
If you have not already found it - it should be one of the property pallet options initial value - set this (also check required property is as expected.)
Re: Radio and chek box value [message #87847 is a reply to message #86985] Wed, 16 February 2005 16:38 Go to previous message
marly fernanda
Messages: 1
Registered: February 2005
Junior Member
i need the information about the chek box ,option button, list box , combo box.
please help me I need this for tomorow .
16-02-05
Previous Topic: form 9i is connecting to personal oracle 9i
Next Topic: Help needed for object list report in forms 6i under file-->administration
Goto Forum:
  


Current Time: Sun Nov 03 09:49:02 CST 2024