on 06-09-2010 8:11 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.