Hi !!

I do this for my radiobutton field which is in a repeated, so I call it
*rdElement.

                CSpValue field = getDisplayFieldValue(*rdElement);

And once I have gotten the value in the variable field, I check if it is
vector, etc.

                if (field instanceof CSpVector)

                        ....
                }

This should work, 'cause I have made this work a zillion times, unless there
is something very specific about your code that is not apparent from your
mail.

Regards,

--Manoj

PS: I see that you use getWebVar alot, I wonder why wouldn't you put the
info in a session variable and then call
getUserSessionObject("sesUserSessData") ? Personally, I have found out the
webVars to be a little unpredictable, then again I might be wrong.



> -----Original Message-----
> From: Schiller, Ronald J [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 01, 1999 1:19 PM
> To: '[EMAIL PROTECTED]'
> Subject: [ND] Getting a radio button value
> Importance: Low
>
>
> I've tried everything I can find in the archives of this group without any
> luck.  On my page, I have a button (btCreateExpenseReport) the
> user presses
> to create an expense report of one of two types based on two radio buttons
> (rbReportType) on the page.  The only results I get are null or
> the default
> value for the radio button.  Here's an ugly sample of what I've tried:
>
>       public int btCreateExpenseReport_onWebEvent(CSpWebEvent event)
>       {
>               CSpRadioButtonsGroup rbg =
>                       (CSpRadioButtonsGroup)
> getDisplayField("*rbReportType");
>               CSpSelectable sel_rbg = rbg.getSelected();
>               CSpValue cv_radiobuttonvalue = CSpider.getWebVar("sel_rbg");
>
>               CSpValue cv_radiobuttontemp =
>
> ((getDisplayField("*rbReportType")).getValue());
>
>               String cv_radiobuttonvalue =
>                               CSpider.getWebVar("*rbReportType");
>
>               CSpValue cv_radiobuttontemp =
>                               (getDisplayFieldValue("rbReportType"));
>
>               CSpValue cv_radiobuttontemp =
>                               CSpider.getWebVar("rbReportType");
>
> Any suggestions, code samples would be appreciated.  Should this be in a
> different event?  Thanks.
>
> _________________________________________________________________________
>
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
> For dire need help, email: [EMAIL PROTECTED]
>

_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to