cancel
Showing results for 
Search instead for 
Did you mean: 

Adding UIElement only when a certain rabiobutton is selected

Former Member
0 Kudos

Hi,

I would like to know if its possible to add a new Group UIElement with checkboxes inside it, if a certain radiobutton is selected and when another radio button is selected this group will disappear ...

I will have to play with the method action onSelect...

Thanks !

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi Benjman,

Hi Benjman,

U can do this., first create check box ui element also and bind visibility to an attribute.. then in onSelect of radio button show tat else hide tat..

[Show/Hide UI Elements|http://wiki.sdn.sap.com/wiki/display/WDABAP/SimpleapplicationtochangepropertiesofUIElementsduringruntimeinWebDynpro+ABAP]... refer this link

Reply if u need some more clarifications.,

Thanks & Regards

Kiran

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I am not sure how dynamic the creation of UI elements at runtime. If there are no dynamic involved you could follow the suggestions already provided to play with visibility of the group.

In case of dynamic UI creation. You need to save the instance of the view from wddomodifyview.

Using this view instance create ui elements at onSelect event handler method.

There are several examples /code snippets available on scn. Search that. If you have trouble with that then post it here again in detail.