on 07-31-2009 12:05 PM
Hi ,
I am dynamically generating a text edit . I want text ( user comments ) to appear in the dynamic text edit .
I m having a field in data base table which stores the user comments , but I am not getting , how the text would appear
in the dynamically generated UI elements .
Any reference source code or pointers would work .
Regards,
amit
have to set the attribute of the dynamic node
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Regards,
Radhika.lr_textedit = cl_wd_text_edit=>new_text_edit( id = l_id " Provide a unique id to your textedit element
cols = 71 " Specify the number of columns
rows = 5 " Specify the number of rows
bind_value = l_attr ). " l_attr is your attribute name
lr_textedit->set_enabled( abap_false ).
cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_textedit
height = '100px' ).
* Add textEdit elements as children to the GROUP element
lr_group->add_child( the_child = lr_textedit ).
" set value
l_node->set_attribute( EXPORTING name = l_attr " l_attr
value = l_text ). "l_text holds the data fetched from database table
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.