Skip to Content
avatar image
Former Member

display a text with many lines

is within WD UI Element availablw where by I can display a text with many lines ?

Regards

Marco M

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 22, 2009 at 11:18 AM

    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,

    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.
    Regards, Radhika.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 22, 2009 at 11:07 AM

    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

    Add comment
    10|10000 characters needed characters exceeded