cancel
Showing results for 
Search instead for 
Did you mean: 

Display more records in web dympro texedit

Former Member
0 Kudos

hi,

i have an abap webdynpro with a text edit. The ui element is bind with a table that have a string field. I have to value the text edit with more records. I have write this code but in web dynpro i see only last record:

DATA: o_node TYPE REF TO if_wd_context_node,

o_element TYPE REF TO if_wd_context_element.

DATA: t_testi TYPE table t002t.

DATA: v_testo type string.

LOOP AT t_testi INTO f_testi.

CONCATENATE f_testi-testo ' '

INTO v_testo SEPARATED BY cl_abap_char_utilities=>newline.

o_element = o_node->create_element( ).

o_element->set_attribute( name = 'EDIT'

value = v_testo ).

o_node->bind_element( new_item = o_element ).

ENDLOOP.

Where is the error !?!?!?!? Any one know the solution??

Thaks .

Laura.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hI,

use the following code.

just use the SET_INITIAL_ELEMENTS = abap_false.

It will solve the problem.

LOOP AT t_testi INTO f_testi.

CONCATENATE f_testi-testo ' '
INTO v_testo SEPARATED BY cl_abap_char_utilities=>newline.

o_element = o_node->create_element( ).

o_element->set_attribute( name = 'EDIT'
value = v_testo ).

o_node->bind_element( new_item = o_element  SET_INITIAL_ELEMENTS = abap_false ).
ENDLOOP.

0 Kudos

I guess .... concatenate is wrong.. check this

CONCATENATE v_testo f_testi-testo ' '

INTO v_testo SEPARATED BY cl_abap_char_utilities=>newline.