cancel
Showing results for 
Search instead for 
Did you mean: 

RadioButtonByIndex

david_fryda2
Participant
0 Kudos
52

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

David,

Prerequisites: node Root1 is of 0..n cardinality (multiple)

Code: wdContext.nodeRoot1().getLeadSelection() returns currently selected element (via RadioButtonByIndex)

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com/

david_fryda2
Participant
0 Kudos

Hi Valery,

Thanks for the fast reply.

It works.

Thanks.

Message was edited by: David Fryda

Answers (1)

Answers (1)

Former Member
0 Kudos

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.