cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use radio buttons in a table Column in webdynpro ABAP ?

former_member215561
Participant
0 Kudos

How can I use radio buttons in a table Column in webdynpro ABAP ?

please see the attachment, I am getting all the radiobuttons as selected.

Accepted Solutions (1)

Accepted Solutions (1)

former_member194152
Contributor
0 Kudos

Check program : WDR_TEST_TABLE

VIEW : TABLE_CELL_EDITORS

Answers (5)

Answers (5)

former_member213957
Participant
0 Kudos

Hi Gagan,

You can follow either one of the option:

1.As per sap guidelines using radio button or checkbox in the table is not good. because via lead selection u can do the same . The way like select the record via lead select and create a buttons on the toolbar of the table and perform the same actions whatever u want. But if u want display whether record selected or not, simply display the text like accepted or not accepted instead of checked or unchecked radio/checkbox. For the text create one attribute with the type string fill manually. check the latest sap webynpro guidelines document .....

2. just follow your way,,if u really want like that

create one attribute with the type WDY_boolean. And after creating the table and binding, call the method

GET_STATIC_ATTRIBUTES_TABLE in wddoint  view method.so that you can get the currently selected radio button from that you can code according to your requirement.

Regards,

Kishorekumar

former_member215561
Participant
0 Kudos

I have opted the recommended option that not to use radio buttons, 

thanks for all the suggestions 

Former Member
0 Kudos

Hi deric,

You have to create one attribute with the type WDY_boolean.

And after creating the table , create binding. in the binding you need to select the radio button.

then in WDINIT method you can fill the table .

Then Use the method GET_STATIC_ATTRIBUTES_TABLE

CALL METHOD LO_ND_NODE->GET_STATIC_ATTRIBUTES_TABLE
*            EXPORTING
*              FROM   = 1
*              TO     = 2147483647
             IMPORTING
               TABLE  = ls_node.

so that you can get the currently selected radio button from that you can code according to your requirement.

Regards,

Ramya Ramasamy

Former Member
0 Kudos

Hi Deric,

Add an attribute(say FLAG type WDY_BOOLEAN) to the context node holding the table data.

Add a column to the table. Add a cell editor of type radio button and bind the property selectedKey with the attribute created earlier.

Set the value to 'X' if you do not want it to be checked and vice versa.

Hope it helps.

Regards,

Sayan

Former Member
0 Kudos

I am not sure if you can have radio buttons but you may have check boxes. anyways its interesting please try to do it using ALV styles.

vinoth_aruldass
Contributor
0 Kudos

hi

google it out many documents are available both sdn and google.

hopw it helps,

Vinoth