cancel
Showing results for 
Search instead for 
Did you mean: 

Bullet in text

0 Kudos

I created a web dynpro.

One of the screens have 2 notes.

I want these notes to appear in bullets.number.

Example

1( or bullet) note1.

2 (or bullet) note2.

I use the following code.

It work,the code move to the right for the bullet, just without the bullet.

data: type ref to cl_wd_formatted_text,

anote type ref to CL_WD_FORMATTED_TEXT,

btext type ref to CL_WD_FORMATTED_TEXT,

tag TYPE string.

note = 'The date of payment will depend on when your line manager approves the request.'.

f1 = cl_wd_formatted_text=>make_text(

inner_text = note

tag = cl_wd_formatted_text=>e_tag-ul "bullet

  • tag = cl_wd_formatted_text=>e_tag-ol "number

  • tag = cl_wd_formatted_text=>e_tag-em "italic

).

wd_context->set_attribute( name = 'NOTE' value = f1->m_xml_text ).

Thanks

Frances

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Try using the following code:


f1 = cl_wd_formatted_text=>make_text(
inner_text = note
tag = cl_wd_formatted_text=>e_tag-li 

).

f1 = cl_wd_formatted_text=>make_text( 
 inner_formatted_text = f1
 tag = cl_wd_formatted_text=>e_tag-ul ).

This will display the text with bullet. If you want numbered list, then change tag in the second call to cl_wd_formatted_text=>e_tag-ol.

Hope this helps!

Regards,

Srilatha M

Answers (0)