on 08-29-2013 1:54 PM
I have a question about pasting content into a textEdit element, and the subsequent (unintended) conversion of that data.
The best way to viuslaize this might be to think of a simple component as follows:
create a new web dynpro component
add an attribute of type string to the view context
add a textedit element and bind to the string
add a button with a dummy action to force interaction
that'll do
create the application and run it
Copy, then paste in, apostrophe’d text from different sources like
from Notepad, Word, etc. (ymmv))
Hit the button.
From some sources, (Word for me) my pasted in text converts, from say
‘can’t’ to ‘can#t’
When pasting from Notepad, it stays the same
I want to
a) understand more about this
b) know how I can maintain the integrity of what the user has pasted in a more consistent manner
Thanks…
Hi Mike,
To retrieve the user entered data in the same format can be attained
The following are the steps which I followed in attaining the user entered format.
Points please if helpful
Regards
Subhash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mike, it worked in my program, you can find the same in the below screen shots
I have used the below code it worked!
* while saving entered comments into data base
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = ls_remarks-description
IMPORTING
buffer = ls_remarks-ACTDEC "RAWSTRING format declared in table
EXCEPTIONS
failed = 1.
* while retrieving the entered comments from data base table
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
in_xstring = ls_comments-ACTDEC
IMPORTING
OUT_STRING = ls_comments-DESCRIPTION. "string format
Hope this helps.
Points please if helpful
Regards
Subhash
User | Count |
---|---|
85 | |
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.