on 05-05-2011 1:02 PM
Hi Experts,
I have internal table wich has field (type STRING).
Value field is for example ' <?p?>?line1?<?/?p?>?<?p?>?line2?</p>?' Without '?'
It means that value in one cell of the table should be so :
line1
line2
I cannot to use FormattedTextView for table column.
What I can to use instead this?
Thanks in advance
Evgeniy
Edited by: Evgeny Vazhev on May 5, 2011 2:03 PM
Edited by: Evgeny Vazhev on May 5, 2011 2:04 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you.
> It works ok. But how to replace others tags and save format?
> May be any methode for convertion?
Perhaps you could expand on what you mean. You could with a regular expression remove all XHTML tags pretty easily. There is no way to present other formatting options, however. The TextView simply can't handle formatting and any UI element that could present formatting can't be used within the Table as a Cell Editor.
>It's so much different tags
That's why I suggested a regular expression for the replace. With regular expression you can match on any begin/end tag marker regardless of the inner content. Here are some examples of such regular expressions:
http://weblogs.asp.net/rosherove/archive/2003/05/13/6963.aspx
Since you can't use the formatted UI elements, you will need to remove the XHTML formatting. I would suggest perform text replacement and removing the
<p>
completely and replacing the
</p>
with cl_abap_char_utilities=>cr_lf.
Try that with the textView. If the carriage return isn't used in the text view, you might swap the UI element to a disabled textEdit UI element instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.