cancel
Showing results for 
Search instead for 
Did you mean: 

UI which can accept 10,000 characters

Former Member
0 Kudos

HI,

I have requirement to take around 10,000 characters from user. I have used TextEdit UI

but there is a limitation for this U.

It accepts only 1000 characters even if the attribute to which it has binded has length 10,000 characters.

If I enter more than 1000 character, it gives me error u201CValue Is too large"

How to overcome such error? Any other UI which can be used to satisfy the requirement?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Check whether the Office control UI element suits you ?

Former Member
0 Kudos

I do not want to display. I want input from USER.

Text View will not help in my requirement.

Former Member
0 Kudos

Hi,

Ok. I dont know any ui element takes that much text.

I have an idea, you are saying textedit taking 1000 right. Take 10 text edit UI elements side by side or one by one.

while saving CONCATENATE all textedit data into one string, and save it. Hope it helps.

Cheers,

Kris.

Former Member
0 Kudos

NO, this solution is not good.

User can not validated the characters they have to enter in one TextEdit UI. ultimately at last, it will land in error for Valur is large.

Former Member
0 Kudos

Hi shefali,

I dont know it is working for 10,000. I never tried such long text. But you can try this.

Create one TEXTVIEW UI Element.

Create one attribute of type STRING and bind this to textview property.

and write this code to get text.

DATA lo_el_context TYPE REF TO if_wd_context_element.
  DATA ls_context TYPE wd_this->Element_context.
  DATA lv_string TYPE wd_this->Element_context-string.

* get element via lead selection
  lo_el_context = wd_context->get_element( ).

data text1 type string.

CONCATENATE 'sdhfsdjfhsdkfhsdsdfhsdjfhsdkfsdkfhssdfsdfdsfsdfsddfdfgdfg'
'fgdfgggggggggggggggggggggggggggggggggggggggggggggdfgdfgdfg'
'dfgfdddddddddddddddddddddddddddddddddddddddddddddddddddddgdfg'
'dfgggggggggggggggggggggg' into text1.

* set single attribute
  lo_el_context->set_attribute(
    name =  `STRING`
    value = text1 ).

Cheers,

Kris.