on 07-22-2009 12:06 PM
is within WD UI Element availablw where by I can display a text with many lines ?
Regards
Marco M
Hi,
TextEdit uielement is available, which is like a text area; user can enter free text in para's,multiple lines ,etc.
Steps:
Like any other uielement, right click and insert the textedit uielement on your view.
Create an attribute 'CA_TEXT' type string and bind it with the value property of your text edit.
Change the cols and row property to adjust your text edit width and height.
Use the following code to read the contents entered in the test edit,
Regards,
Radhika.
Data: l_elem type ref to if_wd_context_element.
Data: l_text type string.
l_elem = wd_context->get_element( ).
l_elem->get_attribute( exporting name = 'CA_TEXT'
importing value = l_text }. "l_text will now have the contents of your text edit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marco,
For that case use set_attribute method instead of get_attribute;
Regards,
Radhika.Data: l_elem type ref to if_wd_context_element.
Data: l_text type string.
" select you data from data base
select single ... into l_text...
l_elem = wd_context->get_element( ).
l_elem->set_attribute( exporting name = 'CA_TEXT'
value = l_text }. "l_text is your output of select query
Hi Marco,
The answer is yes. You can make use of the [TextEdit |http://help.sap.com/saphelp_nw70/helpdata/en/6a/a6884121a41c09e10000000a155106/content.htm] UI element for the same. You can find examples in the system in the Web Dynpro application, WDR_TEST_UI_ELEMENTS.
Regards,
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.