on 03-21-2014 9:28 AM
Dear friends,
In one of my component, i want to use long text, user will enter more than 2000 characters, this text i want to save and later i have use in the smart form
could any one please help me
Thanks
Vijaya
Hi Vijaya,
You can achieve your requirement as below
- create a data element zde_long_text of type CHAR with length 2000
- Add a field my_long_text in ZTABLE by using data element zde_long_text
- Now, create an attribute in context by using field MY_LONG_TEXT
- Create ui element TEXTEDIT or FormattedTextEdit to enable user to enter long text and bind the value to context attribute MY_LONG_TEXT
- Save data to ztable and later you can retrieve it whenever required
Hope this helps you.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijaya,
I think you have not bind the property VALUE of text edit ui element to the context attribute. Hence on OK button action, the values are getting cleared.
Please check the binding once. If binding is fine, then check if you are setting the context attribute's value on ACTION.
If the issue still exists, please share the snap shot of text ui element property.
Regards,
Rama
Hi Vijaya,
Oh, I can create the domain with 2000 chars in my system.
There are standard domains available with length 2000,
Try to search the domain as below
Now, you should get some domains, use them
If you don't find it, we have no choice you have to go with the length suggested by system.
Hope this helps you.
Regards,
Rama
Hi Vijaya,
You can also store your string in parts in a table where each part is a size which is allowable by your system.
One of the ways in which I have done something similar to your requirement is save comments in 1002 info type. This info type stores long comments in parts. It basically has the provision of dividing a large string into small parts which linked together.
You can try something similar to this. There are some function modules which can help you achieve this.
Regards,
Karan
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.