<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: custom control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2678755#M619019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use FormattedTextView for displaying text with multiple lines. It also supports formatting options like bold, italic as well as more fancy stuff like bullet lists, etc. It's basically xhtml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Omkar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2007 06:33:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-16T06:33:33Z</dc:date>
    <item>
      <title>custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2678754#M619018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;i need to create a text field in which there could be enter multiple line and all the line should be visible.(on a screen &lt;SPAN __jive_macro_name="dynpro"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;so tell me how to go about the same &lt;/P&gt;&lt;P&gt;what is the name of class to be used&lt;/P&gt;&lt;P&gt;and what would be the coding for this&lt;/P&gt;&lt;P&gt;please help me with that also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points ll be surely awared&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 06:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2678754#M619018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T06:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2678755#M619019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use FormattedTextView for displaying text with multiple lines. It also supports formatting options like bold, italic as well as more fancy stuff like bullet lists, etc. It's basically xhtml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Omkar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 06:33:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2678755#M619019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T06:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2678756#M619020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Omkaram,&lt;/P&gt;&lt;P&gt;thanks for early reply&lt;/P&gt;&lt;P&gt;byt will this work in my case  even&lt;/P&gt;&lt;P&gt;i have  to also store  the data in the data base table also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me with some coding&lt;/P&gt;&lt;P&gt;also explain me about&lt;/P&gt;&lt;P&gt;FormattedTextView &lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 08:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2678756#M619020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T08:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: custom control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2678757#M619021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anuj, first put a custom container on your screen, here the CC has been name MY_TEXT, fell free to explore the attributes and methods of these class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after in the PBO you have to do,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF g_editor IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  create control container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE OBJECT g_editor_container&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;            container_name = 'MY_TEXT'&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;            cntl_error = 1&lt;/P&gt;&lt;P&gt;            cntl_system_error = 2&lt;/P&gt;&lt;P&gt;            create_error = 3&lt;/P&gt;&lt;P&gt;            lifetime_error = 4&lt;/P&gt;&lt;P&gt;            lifetime_dynpro_dynpro_link = 5.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     add your handling&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   g_mycontainer = 'MY_TEXT'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  create calls constructor, which initializes, creats and links&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TextEdit Control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE OBJECT g_editor&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;           parent = g_editor_container&lt;/P&gt;&lt;P&gt;           wordwrap_mode =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            cl_gui_textedit=&amp;gt;wordwrap_off&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              cl_gui_textedit=&amp;gt;wordwrap_at_fixed_position&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            cl_gui_textedit=&amp;gt;WORDWRAP_AT_WINDOWBORDER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           wordwrap_position = 256&lt;/P&gt;&lt;P&gt;           wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD g_editor-&amp;gt;set_toolbar_mode&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        toolbar_mode = cl_gui_textedit=&amp;gt;false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD g_editor-&amp;gt;set_statusbar_mode&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        statusbar_mode         = cl_gui_textedit=&amp;gt;false&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        error_cntl_call_method = 1&lt;/P&gt;&lt;P&gt;        invalid_parameter      = 2&lt;/P&gt;&lt;P&gt;        OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD g_editor-&amp;gt;set_readonly_mode&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        readonly_mode = cl_gui_textedit=&amp;gt;true.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD g_editor-&amp;gt;set_text_as_r3table&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      table  = gt_text&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF gt_text IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    CALL METHOD g_editor-&amp;gt;highlight_lines&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        from_line      = 1&lt;/P&gt;&lt;P&gt;        highlight_mode = cl_gui_textedit=&amp;gt;true&lt;/P&gt;&lt;P&gt;        to_line        = 2&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        OTHERS         = 0.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI, you have to put something in the GT_TEXT table then it will be display on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to declare this variables also:&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;      g_editor TYPE REF TO cl_gui_textedit,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  reference to custom container: necessary to bind TextEdit Control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      g_editor_container TYPE REF TO cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;     gt_text                 TYPE STANDARD TABLE OF char80s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 13:21:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-control/m-p/2678757#M619021</guid>
      <dc:creator>AlexGiguere</dc:creator>
      <dc:date>2007-08-16T13:21:11Z</dc:date>
    </item>
  </channel>
</rss>

