Skip to Content
author's profile photo Former Member
Former Member

anyone know how to display a bullets for texts in Webdynpro abap.

Hi Colleagues,

did anyone know how to display a bullets for a texts in webdynpro ABAP. As shown below.

u2022 Text1

u2022 Text2

Best regards,

Madhu

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2011 at 11:19 AM

    Hi Madhu,

    To do it dynamically, follow these steps:-

    1. Create a textedit UI element on your view(check for read only property if u want it to be input disabled).

    2. Create an attribute in view context, say ATT1 with type STRING_TABLE.

    3. Bind ATT1 with the value property of the viewedit UI element.

    4. In WDDOINIT generate the code to set code wizard. e.g.

    method WDDOINIT .
    data: text type string_table.
    append 'u2022	Hello' to text.
    append 'u2022	Hi' to text.
    append 'u2022	Good morning' to text.
    
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->Element_context.
        DATA lv_att1 TYPE wd_this->Element_context-att1.
    
    *   get element via lead selection
        lo_el_context = wd_context->get_element( ).
    
    *   set single attribute
        lo_el_context->set_attribute(
          name =  `ATT1`
          value = text ).
    endmethod.

    You can copy bullets from MS Word. This will surely help, let me know if you face any issues.

    Regards

    Gaurav

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2011 at 07:23 AM

    Hi madhu,

    If you want to do it at runtime, you can use a text view. It provides facility for bullets.

    Thanks

    Gaurav

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.