Problems displaying an new multigroup

Hi guys,
my task is to change an existing fieldgroup Opportunities / Product-Detail with an new inputfield.
The existing fieldgroup is displayed in an multigroup.
For exercising i copied the application CRMD_BUS2000111 to ZJ_CRMD_BUS2000111
I created an new view ZJUNG_VIEW.
I created an new fieldgroup ZJ_OPP_ITEM_DLS with the new inputfield.
I assigned this fieldgroup to my view ZJ_VIEW.
I created an new Multigroup ZJ_OPP_OBJREL_IT_MULT with the Event OPP_IT_PROD_DET_GEN (only one event, yust for the test)
I assigned the Multigroup to my view.
I created an new Tab-Page-Group ZJOPP_2_PR, assigned it to my view and to my new Multigroup.
In the definition of the Application Layout i copied the existing entrees with the events
OPP_IT_PROD_DET
OPP_IT_PROD_DET_GEN
and assigned them to my view ZJUNG_VIEW.
Furthermore i assigned the following parameters to the copied entrees
OPP_IT_PROD_DET (Version 1, Element MULT, Fieldgroup ZJ_OPP_ITEM_DLS, Tab-Page-Group ZJOPP_2_PR, ...)
OPP_IT_PROD_DET_GEN (Version 1, Element FORM, Fieldgroup ZJ_OPP_ITEM_DLS, Tab-Page-Group ZJOPP_2_PR)
After that I generated the layout of fieldgroup ZJ_OPP_ITEM_DLS + view ZJUNG_VIEW without any errors.
When I start the page - there are no changes - there is still the same old multigroup.
What did i do wrong? The iView in the portal has the parameter blview = ZJUNG_VIEW
When I change the paramenter Element to Form of the Event OPP_IT_PROD_DET the changes take place!
Thank you for you help in advance!
Stephan
Edited by: Stephan Jung on Jan 7, 2008 4:27 PM
Edited by: Stephan Jung on Jan 7, 2008 6:26 PM

Hi Thirumala,
thanks for your reply.
I use the following string:
appl=ZJ_CRMD_BUS2000111&version=1&view_mode=L&blview=ZJUNG_VIEW&sap-syscmd=nocookie
Stephan

Similar Messages

  • Problem setting a new image to be displayed in JScrollPane

    Hi everyone,
    I'm having a problem with an image retrieval application I'm developing and basically the problem is when I run the application and search for an image, the image is found and displayed fine on screen using an instance of DisplayJAI (from the JAI packages). However, when I search for another image it clears the old image fine but doesn't display the new one. I though it might be a repaint issue because the SQL is correct but it simply clears the scrollPane of content and doesn't update it with the new image. Has anyone ever come across this problem before or have any ideas? Any help would be much appreciated, thanks.

    This is fixed by turning off the optimization..

  • Problems with the new Pages for Mac

    I'm starting to see countless problems running the new Pages for Mac (5.0.1) and I can't find a way to resolve them.
    1. when I'm typing and want to delete word(s), I'll use the alt+delete function for ease, however this starts deleting words after the cursor, merging words together and changing my sentece. It comes from when I'm deleting as the new pages is giving me the dropdown menu for the autocorrect word.
    2. grammar check is off. Namely, it picks a random point in a word and moves on from there. EX: "because of the" will have "use of the" underlined in green and give me recommendations to change to "because of the" or "cause of the". Using those recommendations, I'll end up with something like: "becabecause of the"
    3. the find and replace function jumps around in the paper, and sometimes doesn't even display the word currently selected (leaving the user to scroll around looking for what is selected)
    4. Autocorrect has vanished for some reason: no autocapitalization, no turning fractions such as 1/2 into a tidy and neat fraction with small numbers for numerators/denominators, etc.
    I'm still using it, and these are what I have found, so there may be more later as I continue to use it. If anyone has found ways around these bugs, please let me know.
    Thanks!

    Semnani wrote:
    4. Autocorrect has vanished for some reason: no autocapitalization, no turning fractions such as 1/2 into a tidy and neat fraction with small numbers for numerators/denominators, etc.
    Pages 5 now uses the system autocorrect, which does not have as many features as the one inside Pages 4.  Some things you can add manually there.   Others you have to ask Apple to add via
    http://www.apple.com/feedback
    Or continue to use Pages 4 instead.

  • Problem displaying CLOB in text file

    Hello All,
    I have a problem displaying the content from the database in notepad. When I click on a link on my jsf screen, I retrieve the data and display it in notepad.
    I have my text content stored in the database with CLOB datatype. When I look in the database the data looks in the following format:
    ---------STARTS FROM NEXT LINE-------------
    The firm, known for its keen oversight of products, has been the subject of complaints from firms who have had apps blocked from the store. Some developers have complained that the company's rules seem inconsistent.
    Some have found apps blocked after seemingly minor updates, or for having content deemed inappropriate by them. In light of this, and after careful consideration, I believe it is unnecessary to sign this measure at this time.
    Sincerely,
    ABC
    ----------ENDS IN THE PREVIOUS LINE------------
    Now when I display this content onto the notepad, all the spaces and new line characters are lost, and the entire display looks awkward. This is how it looks:
    The firm, known for its keen oversight of products, has been the subject of complaints from firms who have had apps blocked from the store. Some developers have complained that the company's rules seem inconsistent.[]Some have found apps blocked after seemingly minor updates, or for having content deemed inappropriate by them. In light of this, and after careful consideration, I believe it is unnecessary to sign this measure at this time.[]Sincerely,[]ABC
    All the new line characters are lost and it just puts some junk character in place of a new line.
    When I copy the same text onto textpad, everything is alright and it displays exactly the way it is present in the database. I am also open to display the content in html, but in HTML it doesn't even display me the junk character in place of new line. It is just one single string without any line separators.
    I am using the following code to put the content into the text.
    public String writeMessage(){
       OutputStream outStream = null;
       HttpServletResponse response = getServletResponseFromFacesContext();
       Reader data = null;
       Writer writer = null;
       try{
          response.reset();
          response.setContentType("text/plain; charset=UTF-8");
          response.setHeader("Content-Disposition","attachment; filename="+id+"_Message.txt");
          outStream = response.getOutputStream();
          QueryRemote remote = serviceLocator.getQueriessEJB();
          data = remote.retrieveGovernorsVetoMessage(billId);
          writer = new BufferedWriter(new OutputStreamWriter( outStream, "UTF-8" ) );
          int charsRead;
          char[] cbuf = new char[1024];
          while ((charsRead = data.read(cbuf)) != -1) {
             System.out.println(charsRead);
          writer.write(cbuf, 0, charsRead);
          writer.flush();
       }catch(Exception ex){
          ex.printStackTrace();
       }finally{
          //Close outStream, data, writer
          facesContext.responseComplete();
       return null;
    }Any help or hints on resolving this issue would be highly appreciated.
    Thanks.

    The data is imported from a third party application to my database. It doesn't display any newline characters when I view the data.
    But when I do a regular expression search on text pad, I could see that my clob contains \n as the new line character. Is there a way to replace \n with \n\r while writing the data.
    Thanks.

  • Dynamically displaying a new region (row?) based on immediate user input

    Whew, figuring out a title was almost as hard as trying to explain what I want to do!
    Okay, a little background first.
    My app has 178 main data fields, spread across about 35 tables. The users want to be able to search any and all data fields. So, I wrote a PL/SQL package that for each master record, loops through all of the child tables and creates (more or less) an XML file for each master record (which I store in a CLOB field). When any data in any table is changed, a trigger fires to re-update that CLOB field as well. I then used Oracle Text to create an index on the CLOB field, and now the users can search across all of the available information for each master record and get a list of which records contained what they were looking for.
    So here's the first part of the problem. The app is a Mineral Occurence database for all mineral information world-wide. Say they enter "Brazil" as what they want to search for, they not only retreive all of the mineral sites in Brazil, but also all of the sites where one of the mining companies may be based in Brazil, or Brazil is one of the comments, etc. While this is the expected behaviour, it's still not quite what they expected (but they also don't want to get rid of this behaviour either).
    So, since the CLOB field is already formatted with XML-type tags, what I want to do is to have an Advanced Search page, where the user can specify the table name to search, or the field name, or both. What I'd like to do is at the end of each line, have a select list with an "AND" or "OR' box, and if that gets a value, then dynamically create another 'row' underneath the first row, with the same three 'boxes' (actually select lists), and continue on until the user has specified exactly what they want to search for.
    I would rather not have to create a whole bunch of regions or rows, and then determine at runtime whether or not to display them.
    So i would have (using underscores as the boxes/fields):
    Table to Search        Field to Search          And/Or
    ______________          _____________          _______Each of the above would be a select list.
    Anybody have ideas on how I can accomplish this? Any Javascript or AJAX-type solutions that a dummy like me can easily implement? I've seen something almost similar on Carl's example pages to Hide/Show a region(?), but understanding the underlying code and then modifying it for what I want to do is extremely complicated (for me) at best.
    Thanks.
    Bill Ferguson

    Well, after searching through the QBE results (even some of mine), the only thing that comes close is Earl's (http://htmldb.oracle.com/pls/otn/f?p=36337:14). Actually his layout is almost perfect and pretty identical to what I want/need. Vikas' example seems like what I've toyed with on some other pages in my app, using a simple UNION ALL with nulled fields in the select statement, which won't work for what I need, at least I can't seem to visualize how I could incorporate that same code logic.
    However, unlike Earl's, when/if the last column (which I'd have as the 'AND/OR' select list) is populated, I'd like to dynamically display another new row.
    Now I know I could do it by making the last column a 'Select List With Submit', but that would neccessitate my creating about 25 regions (to hopefully cover the max any of the users would ever need), and then conditionally display the region based on whether or not the previous 'AND/OR' condition field was populated. It would also require a whole slew of page refreshes, which is clunky.
    It seems like there should probably be a way with AJAX to accomplish something similar. I think I remember seeing something along these lines in the last year or so on here, but I can't find it.
    Something like a cross-breed of Earl's example page above mixed with Carl's example at http://htmldb.oracle.com/pls/otn/f?p=11933:39:4740898821262791902::NO:RP:: which would automatically fire on the poplulation of the last select list is probably the best I can accomplish, unless somebody has some better ideas on how to do this. Using Carl's htmldb_remix code, I can avoid all the submits and the resulting page refreshes, but the code itself will take an old dummy like me a while to figure out.
    Thanks for the ideas though.
    Bill Ferguson

  • Problem displaying PDF stored in BLOB column

    Hello everyone.
    I've been trying to follow this tutorial http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::p11_question_id:232814159006 on displaying PDFs stored in BLOB columns. This is being performed on Apex 4.2, with my DB running 11g. I've got my procedure, which I'll post below:
    create or replace procedure "PDF" (p_id IN gvo_documents.doc_id%type)
    is
        l_lob    blob;
        l_amt    number default 30;
        l_off   number default 1;
        l_raw   raw(4096);
    begin
        select contents into l_lob
            from gvo_documents
             where doc_id = p_id;
    -- make sure to change this for your type!
        owa_util.mime_header( 'application/pdf' );
        begin
            loop
              dbms_lob.read( l_lob, l_amt, l_off, l_raw );
              htp.prn( utl_raw.cast_to_varchar2( l_raw ) );
              l_off := l_off+l_amt;
              l_amt := 4096;           
        end loop;
            exception
               when no_data_found then
                  NULL;
            end;
    end;
    I am trying to run this through a PL/SQL dynamic region and while I don't receive any error's, the content displayed is a huge mess of garbled text and odd characters. I've tried to run this procedure on numerous other document types, including word files and jpeg images, all with the necessary changes in my procedure, and regardless of what I use, I still get a large mess of strange characters. Does anyone have any information or ideas about why this is happening?

    If I understand correctly, your requirements needs to be broken down into two problems:
    1) click link that pops up a window displaying a new APEX page
    2) an APEX page the displays the document, not downloads it.
    I haven't done #1 (yet).
    However, you may be able to generate a URL that points to the new page as part of the SELECT statement for the Report.
    This has a related question, but no answer yet:
    open pdf in popup browser window
    The key is target="_blank" for the anchor tag.
    To generate the URL, you should use the APEX_UTIL.prepare_URL() function.
    If that doesn't work, a Dynamic Action that does some magical JavaScript stuff may be needed.
    For #2, I lost the URL that showed how to display a PDF as part of a "form" page.
    From what I remember:
    Start with a blank page with one blank HTML region (all the Items go in the HTML region)
    Add an Item for the PK/Doc_ID
    part I forgot Create a Data Manipulation Process
    - Automated Row Fetch
    - On Load - After Header
    - (stuff for your table/view)
    part I forgot Create an (I believe) "File Browser" item type. For Settings:
    - Storage Type "BLOB column specified in Item Source" (and place the column name of the BLOB there)
    - MIME Type Column: (column name) -- since you have multiple types, this is a MUST HAVE
    - Filename Column: (column name) -- I highly recommend you have this.
    - Content Disposition == INLINE <-- this is the kicker
    Also, you will need a Browser Plugin for each of the MIME Types (otherwise, the browser may try to 'download' the file)
    Browsers can handle Image types internally. Adobe's plugin can handle PDFs. I don't know about Word/Excel.
    Again, I don't remember the exact details, but that should cover most of it.
    MK

  • Music problems with my new 5230!

    I wondered if you wonderful guys could help me out with a couple of problems concerning my new Nokia 5230. I just received my 16gb sd card today and started transferring music files so I could listen to music on the move. Unfortunately I have came across a couple problems when previewing my music on headphones.
    1. When playing mp3's from the start there are 2 quiet electronic clicks, sometimes even 3. The last click actually cuts the music out right at the start which is very annoying (music lover). Can someone tell me why this is? Being a sound engineer and a computer whiz I personally think the first quiet click(s) is due to the sound/music program activating and the final click has something to do with bitrate..So I did a series of tests concerning the bitrate and no matter what combination used..it still unfortunately clicked on all 2/3 accounts described. Infact the only bitrate that didn't have the final click with the audio cut were mp3's using 128kps so I'm thinking any bitrate above 128kps as my tests prove will cause problems!
    2. I tried using the eq presets while on headphone mode and all the presets don't seem to change!!
    3. Most of my mp3's in my collection has cover art and it seems that the nokia music player does not display them while playing(just has the disc with pink music note displayed all times)
    Can anyone help us out here as if this isn't resolved then I won't be using this phone as a music device because that 3rd click is very annoying indeed and if it means I have to convert my entire mp3 collection to 128kps then I simply don't see the point in doing so!
    Apart from that the nokia 5230 is a wonderful little phone!
    Kind Regards, Mark

    1. I am using a 5800 so I cant really comment. Xpressmusic range has been replaced by the X-series, so basically X-series is the new expressmusic with more emphasis on music.
    2.
    3. It would depend on whether your cover art is embedded into the file or not. Some cover art placing apps simply link the image to the mp3 file, so when you play it on your PC, the cover art shows. This is the case with iTunes (you have to edit settings for embedding). This is not the case with say, Ovi Suite, which embeds the album art into the mp3 file, so the file gets a little bigger because of the embedded picture. The phone will be able to play with album arts if the picture is embedded into the mp3 file. I personally use mp3tag to put tags and album art onto my files, but you can also use Ovi Suite which came with your phone.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • Problem in creating new communication channel template in IR

    Hi experts,
    I currently have problems with creating new communication channel template in Integration Repository. If I choose the New-Context (Adapter Objects-->Communication Channel Template) the dialog "CREATE OBJECT" is shown. After I have inserted the Name of my template I push the create button.
    Then the following error occurs:
    STOP: Internal error: Object cannot be changed in display mode
    DETAILS: Internal error: Object cannot be changed in display mode(CANT_SET_MODIFIED).
    So can anybody help me. Thanks for your help.
    Best regards.
    Mario

    Hi Mario,
                This is genral problem appearing in PI 7.0 with SP12.
                Previously, i have the same problem.
                i.e STOP: Internal error: Object cannot be changed in display mode
    DETAILS: Internal error: Object cannot be changed in display mode(CANT_SET_MODIFIED)
                Regarding this we raise an OSS note SAP people.
                they gave the suggestion that update with SP13.
              i discuss with basis team and install the SP13.
               now the problem is solved, i can able to create the Communication Channel Template.
    Please award points, if it really help to u
    Regards
    Mahesh.

  • Problem in creating new versions for existing DIR using CV01N

    I am working in SAP ERP 6.0 EHP 4.0 system.
    I have problem in creating new versions for existing DIR using CV01N
    I create a DIR version 00 with functional location and mpd cycles. Then when i try to create a new version by copying the contents created from already created document.I change the MPD cycles in the new version and save it.
    once when i display the first document created the mpdcycle specified in version 01 is copied to the 00 version.
    The document is inconsistent where versioning of document doesnot work properly wrt MPDCYCLE and MP HEADER.
    The problem which i found was the document identification guid remains the same for all the document versions getting created.
    The same is working fine in SAP ERP6.0 EHP3.0 sytem.
    Please someone help me in resolving the above issue.
    Regards,
    Prasad.B

    There is a change in the standard code.The reason for the above problem was  because of a missing Enhancemnet point in a standard function module 'CV110_DOC_CREATE_WITH_TEMPLATE'.
    IS-ADEC-MPD  - Enhancement to copy MPD data
    ENHANCEMENT-POINT CV110_DOC_CREATE_WTEMPL_01 SPOTS ES_SAPLCV110.
    +*$*$-Start: CV110_DOC_CREATE_WTEMPL_01----------------------------------------------------------$*$*+
    +**ENHANCEMENT 1  ZSF_AD_MPD_SAPLCV110.    "active version**+
    +*** copy MPD relevant data from templ. doc to current doc**+
      +**CALL FUNCTION 'MPD02_COPY_MPD_DATA'**+
        +**EXPORTING**+
          +**is_draw = ls_draw**+
        +**TABLES**+
          +**ct_drad = lt_drad.**+
    +*ENDENHANCEMENT.**$*$-End:   CV110_DOC_CREATE_WTEMPL_01----------------------------------------------------------$*$*+
    Created a custom enhancement point similar to SAP ECC6.0 EHP 3.0 system.
    The reason was the buffer was not getting cleared previously.After inserting the above code the DIR's are getting created withot any issues.
    Regards,
    Prasad.B

  • Problem displaying picture stored in mySQL

    Hi, i just have got problem displaying picture stored in database as BLOB and presented on JSP over servlet. Below is my code i am using to upload file into database, than download it and display again. The result is the picture can not draw inself and there is always only empty picture space on the web page i am displaying. Please help me to find why it is not working, thanx.
    servlet uploading picture to database
                   boolean isMultipart = FileUpload.isMultipartContent(req);
                   DiskFileUpload upload = new DiskFileUpload();
                   List items = upload.parseRequest(req);
                   Hashtable textFields = new Hashtable();
                   byte[] data = new byte[4096];
                   if(isMultipart)
                        Iterator iter = items.iterator();
                        while(iter.hasNext())
                             FileItem item = (FileItem)iter.next();
                             if(item.isFormField())
                                  textFields.put(item.getFieldName(), item.getString());
                             }else{
                                  data = item.get();
                   String sqlStatement = "INSERT INTO cds VALUES('" textFields.get("id")"'," +
                                            "'" textFields.get("album") "','" textFields.get("interpreter") "'," +
                                                      "'" textFields.get("gr1") "','" textFields.get("gr2") "','" textFields.get("price") "')";
                   String sqlStatement2 = "INSERT INTO pics VALUES('" textFields.get("id") "','" data "')";
    servlet to download picture
    String SQL =
         "SELECT Picture " +
         "FROM pics " +
         "WHERE id = '" + request.getParameter("id") + "'";
         ResultSet rs = stmt.executeQuery(SQL);
         rs.next();
         Blob blob = null;
         blob = rs.getBlob(1);
         response.setContentType("image/jpg");
         request.setAttribute("blob", blob);
         System.out.println("just above OutputStream");
         InputStream in = blob.getBinaryStream();
         ServletOutputStream sout = response.getOutputStream();
         int b;
         while ((b = in.read()) != -1) {
         sout.write(b);
         in.close();
         sout.flush();
         sout.close();
    img tag in JSP
    <img src="LoadImageServlet?id=some id>
    plus i am using
    Tomcat 5.0
    mySQL 4.0
    debuging in eclipse
    thanx for help once more, Libor.

    1:
    are there any exceptions throws by the jdbc code
    2:
    is the code in a doGet
    3:
    you should do a if(result.next())
    4:
    Is your mapping code working

  • When links are clicked, they do not fully display the NEW page until the mouse is moved.I know it is a current bug, and appears in no other browsers that I know of.

    It was pointed out that my links do not function correctly on Firefox on a Windows platform. When links are clicked, they do not fully display the NEW page until the mouse is moved! I have now observed it for myself on my fathers PC running Windows XP on Firefox.My PC is on Windows7
    It is the 5 version of Firefox, so I know it is a current bug, and appears in no other browsers that I know of.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4+ you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Cover Art Doesn't Display for New CDs, Podcasts, etc.

    Cover art doesn't display for new items that I add to my 60GB iPod from iTunes. Older items are fine but new CDs, podcasts or songs purchased from iTunes don't display cover art on my iPod. The cover art is there when viewed in iTunes but just doesn't display when they are being played. The problem seems to have started about a month ago. Anyone experience something similar?

    Thanks for the suggestion but.... it actually made the problem worse. When I went to the music tab I found that the "Display Cover Art" check box was unchecked so I clicked in the box and the fun began. First thing that happened was the iTunes status box displayed "Deleting covert art from iPod" (definately not what I would have expected) for about a minute then it changed to "Optimizing cover art on your iPod" (that seemed like a step in the right direction) but then I got an error message saying "Can't sync iPod. Unknow error". Closing out the error message ended the process. I was able to eject my iPod after that without any issues but now even more covert art doesn't display (even though when viewed through iTunes its there).

  • Address Book - downloading vCard no longer displays updated/new contact

    On 10.5.6 and earlier, if I had an option in an application to Download a users vCard, I could click it, be given the option to add, review or merge with an existing contact. Address book would display the new/updated contact for verification/editing.
    On Snow Leopard 10.6.1 (Address Book 5.0), everything pretty much works the same except I am not taken to that new/updated contact. I must manually scroll or search for the contact to see if it is acceptable. With 1500+ records, it is kind of a drag.

    Add me to this problem:
    Not only is the new contact not displayed, it's placed in the Last Import group, and there's no way to remove it. Deleting from that group deletes the record in ALL GROUPS.
    Subsequent vcf/vcard downloads are simply added to Last Import, along with previously imported records.

  • Problem displaying Word 2002 RTF files in JEditorPane

    Hi all,
    I am having a problem displaying RTF files created in Word 2002/Office XP in a JEditorPane.
    Our code, which does the usual stuff:
    JEditorPane uiViewNarrativeEda = new JEditorPane();
    uiViewNarrativeEda.setContentType(new RTFEditorKit().getContentType());
    FileInputStream inDocument = new FileInputStream("c:/temp/testing.rtf"); uiViewNarrativeEda.read(inDocument, "");
    inDocument.close();
    works just FINE with RTF files created in Word 97, WordPad etc, but it seems that Word 2002 adds some tags to the RTF file that the RTFReader cannot handle.
    For example, I believe the following exception is due to the new \stylesheet section that Word 2002 adds to the RTF file:
    java.lang.NullPointerException:
         at javax.swing.text.rtf.RTFReader$StylesheetDestination$StyleDefiningDestination.close(RTFReader.java:924)
         at javax.swing.text.rtf.RTFReader.setRTFDestination(RTFReader.java:254)
         at javax.swing.text.rtf.RTFReader.handleKeyword(RTFReader.java:484)
         at javax.swing.text.rtf.RTFParser.write(RTFParser.java, Compiled Code)
         at javax.swing.text.rtf.AbstractFilter.readFromReader(AbstractFilter.java:111)
         at javax.swing.text.rtf.RTFEditorKit.read(RTFEditorKit.java:129)
         at javax.swing.text.JTextComponent.read(JTextComponent.java:1326)
         at javax.swing.JEditorPane.read(JEditorPane.java:387)
    Does anyone have similar problems or knows how I could get around this?
    I thought about writing a parser that replaces the \stylesheet section with one that works but that seems a lot of work and it does not always work (I tried that by copying and pasting...).
    Maybe I could replace the RTF converter that Word 2002 is using with another one - but how?

    Hello again,
    I found out that the 2002 version of MS Word writes a lot more of data into the file than e.g. Wordpad does.
    There is one section that causes the problem, its called "\stylesheet".
    My workaround (working in my case) is to wrap the input stream of the RTF document and remove this section (only in memory).
    See example implementation:
    <<<<<<<<<<<<<<<<<<<<<<< SOURCE CODE<<<<<<<<<<<<<
    * Copyright 2004 DaimlerChrysler TSS.
    * All Rights Reserved.
    * Last Change $Author: wiedenmann $
    * At $Date: 2004/03/31 11:08:54CEST $.
    package com.dcx.tss.swing;
    import java.io.*;
    * This class provides a workaround for parse errors in the
    * {@link javax.swing.text.rtf.RTFEditorKit}. These errors are caused
    * by new format specification for RichTextFormat (RTF V1.7).<br>
    * <br>
    * The workaround is to filter out a section of the RFT document
    * which causes an exception during parsing it. This section has no
    * impact on the display of the document, it just contains some
    * meta information used by MS Word 2002.<br>
    * The whole document will be loaded into memory and then the section
    * will be deleted in memory, there is no affect to the document
    * directly (on file system).<br>
    * <br>
    * <i>This workaround is provided without any warranty of completely solving
    * the problem.</i>
    * @version $Revision: 1.1 $
    * @author Wiedenmann
    public class RtfInputStream extends FilterReader {
    /** Search string for start of the section. */
    private static final String SEC_START = "{\\stylesheet";
    /** Search string for end of the section. */
    private static final String SEC_END = "}}";
    /** Locale store for the document data. */
    private final StringBuffer strBuf = new StringBuffer();
    * Wrapper for the input stream used by the RTF parser.<br>
    * Here the complete document will be loaded into a string buffer
    * and the section causes the problems will be deleted.<br>
    * <br>
    * @param in Stream reader for the document (e.g. {@link FileReader}).
    * @throws IOException in case of I/O errors during document loading.
    public RtfInputStream( final Reader in ) throws IOException {
    super( in );
    int numchars;
    final char[] tmpbuf = new char[2048];
    // read the whole document into StringBuffer
    do {
    numchars = in.read( tmpbuf, 0, tmpbuf.length );
    if ( numchars != -1 ) {
    strBuf.append( tmpbuf, 0, numchars );
    } while ( numchars != -1 );
    // finally delete the problem making section
    deleteStylesheet();
    * Deletion of the prblematic section.
    private void deleteStylesheet() {
    // find start of the section
    final int start = strBuf.indexOf( SEC_START );
    if ( start == -1 ) {
    // section not contained, so just return ...
    return;
    // find end of section
    final int end = strBuf.indexOf( SEC_END, start );
    // delete section
    strBuf.delete( start, end + 2 );
    * Read characters into a portion of an array.<br>
    * The data given back will be provided from local StringBuffer
    * which contains the whole document.
    * @param buf Destination buffer.
    * @param off Offset at which to start storing characters -
    * <srong>NOT RECOGNIZED HERE.</strong>.
    * @param len Maximum number of characters to read.
    * @return The number of characters read, or -1 if the end of the
    * stream has been reached
    * @exception IOException If an I/O error occurs
    public int read( final char[] buf, final int off, final int len ) throws IOException {
    if ( strBuf.length() == 0 ) {
    // if buffer is empty end of document is reached
    return -1;
    // fill destination array
    int byteCount = 0;
    for (; byteCount < len; byteCount++) {
    if ( byteCount == strBuf.length() ) {
    // end reached, stop filling
    break;
    // copy data to destination array
    buf[byteCount] = strBuf.charAt( byteCount );
    // delete to copied data from local store
    strBuf.delete( 0, byteCount + 1 );
    return byteCount;
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Integration of the warpper looks like:
    RtfInputStream inDocument = new RtfInputStream( new FileReader("test.rtf"));
    Document doc = rtf.createDefaultDocument();
    rtf.read(inDocument, doc, 0 );
    Hope this helps - for me it did :-)
    Timo Wiedenmann
    DaimlerChrysler TSS, Germany

  • Macbook screen dying problems - display or connector?

    Hey there guys, I have a serious problem with my Macbook (2007, old style) and have had it for quite a while, but it's getting worse it seems and it's stopping me from using 1 half of my screen effectively, there is a flickering line down the left hand side of the screen which is either green or purple and when I move my display it flickers and sometimes engulfs the entire left half of the screen. Now a new problem has arose as the screen turns into an odd kind of negative effect (it isn't fully negative as it is not countered out by making the screen go actually negative).
    http://www.youtube.com/watch?v=O0wdb-W0IY0
    Now I have been to the Apple Store with this problem, but as my Macbook is out of warranty it would cost £330 for a new display, but I'm thinking of trying to fix it myself and as I see it it can be 1 of 3 problems:
    - Display is broken (buy a new display)
    - Connector is loose (reattach)
    - Connector is broken (buy a new connector)
    So my question is: do you reckon this is a display fault, or connector fault?
    Thanks a lot for reading this and helping me out if you do.

    Personally I find my MBA to work perfectly for what I use it for which is mainly school related work; Word processing, data processing and internet browsing.
    There are plenty of comparisons you can find between the MBA using a SSD to the MBP without one in an attempt to show which is faster but there's really no way to accurately compare them. A better processor and GPU will increase performance in some applications while in others an SSD would give a better output. It depends on whether what you're doing can take advantage of all your CPU's potential, and possibly use the GPU to help compute, as well as what it's actually doing and whether the HD comes into play often or not.
    The MBP has a faster processor and a better GPU. While this translates into more graphical and computing power it does have a slower HD read/write. On the other hand the MBA has a slower GPU and CPU but the SSD does make up for some of that with extreme read/write times allowing for faster data transfer.
    In the midst of all this technological babble I'll just say that you would most likely get more out of the MBP than out of the MBA. The SSD is great but it does decrease your storage amount by a good deal. However, the sheer power of the i7 makes the MBP a monster of a machine and the MBA still using a Core2Duo makes it slightly weaker overall, purely in my opinion, as I'm not looking at any spec sheets.

Maybe you are looking for

  • How to get Line number from a DOM Element

    Hi I am using dom xerces parser. Is there anyway to work out which line number a element will be when it is outputted into a file ??

  • Can't open PDF file as email attachment

    I have windows xp with adobe reader 8. When I try to open a pdf attachment file in my email it wants to go to my browser and won't open. Just get a warning messege. I want it to open in adobe reader. I can save it and then open it from my documents g

  • InDesign (CS4) takes focus back after switching to other program: very annoying

    I am getting more and more annoyed by the fact that InDesign keeps taking back the focus after closing a document. I am working in InDesign (Mac OS X 10.6.4), I close the document and switch to (for instance) the Finder and suddenly I am back in InDe

  • Startup Takes Longer Than Usual

    Lately, my MacBook Pro is taking longer to startup than usual. The initial grey apple logo screen is taking a good 10-15 seconds when it used not to. Does anyone know if this has anything to do with recent software/firmware updates???

  • PM Confirmations to update CATS2 (IW42 - CATS2)

    Hi Experts, We have a business requirement to use CATS2 for a standard approach to time entry.  As such, the project that implemented SAP PM did not give access to the IW42 transaction (confirmations). Now we still have the requirement for all time c