on 09-06-2006 11:28 AM
Hi,
I have a requirement that I need to display 5 Radiobuttons on output, when I select 1st Radiobutton it should show the message that "Button 1 is selected". like that if I select remaining Buttons they should display individually like 2,3,4,5 are selected.
I Need the coding and the steps from scratch to end.
Good answers are given excellent points.
ITS VERY URGENTTTT.
Hi,
Try this
Create Radiobutton Group by index And bind the value by dynamically
List radio = new ArrayList(); //define a List object
IPrivate<View>.I<Radio>node ele=wdContext.node<Radio>();
int num=1;
while(num<=5)
{
IPrivate<View>.I<Radio>Element ele=wdContext.create<Radio>Element();
ele.set<Param>(num);
radio.add(ele);
num++;
}
//add the list to radio node
wdContext.node<radio>().bind(radio);
you can receive the value of radio as
String radiovalue=wdContext.current<radio>Element().get<param>();
wdComponentAPI.getMessageManager().reportSuccess("Radio "+ radiovalue + " is Selected");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.