cancel
Showing results for 
Search instead for 
Did you mean: 

Hi experts

0 Kudos

how can i get the radios and select-options side by side in webdynpro

      i have attached the screen shot please look into

requirement is when user selects one radio button only one select-options should be

displayed and remaining should be invisible

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

Use Matrix layout, create 2 transparent containers, set the layout of first container with Matrix Head Data and place the radio buttons in it, and set the layout of another container with matrix data and place View Container UI element in it to place select options. ( you may have to adjust the height/ vAlign of Transparent container inorder to appear it next to the radio buttons)

OR, Instead of using select options, you can create 2 input fields next to each radio button and build the range table based on the values in the input fields( You will miss select options extensions in this case).

hope this helps u,

Regards,

Kiran

0 Kudos

Hi kiran

i Got it but how can i remove the text beside the radio button

i am using the radiobuttongroupbyindex

former_member184578
Active Contributor
0 Kudos

Hi,

You can set the empty text to the radio button. Or just append initial line the initial line.

Write the below code in WDDOINIT method:


DATA lo_nd_radio TYPE REF TO if_wd_context_node.

     DATA lt_radio TYPE wd_this->elements_radio.

*   navigate from <CONTEXT> to <RADIO> via lead selection

     lo_nd_radio = wd_context->get_child_node( name = wd_this->wdctx_radio ).

     APPEND INITIAL LINE TO lt_radio.

     APPEND INITIAL LINE TO lt_radio.

     APPEND INITIAL LINE TO lt_radio.

     APPEND INITIAL LINE TO lt_radio.

     lo_nd_radio->bind_table( new_items = lt_radio set_initial_elements = abap_true ).

Regards,

Kiran

0 Kudos

Hi kiran  i tried from code

former_member184578
Active Contributor
0 Kudos

Hi,

Which version you are on? I tried the code mentioned in my earlier reply and it's working without displaying any text next to radio button.

Regards,

Kiran

0 Kudos

Hi  Kiran i Got My self instead of using the radiobuttongroupofindex I used

radiobuttongroupbykey

Could you please help how to hide the select-option fields in webdynpro

there are four radio buttons

for every radiobutton there is corresponding  select_option filed is associated to it

user as only provision  to select  one radio button and reset of the select-option fileds should be hidden

which ever the radio button is selected ONLY corresponding  select-options fileld should be displayed

please find the attachement below

former_member184578
Active Contributor
0 Kudos

Hi,

Please check this document  . This will help.

Regards,

Kiran

0 Kudos

Hi kiran

Thankyou for help.

ramakrishnappa
Active Contributor
0 Kudos

Hi,

If you hide the selection fields, you are going to loose the alignment i.e. when you select RADIO button 4, only CUSTOMER selection field is visible and it comes on top... so always you will be having one selection field.

Hence I suggest you to go with enable / disable of selection fields based on radio button selection.

Please refer the below document

Hope this helps you.

Regards,

Rama