?
Solved

creating text area

Posted on 2005-05-06
2
Medium Priority
?
691 Views
Last Modified: 2013-12-08
Hi Guys,
        How to create a large text area in dialog screens. Not that of the size of a text box. A larger one just as that of the size of this question body one.

Thanx and Regards,
Ravi Kumar.
0
Comment
Question by:Ravikumarv
  • 2
2 Comments
 
LVL 10

Expert Comment

by:jonvaughan
ID: 13953207
You have to use the text area GUI  control.

Create an area on your Screen and fill it with the text area control ...

Jon
0
 
LVL 10

Accepted Solution

by:
jonvaughan earned 375 total points
ID: 13955881
Once you have created the container on the screen - in this case it is called SC_CONT_9000
you then create the control

* create container
  if gv_custom_container is initial.
    create object gv_custom_container
     exporting container_name = 'SC_CONT_9000'.


* create text control
    create object gv_text_editor
       exporting
            parent = gv_custom_container
            wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
            wordwrap_to_linebreak_mode = cl_gui_textedit=>false
       exceptions
            error_cntl_create      = 1
            error_cntl_init        = 2
            error_cntl_link        = 3
            error_dp_create        = 4
            gui_type_not_supported = 5.


    call method gv_text_editor->set_toolbar_mode
         exporting
              toolbar_mode = gv_text_editor->true
         exceptions
              error_cntl_call_method = 1
              invalid_parameter      = 2
              others                 = 3.


    call method gv_text_editor->set_statusbar_mode
         exporting
              statusbar_mode = gv_text_editor->false
         exceptions
              error_cntl_call_method = 1
              invalid_parameter      = 2
              others                 = 3.


    call method gv_text_editor->set_readonly_mode
             exporting
                  readonly_mode = gv_text_editor->true
             exceptions
                  error_cntl_call_method = 1
                  invalid_parameter      = 2
                  others                 = 3.

** you then need to get your text ...

** then convert it to a stream
* convert itf text to stream text
  call function 'CONVERT_ITF_TO_STREAM_TEXT'
       tables
            itf_text    = perm_tlinetab
            text_stream = lt_text_table.


* add it to the control
  call method gv_text_editor->set_text_as_stream
       exporting
            text = lt_text_table
       exceptions
            error_dp        = 1
            error_dp_create = 2
            others          = 3.


0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello All, In previous article we used Hortonworks sandbox to work with Hadoop. Now, lets think to create own single node Hadoop on Linux. Here we Install and Configure Apache Hadoop on UI based Oracle Linux. I assume, you have VMware installe…
I showed you how to use console view (HERE (http://www.experts-exchange.com/articles/18379/Getting-Started-and-Using-the-Salesforce-com-Console.html)) -– but how do you set it up on the admin side of Salesforce? Note that you have to have Admin leve…
Loops Section Overview
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question