on 06-27-2007 2:52 AM
regards ,
Hi. You can use TextView or TextEdit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Blake,
I created a context attribute "TEXT" of type string, created a textview and bound it to this attribute.
as you have done I used the following code to set data into it
DATA lo_el_context TYPE REF TO if_wd_context_element.
get element via lead selection
lo_el_context = wd_context->get_element( ).
DATA: crlf(2) TYPE c,
lv_text TYPE string.
crlf = cl_abap_char_utilities=>cr_lf.
......
CONCATENATE 'aaaa' 'bbb' 'cc' 'd' INTO lv_text SEPARATED BY crlf.
lo_el_context->set_attribute(
EXPORTING
name = `TEXT`
value = lv_text ).
It works perfectly and I get output just as you want. Please check if you have followed all the steps, there is nothing wrong in the approach you have followed.
Regards,
Shweta
Also, you may have to check the "WRAPPABLE" option for text to automatically come to next line
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello everyone
I have the same problem where a string contains CR_LF but at the WD does shown #.
Example:
the problem is that I have a string like the following :
aaaa
bbbb
ccc
ddd
I wanna to show it in the textview and it seems to be ##aaaa##bb##cc##dd
not that I was expected .
Is anyone found a solution?
Regards
dstj
hi blake,
text view can show a multiline text ...but it is "read only ".
if you want to edit also then you should go for textedit...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the UI Element Explanation. The UI element explanation is used to display single-line or multi-line help texts for UI element or a Web Dynpro application.
You can find more information about this element at:
<a href="http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_SCLASS=IWB_STRUCT&_SLOIO=7C3545415EA6F523E10000000A155106&TMP_IWB_TASK=DISPLAY&RELEASE=688&LANGUAGE=EN&_SEQNUM=433&_LOIO=A942C041E125C917E10000000A155106&_CLASS=IWB_EXTHLP">http://aiokeh.wdf.sap.corp:50000/SAPIKS2/contentShow.sap?_SCLASS=IWB_STRUCT&_SLOIO=7C3545415EA6F523E10000000A155106&TMP_IWB_TASK=DISPLAY&RELEASE=688&LANGUAGE=EN&_SEQNUM=433&_LOIO=A942C041E125C917E10000000A155106&_CLASS=IWB_EXTHLP</a>
Best regards,
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.