SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
radio button [ Reply ]
By: Maud Arsac on 2009-06-18 07:31
[forum:1637]
First, RGG is a very useful project. Thanks for developing it!

I have some problems with radio button.

First, return of this item is an R object, not a string. Is it OK ? So we have to define the return values before rhe RGG code ?

Second, the value return is the latest of the list. So user choice is overwritten. I give you a simple example :
RGG code :
<rgg>
A = "A"
B = "B"
D = "D"
<radiobutton var = "id" label = "A" return-value-by-selected = "A" button-group="bg"/>
<radiobutton var = "id" label = "B" return-value-by-selected = "B" button-group="bg"/>
<radiobutton var = "id" label = "D" return-value-by-selected = "D" button-group="bg"/>
print(id)
</rgg>
# R script corresponding if A is selected
> A = "A"
> B = "B"
> D = "D"
> id<-A
> id<-FALSE
> id<-FALSE
> print(id)
[1] FALSE

How can I use this radio button to obtain a correct value ?

Thanks in advance for you reply,

Maud Arsac


Thanks to:
Vienna University of Economics and Business Powered By FusionForge