Show text editor

is it possible to show a text editor in a container?

Hi,
S u can do it.
Check below code. In screen 200 create a custom control with name 'TEXT_EDIT'.
REPORT  ZPARA1.
DATA: ok_code TYPE sy-ucomm.
CLASS cl_gui_cfw DEFINITION LOAD.
DATA: obj_custom_container TYPE REF TO cl_gui_custom_container,
           obj_textedit TYPE REF TO cl_gui_textedit.
call screen 200.
MODULE status_0200 OUTPUT.      " PBO module of screen 200
IF obj_custom_container IS INITIAL.
      CREATE OBJECT obj_custom_container
      EXPORTING
      container_name = 'TEXT_EDIT'                              " Custom control name in screen 200
      EXCEPTIONS
      cntl_error = 1
      cntl_system_error = 2
      create_error = 3
      lifetime_error = 4
      lifetime_dynpro_dynpro_link = 5
      OTHERS = 6.
      CREATE OBJECT obj_textedit
      EXPORTING
      max_number_chars = 1000
      parent = obj_custom_container
      EXCEPTIONS
      error_cntl_create = 1
      error_cntl_init = 2
      error_cntl_link = 3
      error_dp_create = 4
      gui_type_not_supported = 5
      OTHERS = 6.
  ENDIF.
  CALL METHOD obj_textedit->set_focus
    EXPORTING
      control = obj_textedit.
ENDMODULE.
Edited by: Sap Fan on Sep 9, 2009 2:27 PM

Similar Messages

  • Rich Text Editor not showing up

    Hi. I've installed OracleAS 10g Rel 2.
    When I try to add text using IE6 the text area is just gray. I have tried to change different attributes in IE but its still gray. I dont know how to debug IE either, I normally use firefox.
    Any ideas how I can debug IE, or what I should change on my IE to make the rich text editor show up.
    (btw, the installation is on my laptop, using XP pro. Not supportet but generally works fine. I know ppl at Oracle have this working on XP so it should not be the issue).

    hi terje,
    i just tested this on my 10.1.2 installation using IE6 and it works fine. so it seems not to be any general issue.
    2 things i would check:
    - does a java scrip error occur on the page when you add/edit a text item. you see this in the left lower corner of the browser.
    - check the log files on the application server mid-tier.
    - but before starting debugging i would go to another pc and try to access your portal from there. this will show you if your client machine is the problem or if the portal installation is the problem.
    regards,
    christian

  • How to clear the text in the Text Editor

    Hi all,
    I created a Text editor and also i am having language field in the screen.
    whenever i change the language auomatically the text has to change when the text exists for that
    language.
    this is working fine, but when the Text exist , the text editor should be blank.
    But it is carrying the Previous editor text itself into it .
    How to clear the text in the Editor.
    Regards,
    Madhavi

    Hello Madhavi
    The simple report ZUS_SDN_TEXTEDIT_CONTROL shows how to switch the texteditor contents when changing the language.
    *& Report  ZUS_SDN_TEXTEDIT_CONTROL
    *& Thread: how to clear the text in the Text Editor
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1145272"></a>
    *& By default the itab GT_OUTTAB contains texts in DE and EN.
    *& To switch the language directly enter into the command window:
    *& LANGU=DE, LANGU=EN or LANGU=FR
    REPORT  zus_sdn_textedit_control.
    TYPE-POOLS: abap.
    TYPES: ty_t_text     TYPE TABLE OF as4text
                         WITH DEFAULT KEY.
    TYPES: BEGIN OF ty_s_outtab.
    TYPES: language TYPE spras.
    TYPES: text     TYPE ty_t_text.
    TYPES: END OF ty_s_outtab.
    TYPES: ty_t_outtab    TYPE STANDARD TABLE OF ty_s_outtab
                          WITH DEFAULT KEY.
    DATA: gt_outtab       TYPE ty_t_outtab,
          gs_outtab       TYPE ty_s_outtab.
    DATA: gd_language     TYPE spras.
    DATA: go_docking      TYPE REF TO cl_gui_docking_container,
          go_textedit     TYPE REF TO cl_gui_textedit.
    DATA: gd_okcode       TYPE ui_func,
          gd_repid        TYPE syst-repid.
    START-OF-SELECTION.
      PERFORM fill_texts.
      gd_language = syst-langu.
      PERFORM init_controls.
    * Link the docking container to the target dynpro
      gd_repid  = syst-repid.
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = gd_repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc NE 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      PERFORM set_text_editor.
    * NOTE: dynpro does not contain any elements
      "       ok-code => GD_OKCODE
      CALL SCREEN '0100'.
    * Flow logic of dynpro (does not contain any dynpro elements):
    *PROCESS BEFORE OUTPUT.
    *  MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
    *  MODULE USER_COMMAND_0100.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.  " contains push button "DETAIL"
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      TRANSLATE gd_okcode TO UPPER CASE.
      CASE gd_okcode.
        WHEN 'BACK'  OR
             'EXIT'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'LANGU=DE' OR
             'LANGU=EN' OR
             'LANGU=FR'.
          PERFORM get_text_editor.
          SPLIT gd_okcode AT '=' INTO gd_okcode gd_language.
          PERFORM set_text_editor.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  FILL_TEXTS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_texts .
    * define local data
      DATA: ld_string   TYPE string.
      gs_outtab-language = 'EN'. REFRESH: gs_outtab-text.
      ld_string = 'Good morning'.
      APPEND ld_string TO gs_outtab-text.
      APPEND gs_outtab TO gt_outtab.
      gs_outtab-language = 'DE'. REFRESH: gs_outtab-text.
      ld_string = 'Guten Morgen'.
      APPEND ld_string TO gs_outtab-text.
      APPEND gs_outtab TO gt_outtab.
      gs_outtab-language = 'FR'. REFRESH: gs_outtab-text.
      ld_string = space.
      APPEND ld_string TO gs_outtab-text.
      APPEND gs_outtab TO gt_outtab.
    ENDFORM.                    " FILL_TEXTS
    *&      Form  INIT_CONTROLS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM init_controls .
      CREATE OBJECT go_docking
        EXPORTING
          parent                      = cl_gui_container=>screen0
    *      repid                       =
    *      dynnr                       =
    *      side                        = dock_at_left
    *      extension                   = 50
    *      style                       =
    *      lifetime                    = lifetime_default
    *      caption                     =
    *      metric                      = 0
          ratio                       = 90
    *      no_autodef_progid_dynnr     =
    *      name                        =
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT go_textedit
        EXPORTING
    *      max_number_chars       =
    *      style                  = 0
    *      wordwrap_mode          = wordwrap_at_windowborder
    *      wordwrap_position      = -1
    *      wordwrap_to_linebreak_mode = false
    *      filedrop_mode          = dropfile_event_off
          parent                 = go_docking
    *      lifetime               =
    *      name                   =
        EXCEPTIONS
          error_cntl_create      = 1
          error_cntl_init        = 2
          error_cntl_link        = 3
          error_dp_create        = 4
          gui_type_not_supported = 5
          OTHERS                 = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " INIT_CONTROLS
    *&      Form  SET_TEXT_EDITOR
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM set_text_editor .
      BREAK-POINT.
      CLEAR: gs_outtab.
      READ TABLE gt_outtab INTO gs_outtab
           WITH KEY language = gd_language.
      CALL METHOD go_textedit->set_text_as_stream
        EXPORTING
          text            = gs_outtab-text
        EXCEPTIONS
          error_dp        = 1
          error_dp_create = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " SET_TEXT_EDITOR
    *&      Form  GET_TEXT_EDITOR
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM get_text_editor .
      CLEAR: gs_outtab.
      CALL METHOD go_textedit->get_text_as_stream
        EXPORTING
          only_when_modified     = cl_gui_textedit=>true
        IMPORTING
          text                   = gs_outtab-text
    *      is_modified            =
        EXCEPTIONS
          error_dp               = 1
          error_cntl_call_method = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      MODIFY gt_outtab FROM gs_outtab
        TRANSPORTING text
        WHERE ( language = gd_language ).
    ENDFORM.                    " GET_TEXT_EDITOR
    Regards
      Uwe

  • How to get information from a text editor in the SAP standard transactions

    Hi SAP gurus I have a requirement in which it is required to gte the information from a text editor(which is not a field) in mm02 (click on) goto Purchase Order Text  in this view there is a text editor there is some text  in te the text editor i have to get that information in a table can it be done if so please give example and steps
    Points will be given to useful information

    Ah yes, excellent question, and not really a clear cut answer. In my experience, the easiest way to find this information is to simply create the text using the standard transaction, in this case MM02.  Then go to transaction SE16, using table STXH, do a query on this table, entering your user name, and today's date as the creation date.  The results should show the text that you just created, now you can see the object, id, and the way the name is being used here. 
    I also understand that in some cases, there is a button next to the editor in the screen which gives you some idea of these values, but this is not implemented everywhere, and I believe that I've only seen this in one place, can't remember where, but the first solution above will always work for you.
    Regards,
    Rich Heilman

  • Rich Text Editor bug

    Hello,
    My flex website at
    http://www.theplaygrounds.co.uk/The_Playground.swf
    throws the below error when I click on Contact or B/I/U on the Rich
    Text Editor.
    ReferenceError: Error #1069: Property string not found on
    mx.controls.RichTextEditor and there is no default value.
    at
    mx.validators::Validator/mx.validators:Validator::getValueFromSource()
    at mx.validators::Validator/validate()
    at mx.validators::Validator/::triggerHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.controls::RichTextEditor/__textArea_valueCommit()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.controls::TextArea/set text()
    at
    mx.controls::RichTextEditor/mx.controls:RichTextEditor::commitProperties()
    at mx.core::UIComponent/validateProperties()
    at mx.managers::LayoutManager/::validateProperties()
    at mx.managers::LayoutManager/::doPhasedInstantiation()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/::callLaterDispatcher2()
    at mx.core::UIComponent/::callLaterDispatcher()
    What is actually the bug here?
    Also, on the contact page, I need to be able to scroll down
    for the submit button. How could I implement this? I've tried
    everything.
    Thanks

    Hi,
    I have this code for validation:
    <mx:StringValidator
    id="nameValidator"
    source="{userName}"
    property="string"
    minLength="2"
    />
    <mx:StringValidator
    id="nameValidator1"
    source="{userComment}"
    property="string"
    minLength="2"
    />
    <mx:StringValidator
    id="nameValidator2"
    source="{userEmail}"
    property="string"
    minLength="2"
    />
    This acts on the contact form's forms, as these are the only
    textboxes in the web app.♠
    The contact form code:
    </mx:Canvas>
    <mx:Canvas label="Contact" width="100%" height="100%"
    verticalScrollPolicy="off" backgroundAlpha="0.7">
    <mx:Panel
    title="Feedback"
    left="10" top="10" right="10" bottom="10"
    layout="absolute"
    verticalScrollPolicy="on">
    <mx:Script>
    <![CDATA[
    import flash.events.MouseEvent;
    import mx.controls.Alert;
    private const NL:String = "\r";
    private function submitButtonClickHandler
    (event:MouseEvent):void
    var userDetails:String = "You submitted the following
    details:" + NL + NL;
    userDetails += "Name: " + userName.text + NL;
    userDetails += "Email: " + userEmail.text + NL;
    userDetails += "Hide email? " + (hideEmail.selected ? "Yes"
    : "No") + NL + NL;
    userDetails += "Comment:" + NL + NL + userComment.text;
    Alert.show (userDetails);
    private function emailButtonClickHandler
    (event:MouseEvent):void
    var msg:String = "You can use the navigateToURL() method to
    open a URL"
    msg += " using a call similar to the following:\r\r";
    msg += "navigateToURL (new URLRequest
    ('mailto:[email protected]'));";
    Alert.show (msg);
    ]]>
    </mx:Script>
    <mx:Panel
    title="Leave a comment"
    layout="absolute"
    width="523" height="573" x="10" y="10"
    backgroundColor="#E9ECE7" verticalScrollPolicy="on">
    <mx:Label text="Name:" x="10" y="12"/>
    <mx:TextInput id="userName" y="10" right="10"
    left="90"/>
    <mx:Label text="Email:" x="10" y="43"/>
    <mx:TextInput id="userEmail" y="41" right="10"
    left="90"/>
    <mx:Label text="Comment:" x="10" y="99"/>
    <mx:CheckBox
    id="hideEmail"
    y="76" left="90"
    label="Hide my email address"
    selected="true"
    />
    <mx:RichTextEditor x="90" y="126" title="Leave a comment"
    id="userComment" text="Leave A Comment" enabled="true"
    verticalScrollPolicy="auto">
    </mx:RichTextEditor>
    <mx:ControlBar x="120" y="258"
    horizontalAlign="center">
    </mx:ControlBar>
    <mx:Button
    id="submitButton" label="Submit"
    click="submitButtonClickHandler(event);"
    x="355" y="79" fontSize="10" fontWeight="bold"
    mouseDownEffect="{shrink}" mouseUpEffect="{revert}"
    fillAlphas="[0.0, 0.0, 0.0, 0.0]">
    </mx:Button>
    </mx:Panel>
    <mx:Script>
    <![CDATA[
    import flash.events.MouseEvent;
    import mx.controls.Alert;
    private function submitButtonClickHandler1
    (event:MouseEvent):void
    var userDetails:String = "You submitted the following
    details:" + NL + NL;
    userDetails += "Name: " + userName.text + NL;
    userDetails += "Email: " + userEmail.text + NL;
    userDetails += "Hide email? " + (hideEmail.selected ? "Yes"
    : "No") + NL + NL;
    userDetails += "Comment:" + NL + NL + userComment.text;
    Alert.show (userDetails);
    ]]>
    </mx:Script>
    Apologies if this is a basic bug, as I am new to the Flex
    platform.
    Thanks for your help♠♠

  • Rich Text Editor with Custom Text Attribute

    Hello All,
    We are using the latest version of Oracle Portal 10G. I have a need to create custom Attributes of the type text to let people enter a lot of text. But when User are in edit mode of an item where this custom attribute is used, the Rich Text Editor is not shown for entering the Text for the Custom Text Attribute. It shows a normal html text area. Has anyone ever used RTE with Custom Attribute?
    I request you guys for help.
    Thanks.

    The Problem with the Custom Attribute is not solved, but I have now compromised with the Situation and now I am not using a Custom attribute.
    Rather, Now I am creating a Custom Item Type using Base Text Type (earlier i wanted to create custom item type at my own without any base item type). In this case now I will not be able to change the Lable of the RTE (that is "Text", when the Custom Item is in Edit Mode), but I hope that my users can understand that much.
    I have created a template for portal pages. In the Template I can edit the Region Properties. When I edit the Region property of the region where I want to display my Custom Items. I get two Tabs on the top, Main and Attributes/Style. ON the main tab I can tell what type of region it should be, width etc, in my case it is item type region. And on the Attributes/Style tab, I can select from the availabe Attributes as which all Attributes I want to display. Here if i select only "Associated Functions" Attribute then normally portal should not render anything by default on the Page. It should rather make a call to the procedure which is associated with the Custom Item and as when I was creating the custom item type, I had clicked on "Display Procedure Results With Item", so portal should now display the result of my Procedure. So far it works without problem.
    But the problem is that the Portal displays the text at its own also. As i have written that Portal should not display anything at its own, this doesn't work in this version of Portal for a Custom Item Type that is made using Base Text Item Type. For all others it has worked till now (I have create 50s of Custom item types).
    You can better understand by going to the following URL. Just have a look between the two dotted lines (Dotted line is also a seperate Custom Item Type). Between the two Dotted Lines is a custom item, in general it would be a Custom News Item having title, image and so on.
    http://sunnode1.edvz.sbg.ac.at:7778/portal/page?_pageid=79,56047&_dad=portal&_schema=PORTAL
    I have really programmed a lot with portal but now at this stage where I am near to end, I am getting problems which are coming from Product. I request you for help.

  • Rich text editor

    <cfform>
    <cftextarea richtext=true name=”richtext01″/>
    </cfform>
    The code above gives me the rich text editor.  However, the image upload is disabled for the security reason and we are not allowed to modify the fckconfig.js from the server.  Is there the way to copy this from the server and paste into the local where the application is placed?  Or does anyone knows how to upload the images and have it shows on the rich text editor?
    Thanks

    Have a read of this:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_a-b_2.html#3980738
    Adam

  • Rich Text editor in Webdynpro

    Hi,
    With the new FormattedTextView in 2004s one will be able to render xhtml compliant rich test in Webdynpro.
    This however only covers the rednering of rich text.
    There still does not seem to be a rich text editor control available for webdynpro applications, which I think might be a common requirement for document centric applications.
    I was wondering :
    1 - will there be a richt text editor control available for WDP in the forseeable future ?
    2 - if not, are there any workardounds available to allow for the generation of rich text ?

    Hi Valery,
    Well, I already thought of that kind of solution, but I do not consider it a very clean solution. I know WDP supports portal eventing. On the other side of such a scenario you could even do without a 3rd party wysiwyg editor, cause SAP does offer an html editor control in its set of HTMLB controls.
    We intend to use WDP as a UI layer on top of SAPs KM. Our scenario involves template based publishing of structured documents (we first looked at xml forms, but they showed too many limitations). The idea is to model the document structure and content at runtime as WDP context structures (based on xml schemas) and then to serialize WDP context into XML content and metadata, with KM acting as business and persistence layer. Markup and insertion of images into the different text parts of the document however has become an additional requirement, which is why we are looking for a ways to fit that in our current design.
    You could indeed think of some kind of data exchange between a regular portal component and the wdp application, but I am not too confident whether that is going to be a reliable solution.
    PS : for the serialization of WDP context, your post in a different thread on this forum helped me a lot in my first attempts to create KM documents from data wdp runtime data (context). The link provided to the online book and your little example was very welcome. Thanks for that !

  • Using Rich Text Editor with a Custom Attribute

    Hello All,
    Can anyone please tell me as how can I use the Rich Text Editor with a Custom Attribute?
    I want to create a custom attribute based on text datatype, but when entering the value for this attribute in a Custom Item, portal shows a normal textarea. I want that the user should see the Richt Text Editor.
    Thanks for help.
    Regards

    Hi,
    Can you tell me what steps you are using to produce this, and which Portal version you are using. When I tried it, I wasn't able to reproduce it. Here are my steps:
    1) Created Custom Item Type, based on Text, under
    Page Groups > Shared Objects > Item Types
    2) Selected Three attributes (Description, Name, Publish Date). Note Text and Display Name were already selected
    3) In Add Item Wizard, configured list to allow for my
    custom item type selection.
    4) Then I was able to see the Rich Text Editor when editin
    my custom item type.
    Regards,
    J.

  • Using rich text editor in new asset type input form

    Hey everyone,
    I'm currently trying to create assets based on a newly created asset type (which I of course, created). However, the STORAGE property I declared in the asset definition file is to support formatted text, which would normally be pasted from word documents. Note that I'm using the Basic Asset Model.
    Thus, I need a rich-text editor to be used in the content input form. So, after looking at the tags reference in the developer's documentation, I thought that I could use EWEBEDITPRO to achieve my goal but there's always an error mentionning that the component can't be launched. I supposedly have to configure two parameters, one of them being the path for ewebeditpro.js. I looked for that but haven't found it. On the other hand, I looked at the Oracle WebCenter Sites Property File document and that one stated that EWEBEDITPRO is deprecated and not supported (?!?!).
    So in short, what can I use, as a rich-text/html editor?? Thanks in advance for any reply!
    Edited by: DigitalSelf on May 24, 2012 2:26 PM

    Thanks. From what I've read in the developer's guide, CKEditor was available with assets built from the Flex model. However, I'm currently having a hard time trying to display the content of an attribute with content input through the CKEditor, because it's stored in a blob. Although I've found several examples showing how to read the content of a blob, none of them worked for me...

  • Saving the text in text editor changes text line format

    In my program I have an output witha  text editor box where
    we type in text and save , and if we want to print it it prints it out
    on a smartform. When I type in a text on the text editor box for example :
    "This will include a policy and best practice for
    what files can be stored on the server and where
    they should reside. The policy will include
    required ownership of each folder and required
    authorizations for access to folders. Also
    included in the policy will be a section describing
    best practices on the file and folder naming
    conventions. Anew file struicture of the drive that
    better aligns with the business. An drive with only
    four folders at the root level also will be de"
    After I type in this text in teh text editor and try saving it
    , it save sthe text but shows up with lots of gaps like below.
    "This will include a policy and best practice for
    what files can be stored on the server and
    where
    they should reside. The policy will include
    required ownership of each folder and
    required
    authorizations for access to folders. Also
    included in the policy will be a section
    describing
    best practices on the file and folder naming
    conventions. Anew file struicture of the drive
    that
    better aligns with the business. An drive with
    only
    four folders at the root level also will be de"
    I am not preety sure why on saving teh typed text it chnages to this format.
    I would like to have my program save it as is typed. Is this possible to do so
    and how?
    Thanks.

    Hi Aarav,
    Check the internal table used to store the text is having line length 100. Change that to 200 or more . You can see the difference . If still the problem persists, enter each line in the text editor and conclude each line with a carriage return( ENTER ) 
    key press.
    Hope this will help you.
    Regards,
    Smart Varghese

  • Format XMl to be read in a text editor.

    Hi,
    I'm using ixml functions to create an xml file. Each element of my document is created using :
    <cl_xml_document> ->create_simple_element
    I then export it to a file with :
    <cl_xml_document>->export_to_file
    When the created file is opened with an xml viewer, it appears well presented, every tag is displayed on a seperate line.
    However, once opened with a text editor, the whole content is displayed on one line. Is there to format the file with some sort of line seperator?
    On debugging, I found out that only one line of its internal table is used to store the data.

    Welcome to SDN
    Try this,
    data: temp_str type string.
    concatenate '>' cl_abap_char_utilities=>cr_lf '<' into temp_str .
    replace all occurrences of '><' in XML_STRING with temp_str.
    xml_string is the straing variable to hold the xml .
    now use xml_string to show it in texteditor.
    Regards
    RAja

  • Is a text editor really better than Dreamweaver?

    Hi Everyone,
    I've been looking through several different web design forums
    and I'm now stuck with a question. Why do some people swear by
    using only a text editor to put their website together and totally
    discount programs such as Dreamweaver? I find this quite strange
    because a website amongst other things is a highly visual
    experience usually not showing a single line of code to the end
    user. I get the impression that some people feel that Dreamweaver
    is beneath them as they are "highly skilled coders" and only
    amateurs use WYSIWYGs! Is it just me or am I correct in thinking
    there is an element of snobbery here? To me it seems that
    Dreamweaver has advantages in abundance and for the so called
    hardcore coders there's even a code view which is much more
    powerful than a simple text editor. One final thing, I see that
    people complain about so called bad code that Dreamweaver writes.
    Is it true that Dreamweaver writes bad code and if so what's bad
    about it?
    Many thanks, I'll be fascinated to read your
    responses.

    Let's see entire sites, good-sized professional ones. :-)
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    > Good idea, Patty. Let's see some of the "wouldn't touch
    DW with a 10-foot
    > pole" pages that have been created....
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > ==================
    >
    >
    > "P@tty Ayers ~ACE"
    <[email protected]> wrote in message
    > news:[email protected]...
    >> This question is asked a lot. The answers are:
    >>
    >> -- No, a text editor isn't just as good. There are
    lots of extremely
    >> useful things DW does that a text editor can't do.
    >>
    >> -- No, the recent versions of Dreamweaver actually
    write very good code
    >> in general.
    >>
    >> -- In response to "only amateurs use [Dreamweaver
    instead of a text
    >> editor]" - please show me just 1 full-time
    professional web developer
    >> responsible for creating and maintaining sites who
    uses only a text
    >> editor. Just 1. You won't be able to, because there
    isn't one. Not one
    >> with a job, anyway. :-)
    >>
    >> Cheers,
    >>
    >> --
    >> Patty Ayers | www.WebDevBiz.com
    >> Free Articles on the Business of Web Development
    >> Web Design Contract, Estimate Request Form, Estimate
    Worksheet
    >> --
    >>
    >>
    >>
    >> "In at the deep end"
    <[email protected]> wrote in message
    >> news:[email protected]...
    >>> Hi Everyone,
    >>>
    >>> I've been looking through several different web
    design forums and I'm
    >>> now
    >>> stuck with a question. Why do some people swear
    by using only a text
    >>> editor to
    >>> put their website together and totally discount
    programs such as
    >>> Dreamweaver? I
    >>> find this quite strange because a website
    amongst other things is a
    >>> highly
    >>> visual experience usually not showing a single
    line of code to the end
    >>> user. I
    >>> get the impression that some people feel that
    Dreamweaver is beneath
    >>> them as
    >>> they are "highly skilled coders" and only
    amateurs use WYSIWYGs! Is it
    >>> just me
    >>> or am I correct in thinking there is an element
    of snobbery here? To me
    >>> it
    >>> seems that Dreamweaver has advantages in
    abundance and for the so called
    >>> hardcore coders there's even a code view which
    is much more powerful
    >>> than a
    >>> simple text editor. One final thing, I see that
    people complain about so
    >>> called
    >>> bad code that Dreamweaver writes. Is it true
    that Dreamweaver writes bad
    >>> code
    >>> and if so what's bad about it?
    >>>
    >>> Many thanks, I'll be fascinated to read your
    responses.
    >>>
    >>
    >

  • Flex 3.5 Rich Text Editor Bold Button is Selected by default?

    Hi and thanks in advance,
    I'm creating dynamic forms via action script in flex builder with SDK 3.5.
    One part of this form is a rich text editor, it creates and works just fine, but I have one little annoying issue the bold button is defaulted to on (selected)
    The funny think is, if I lose focus on the text area of the RTE and de-select the bold button, as soon as I set focus to the text area again the bold button is toggled back on. This leads me to think that the text area which is empty is some how bold.
    if I show an alert Alert.show( String( _rte.boldButton.selected ) ) after the RTE as been added to the form is shows false.
    Even if I set  _rte.boldButton.selected = false just to be sure it still displays the bold button as selected.
    Its a basic RTE the only thing I'm doing is adding a validator if its required and removing the link bar
    _rte.toolbar.removeChild(_rte.linkTextInput);
    Any ideas are very much appreciated
    flash harry...

    Hi and thanks in advance,
    I'm creating dynamic forms via action script in flex builder with SDK 3.5.
    One part of this form is a rich text editor, it creates and works just fine, but I have one little annoying issue the bold button is defaulted to on (selected)
    The funny think is, if I lose focus on the text area of the RTE and de-select the bold button, as soon as I set focus to the text area again the bold button is toggled back on. This leads me to think that the text area which is empty is some how bold.
    if I show an alert Alert.show( String( _rte.boldButton.selected ) ) after the RTE as been added to the form is shows false.
    Even if I set  _rte.boldButton.selected = false just to be sure it still displays the bold button as selected.
    Its a basic RTE the only thing I'm doing is adding a validator if its required and removing the link bar
    _rte.toolbar.removeChild(_rte.linkTextInput);
    Any ideas are very much appreciated
    flash harry...

  • Portlet editor's rich text editor gives javascript error 'access denied'

    I created a header portlet using the Publisher's published content portlet template. When I try to edit the portlet content using the rich text editor in the portlet editor window, I get a javascript error in the status bar stating 'access denied'. I can't even type into the rich text editor window, it's totally disabled. Not that I see anything in there anyway. I'm logged in as admin. I've gone into the publisher explorer admin portlet and even 'published' the portlet's content, but to no avail. When I try to 'add header portlet' in my experience definition and try to use this portlet, nothing shows up, where the header portlet should be is just collapsed so my banner is just the top bar view bumped right on top of the nav view. (p.s. does anyone know how to take the alui doc's suggestion of 'disabling the topbar view and nav view' so that I can construct what I want entirely in a header portlet? Anyway, first things first, how do I get that access denied message to disappear in my header portlet's rich text editor and how the heck do I get it show up? Help.

    There's probably not a developer in the forum that doesn't uncheck that box the moment they rebuild their machine/ennvironment. Changing the format of error messaging is hardly a fix for the error itself. Personally, I'm uploading 'file content items' now. I create the content in notepad and then upload > file content item. Then create a portlet that uses the pre-existing (was installed w/ publisher using their pte) 'published content item' web service. Go into the portlet's settings and associate the portlet w/ the content item you uploaded. Voila.
    As far as using their rich text editor to create new content, I personally have no need anymore. However I'm sure our content managers will probably have to soon so I hope our latest installation will accommodate them w/o error, because I've never been aware of an actual fix to this problem.

Maybe you are looking for

  • Inserting more data records at a time to a portaldatabase

    Dear SDN's, I am working with sql server on JAVA side i.e., as a portal web database. I want to insert a level of some 100 records at a time to a database. what is the best way of inserting other than entering all the values manually/using a insert p

  • HP LaserJet Pro 200 M276nw - Scan to Computer problems

    So I've got an HP LaserJet Pro 200 M276nw. Have trouble activating the scan to computer option. Here's my setup: One desktop computer and three laptops are connected to a local network. The desktop pc is wired to the network, all three laptops are co

  • HP Laserjet 1536dnf MFP document feeder does not work

    HP Laserjet 1536dnf MFP document feeder does not work. I tried the suggested unplugged/plug and wait the required time but still no luck. Any suggestions?  It does not even recognize that there is paper in the document feeder.  Prior to this occuring

  • New features voor IOS7

    I have some tips for the developers of IOS, maybe a helpfull  features for IOS7 The first tip: Make an codelock voor some applications for example. the settings app, mail. The second tip: The option to set off/hide systemapplications which you never

  • [FYI]:Adobe Reader 8にアップグレードせずに脆弱性を回避する

    Adobe Reader 7.0.xに脆弱性があり.この脆弱性回避のためにAdobe Reader 8にアップグレードするようにAdobeが推奨しているというのは既報のとおり. とはいえ.会社などの組織では勝手に社内PCのシステムを変更してはいけない場合もあり.当面はAdobe Reader 7.0.xで運用しなくれはならない場面もある. そういう場合の策として.問題となるAcroPDF.dllを入れ替える手法がAdobeから紹介されている. ・Update available for pote