cancel
Showing results for 
Search instead for 
Did you mean: 

Radio Button of two columns to be grouped

Former Member
0 Kudos

Dear Experts,

I have a table with columns like SUBSCRIBE and UNSUBSCRIBE which are wdy_boolean data type and displaying as radio buttons.

The problem is both columns are displaying as selected and want to make these two columns as group so only one can be selected.

I mapped cell variant with other column but its not hit.

Please suggest.

Thanks & Regrads

Siva Mandapudi.

Accepted Solutions (1)

Accepted Solutions (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Siva,

To achieve this functionality do the following

1. Create one context attribute by name 'selectedValue' ( type string) under the context node of the table

2. create two columns in the table with name SUBSCRIBE and UNSUBSCRIBE (as you did already). let the cell editor be RadioButton. Cell variants are not required

3. Now for the SUBSCRIBE radio button, bind the 'selectedKey' property to 'selectedValue' context attribute. And maintain the 'KeyToSelect' property as 'SUBSCRIBE'

4. for the UNSUBSCRIBE radio button, bind the 'selectedKey' property to 'selectedValue' context attribute. And maintain the 'KeyToSelect' property as 'UNSUBSCRIBE'

so whenever the user selects a radiobutton, corresondinf values SUBSCRIBE or UNSUBSCRIBE will be stored in the selectedValue context attribute.

Hope this helps. you can refer the following article for more details

[http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d0aba847-ff58-2c10-4a98-c0fad334c5aa]

BR, Saravanan

Former Member
0 Kudos

Dear Saravanan,

Your suggestion is excellent. Its hit.

Rewarded full points.

Thanks & Regards,

Siva Mandapudi.

Edited by: SIVAMANDAPUDI on Jul 15, 2011 8:09 AM

Answers (0)