cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro ABAP formatted text view...

Former Member
0 Kudos

Hi,

Is it possible to give table of values in fromatted text view...........

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

This UI element is used to display formatted text using a simple, XML-compatible syntax. You can use a FormattedTextView to simply and quickly format larger sections of texts, for example, an introduction or copyright information. The text may contain links, images or structured lists.

  If you want to display like table of values you can use the XML tag <br/> to give line break

  So that the text appears like table of values.See the code below which displays WEBDYNPRO

   and ABAP in two different lines.

DATA lo_nd_text_view TYPE REF TO if_wd_context_node.
     DATA lo_el_text_view TYPE REF TO if_wd_context_element.
     DATA ls_text_view TYPE wd_this->element_text_view.

*   navigate from <CONTEXT> to <TEXT_VIEW> via lead selection
     lo_nd_text_view = wd_context->get_child_node( name = wd_this->wdctx_text_view ).

*   get element via lead selection
     lo_el_text_view = lo_nd_text_view->get_element(  ).


      ls_text_view-text = 'WEBDYNPRO<br/>ABAP'.
    
      lo_nd_text_view->bind_element( ls_text_view ).

For more info on Formattedtextview and its Suppoted XML tags follow the link:

http://help.sap.com/saphelp_nw70ehp2/helpdata/en/3b/219141c1d0ae5fe10000000a1550b0/content.htm

http://help.sap.com/saphelp_nw70ehp2/helpdata/en/08/5696420cc2c56ae10000000a155106/content.htm