on 10-05-2011 4:50 PM
HI!
I have a script requirement to read the text from a big text box.
I have found a function called "getTextString(session)" which does do this but it returns an html formatted string with lots of formatting information wrapped around the payload string...
Does anyone know of a way to get just the plain text string returned without any formatting?
Thanks!
Hi,
try getTextPreview(). This would return the first 1000 characters without formatting information. If this is not sufficient guess you may have to do some custom code there..
Thanks,
Baski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm afraid getTextPreview() does not seem to be available in Version 7, but thanks for the suggestion.
Doing some more research ourselves we have found another class named com.sap.eso.api.doccommon.ont.types.BigTextValueIBeanIfc which has a function to get the string value called "getValueAsString()" but I have no idea how to access this object...
Thanks,
Stuart
My mistake... Looks like a such an api doesn't exist..
You can potentially use java regex api do something simillar i guess..
http://www.codeproject.com/KB/HTML/HTML_to_Plain_Text.aspx This examples seems complex but you can trim it down and make it simpler than this.
Thanks, Baski
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.