cancel
Showing results for 
Search instead for 
Did you mean: 

Radio button in Table - invisible at runtime

Former Member
0 Kudos

Hi all ,

I have a requirement where i have to include radio button in a table .

I have to make radio buttons invisible for some rows .

How can this be achieved ?

Thanks

Supriya

Accepted Solutions (1)

Accepted Solutions (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Supriya,

In the context node (that is bound to the table ui element), create an attribute of type WDUI_VISIBILITY. while populating the data for the context node, set the value for this attribute either '01' (for invisible) or '02' (for visible).

And for the visible property of the Radio button, bind the above created context attribute.

BR, Saravanan

Former Member
0 Kudos

But how do i do it @ runtime ..

I mean how do i loop it and exactly at say 5th , 10th position set the attribute ...

saravanan_narayanan
Active Contributor
0 Kudos

Sorry I didnt get your question. if you want to loop through the context elements of the node that is bound to the table then you have to use get_elements() method of the IF_WD_CONTEXT_NODE. If you want to set the value of particular element then use get_element() method of the IF_WD_CONTEXT_NODE

BR, Saravanan

former_member184578
Active Contributor
0 Kudos

Hi.,

While looping the table if index = 5 or index = 10.

using set attribute you disable the radio button.,

also you can use cell variants: check this wiki: [Cell Variants in WDA|http://wiki.sdn.sap.com/wiki/display/WDABAP/WebDynproforABAPCellVariants]

hope this helps u.,

Thanks & Regards,

Kiran

Answers (0)