Re: If Statement for Radio Group & Poplist
Date: Wed, 18 Oct 2000 19:12:35 +0100
Message-ID: <i$BqdXATge75Ewj0_at_ahardy.demon.co.uk>
In article <8sgcdk$2nb$1_at_news.cowan.edu.au>, Daniel Butun
<dabutun_at_iinet.net.au> writes
>Would somebody be able to assist me with some coding.
>
>I need to be able to determine what the values selected in a radio group and
>a poplist are.
>
>Heres the Items:
>Radio Group
> Help_Radio_Group
>Radio Buttons
> Equipment_Checkbutton
> Person_Checkbutton
> Job_Checkbutton
> Reports_Checkbutton
>
>Poplist
> Job_Help_List
>Elements in list
> Topic 1 Return Value - 1
> Topic 2 Return Value - 2
>
>Forms doesnt provide any code on this and this is one example of what I've
>tried
>IF :mainhelp.help_radio_group = Equipment_checkbox Then
>NULL;
>END IF;
I haven't got the documents in front of me, but...
For the radio buttons you give them each a value in their individual properties e.g. Equipment_Checkbutton might be 1 or 'Equipment' etc.
You then check the radio group for that value e.g.
IF :block.radio_group = 'Equipment' THEN
message('Equipment selected');
END IF;
>
>and for the poplist, I have tried similar code.
And I seem to think that the poplist should also be returning the value of the selected item.
What is happening in your case?
Andy
-- Andy Hardy. PGP ID: 0xA62A4849 ===============================================================Received on Wed Oct 18 2000 - 20:12:35 CEST