Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

cl_gui_textedit with fixed lines

former_member216100
Participant
0 Likes
711

Dear All,

I'm using cl_gui_textedit that the user can add

some text.

Now we need to restrict it max 5 lines and max 40 per line

so a max of 200 char.

I use at the moment

CREATE OBJECT g_editor
          EXPORTING
           parent = g_editor_container
           wordwrap_mode =
              cl_gui_textedit=>wordwrap_at_fixed_position
           wordwrap_position = 40
           MAX_NUMBER_CHARS  = 200
           wordwrap_to_linebreak_mode = cl_gui_textedit=>true.

but now if the user dont fill every line until 40 he can write

much more than 5 lines.

I know I can finaly ask with

CALL METHOD g_editor->get_line_count

the count of lines but if possible I want to restrict it

before he press save button.

I tried also to fill the 5 lines with space but does not work

any idea ?

Please help... thanks

Is this possible ? Or can I fill

2 REPLIES 2
Read only

Former Member
0 Likes
512

Hi

Set it in the simple data type length or else try it in length property of inputfield.

With Regards

Nikunj Shah

Read only

former_member216100
Participant
0 Likes
512

Sorry I do not understand what I should do.

Here how my internal table is build.


   DATA:     G_MYTABLE(LINE_LENGTH) TYPE C OCCURS 0,
    WA_MYTABLE(LINE_LENGTH),

    DO 5 TIMES.
      WA_MYTABLE(LINE_LENGTH) = SPACE.
      APPEND WA_MYTABLE TO G_MYTABLE.
    ENDDO.

please let me know what I should do