cancel
Showing results for 
Search instead for 
Did you mean: 

How to group radiobuttons in webdynpro ABAP?

former_member210804
Active Participant
0 Kudos

Hi sir,

I am using the UI element radiobutton. here, I want to group 5 radiobuttons.

pls give me some clue.

Thanks & regards,

Narasimha Rao Putturi.

Accepted Solutions (0)

Answers (3)

Answers (3)

jeff_karls
Participant
0 Kudos

The radio button gets selected when the value in the key to select is same as the value in the selected key.  Both property Selected key and Key to select are bindable to an attribute of type string.

JanarthananE
Contributor
0 Kudos

Hi,

Try to use radiobutton group by index UI element. Have a node in the context element with cardinality 0..n and have an attribute text type string. In the properties of the node provide the supply function as "fill_the_node". Bind this node to the radiobuttongroupbyindex UI element.

In the fill_the_node method.

data : node type ref to if_wd_context_node,

         elem type ref to if_wd_context_element.

data : it type table of if_view=>element_node,

         wa like line of it.

wa-text = 'radiobutton1'.

append wa to it.

wa-text = 'radiobutton2'.

append wa to it.

wa-text = 'radiobutton3'.

append wa to it.

wa-text = 'radiobutton4'.

append wa to it.

wa-text = 'radiobutton5'.

append wa to it.

wa-text = 'radiobutton6'.

append wa to it.

node->bind_table( it ).

In this way you can have 6 radiobuttons on the browser.

Or if u have any confusion refer the following step by step process to create Radiobuttongroup By index UI element,

http://www.saptechnical.com/Tutorials/WebDynproABAP/TextRadioButton/page1.htm

Hope its useful to u,

Regards

Jana

chengalarayulu
Active Contributor
0 Kudos

instead, you can use radiobuttongroupbyindex.

former_member210804
Active Participant
0 Kudos

Hi sir,

If i use radiobuttonbyindex , radio buttons are displaying in column wise. But i want them to display in row wise.and then i want to get the perticular index for the radiobutton.

Pls tell me what to do

Thanks & regards,

Narasimha Rao Putturi.

Former Member
0 Kudos

The radiobuttonbyindex UI has a property ColCount set it to the number of radio buttons you want to be displayed in a row as shown in the below image.

Thx

Phani