on 06-12-2015 8:28 AM
Hi,
New to Web dynpro. Am creating Radio buttons dynamically but the texts for all created radio buttons am getting same. Here s the code.
LOOP AT lt_desc INTO ls_desc.
lv_cnt = sy-tabix.
lo_el_search->set_attribute(
EXPORTING
value = ls_desc-gstxt
name = 'GSTXT' ).
lo_el_search->set_attribute(
EXPORTING
value = lv_cnt
name = 'DEFRAD' ).
CALL METHOD cl_wd_radiobutton=>new_radiobutton
EXPORTING
bind_key_to_select = 'SEARCH.DEFRAD'
bind_selected_key = 'SEARCH.OPTION'
bind_text = 'SEARCH.GSTXT'
RECEIVING
control = lv_radbut.
lv_matdata = cl_wd_matrix_head_data=>new_matrix_head_data( lv_radbut ).
lr_container->add_child( lv_radbut ).
ENDLOOP.
Please find me an answer.
Hi Koushik,
What is 'SERACH.GSTXT'. Check this once in debugging and also make sure to clear it at the end of the loop. It should help you.
BR,
RAM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.