on 2005 Sep 26 9:54 AM
Hi everyone,
I created a radiobuttonbyindex and also created a node "Root1" and a variable in it called "Year".
I bound the radiobuttonbyindex to Root1.
Now, I want to know what I selected.
How can I do it ?
Do I have to use the mapping parameters ? If yes, How do we use it ?
Thanks a lot for the help.
David,
Prerequisites: node Root1 is of 0..n cardinality (multiple)
Code: wdContext.nodeRoot1().getLeadSelection() returns currently selected element (via RadioButtonByIndex)
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello David,
u create an event and assign it to onSelect of radiobutton. add a parameter for this event say "position" of type int.
now in doModify() write this code.
IWDRadioButtonGroupByIndex rad = (IWDRadioButtonGroupByIndex)view.getElement("ID");
rad.mappingOfOnSelect().addSourceMapping("index","position");
now when ever u select any radiobox this event will be triggered and the parameter "position" will contain the index of the selected radiobox.
Regards,
Piyush.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.