on 09-06-2006 7:01 AM
HI,
I have a requirement that I need to display 5 radiobuttons on output, if I select 1st radiobutton then i should display as 1st is selected, like that for all the remaining radiobuttons.please esnd the coding and approach for this task.Good answers are rewarded more points. Its very urgent.
Hi,
Use radio button Group by key create dictionary simple type and enter five enumeration values for five radio button. Then create the attribute and set the type to this dictionary simple type.
Bind this to radio button Group by key .
Then on click of the button i.e onSelect event of radio button write the code.
String val=wdContext.currentContextElement().getSelectedkey();
Then print it using message manager.
wdComponentAPI.getMessageManager().reportSuccess( val);
Regards,
Vijayakhanna Raman
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.
Hi
If u havent given any text value to the Keytoselect property of the radiobutton then
Create an action and bind it to the property onSelect of the radiobutton.
In the onAction<action name> give the below code.
String val = wdContext.currentContextElement.get<attribute name binded to selectedkey property of the radio button>();
wdComponentAPI.getMessageManager.reportSuccess("Selected value is "+val);
- Rathna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.