Using  cl_gui_textedit, text blocks always display prior document.

We have two containers and we're using two instances of cl_gui_textedit.
On the first call to the text screen, we see the two texts that we should see.
The user saves the data and backs out to the selection screen, which contains an ALV display of documents. 
The user selects the next document to process.  During initialization, we attempt the FREE destructor but it does not destroy the text editor ref to cl_gui_textedit.  We can initialize with clear and free as ABAP statement.  Upon entry to the PBO, we can see that we have forcibly cleared the ref to cl_gui_textedit.  It's 0: INITIAL for both text editors.  We watch the table being built and the internal tables contain the correct text.   After our set read_only true or false, we get a beep, and then arrive at our text screen without any error message.
What is on the screen at that point will be the texts from the prior document.  We've tried inserting lifetime parameters for our custom container.  We've tried CALL METHOD cl_gui_cfw=>flush (which appears to always be necessary in PAI when we get the unprotected portion and the indices, etc.).  Neither of these alter the behavior of the screen and the erroneous content of the text editor blocks.
Question:  is there a method or something that anyone can suggest to "force" the text blocks to contain the data that was in the table, rather than the data that was in the table for the prior transaction?

Did you try calling the method DELETE_TEXT of the CL_GUI_TEXTEDIT before setting up the next text.
This is how I get rid of the existing text:
* Delete the Text
  me->o_editor->delete_text( ).
* Set the new text
  me->o_editor->set_textstream( EXPORTING text = iv_text ).
Regards,
Naimesh Patel

Similar Messages

  • Last text block not displaying correctly after XML import.

    Hi,
    I have an .indd template (CS6) and script which imports XML and flows it into as many pages as it requires.
    Occassionaly on the last page, the text doesn't display although it is all there and formatted correctly. Going in and out of preview mode doesn't change it.
    If I click on the out port or resize the text box slightly, it displays and is fine from then on.
    Any suggestions as to fixing it?
    As always, many thanks in advance for any assistance.
    Cheers,
    Simon.

    Hi Jeff,
    Thanks for that. I get 'story is undefined' - how do I defined the story (autoflowed text)?
    Sorry for the newbie question - vascilating between various projects at the moment.
    Cheers,
    Simon.

  • I NEED a larger cursor & TOOLTIPS because I am visually impaired. In use, the text is always covered by the cursor and as such is unreadable and therefore u s

    Most comfortable AND practical cursor size for me seems to be midway between MAX and MIN. I like a minimum of 12 point text (14 is better) but some text is provided as an image in small type (useless) and many times editors allow 10 or even 8 point text. I don't want or need high contrast, I will not use flashing text, It would be nice to receive consideration and have this nightmare solved.
    Thanks in advance to anyone who can help me.

    For Windows users I may suggest tools and advice from the following site, and It may also be possible to get advice relating to Mac over there.
    * http://www.accessfirefox.org/
    I know in Windows cursor size and features can be modified from the Windows control panel. It may be worth trying to ask on Mac sites to see it thy can help you.
    Regarding modifying text of the browsers webpage content possibly the addon no squint would help you. Or for even higher customisation consider grease monkey scripts
    * https://addons.mozilla.org/en-US/firefox/addon/nosquint/
    * https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
    ** https://en.wikipedia.org/wiki/Greasemonkey
    I do not know if there may already be a suitable add-on for modifying the cursor to meet your requirements you could wade through this listing
    *https://addons.mozilla.org/en-US/firefox/search/?q=cursor&platform=mac

  • How to use adifferent Show form to display a document created by XML forms

    Hi,
    I have created some XML documents using an XML form.
    The XML form contains two Show forms, Show & Show2. The default is Show. When I view the XML document via a KM Docs iView the default Show form is used to display the resource.
    If I wish to display the XML document using a KM Docs iView, but using the Show2 (non-default) form how is this done?
    I have created Layout Sets for each of the different ways to display the XML forms, but there is no option to choose Layout Set in the KM Docs iView config.
    Thanks,
      Tom
    Edited by: Tom Parle on Apr 3, 2008 12:45 PM

    Hi Tom,
    Check out the SAP Help site [Linking Your Own List Forms into iViews|http://help.sap.com/saphelp_nw04s/helpdata/en/0e/1affa0f8c47447a164998b60025aea/frameset.htm]
    I think it explains exactly what you are looking for.
    Hope it helps,
    Robert

  • When using 2 monitors, Finder always displays on primary monitor even after dragging to 2nd monitor.

    How can I set Finder to display to 2nd monitor.  I drag it to the second monitor, but it still display on primary monitor when next opened.

    Thank you for your reply. No other program behaves this way, even PhotoShop CS4. It is related to how the program handles OS events.
    It is probably a problem with the Windows WM_GETMINMAXINFO and WM_SIZE handlers. My guess is that program stores the maximized size (and it always fills the screen at start-up) and it query to see if it is dragged to a larger screen.
    Of course, this theory doesn't address the disappearing program behavior when maximized on the secondary monitor. Since I don't have another OS, I cannot check if it is Vista related or Windows related. Because of the difference in architecture, I'd be surprised if it happened on a Mac, too.

  • Document management system using oracle text

    i plan to create document management system using oracle text with following features
    1) document comparision
    2) document search
    and more...
    can oracle text be used to display documents of various formats by converting them to HTML. and can search keywords be highlighted in the document.
    please help!

    Have you ever considered doing this in Oracle Application Express (free on top of the Oracle database)? How about something like:
    http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm
    Index the files using the CONTEXT index, and perhaps the docs' meta with it using the Oracle Text MULTI_COLUMN_DATASTORE, and then when you write your query for a report on the documents include a search string.
    I've created a number of APEX-based document management systems and it is quite easy once you get the hang of using this environment. I suggest looking at some of the tutorials/how-to documents and you'll be on your way quickly.
    Start with the upload application. Once you can get your documents in, create a report that shows everything except the document. Verify all of this works correctly.
    Add some "items" to the page for the report, and include them as bind variables in the where clause.
    After that, add your Oracle Text index to the database, and toss in a "text-field" item to the APEX page. Modify your report query, adding the CONTAINS clause, and use the newly created item as a bind variable. There's your keyword search.
    Linking to Oracle Apps is done through API's and may be over database links.
    Hope it helps. Though not a step-by-step how to document, this should point you in the right direction. Get familiar with APEX as that covers most of what you described.
    -Ron

  • Display Word Document as read only in VI pannel

    In a VI pannel I put an Active X container with the IE browser to display Word documents.
    The document are displayed properly but I want not give the user the possibility to make changes while viewing.
    Is there a solution to do so?
    (The documents are read-only and can not be saved.)

    Why use an IE container to display Word documents? You can place a word document directly in the ActiveX container. This seems a better choice.
    If you wish to totally block user-input, you can place a transparent picture control over the display of the Word document.
    Another alternative would be to convert the word document to a PDF and show this in an AcviteX container.
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • Using intermedia text

    Hello,
    I'm working on a website at the moment which is cgi based and has an Oracle 8i backend.
    On this website users can upload word documents etc into an knowledge base. These documents are physically held on the file system
    What I want to do is to upload the documents to an Oracle table and then use intermedia text to search on these documents. I would like to avail of intermedia Themes & Gists and the "ranking" system it uses. In other words I would like the search to return something similar to the search results you find in Oracle Portal.
    Any information on how to incorporate oracle intermedia into an existing cgi based website would be much appreciated.
    thank you.
    aidan

    Hi,
    For documentation see here on technet: products -> Oracle Text.
    You don't have to load the documents into the database when they are already in the filesystem.
    You can create a table with an entry for each filename.
    Here is a sample script for FILE_DATASTORE with INSO FILTER (for filtering word and other documents).
    =========================================================
    -- Sample INSO Filter and FileDatastore
    drop table datastores;
    create table datastores(id number primary key, docs varchar2(2000));
    insert into datastores values(1,'whitepaper.pdf');
    commit;
    -- Create Preferences
    exec CTX_DDL.drop_preference('MY_LEXER');
    exec CTX_DDL.create_preference('MY_LEXER','BASIC_LEXER');
    exec CTX_DDL.set_attribute('MY_LEXER','BASE_LETTER','YES');
    exec CTX_DDL.set_attribute('MY_LEXER','MIXED_CASE', 'NO');
    exec CTX_DDL.set_attribute('MY_LEXER','INDEX_THEMES','NO');
    exec CTX_DDL.set_attribute('MY_LEXER','INDEX_TEXT', 'YES');
    exec ctx_ddl.drop_section_group ('MY_SECTION');
    exec ctx_ddl.create_section_group ('MY_SECTION','NULL_SECTION_GROUP');
    exec ctx_ddl.drop_preference('COMMON_DIR');
    exec ctx_ddl.create_preference('COMMON_DIR','FILE_DATASTORE');
    exec ctx_ddl.set_attribute('COMMON_DIR','PATH','/tmp/pdf');
    exec Ctx_Ddl.Drop_Preference ('inso_filter_pref');
    exec Ctx_Ddl.Create_Preference ('INSO_FILTER_PREF', 'INSO_FILTER');
    -- Create Text Index
    -- drop index datastores_text;
    exec ctx_output.start_log('index.log');
    create index datastores_text on datastores (docs)
    indextype is ctxsys.context
    parameters ('datastore COMMON_DIR
    filter INSO_FILTER_PREF
    lexer MY_LEXER
    section group MY_SECTION
    memory 50M');
    exec ctx_output.end_log;
    select count(*) from dr$datastores_text$i;
    select token_text from dr$datastores_text$i;

  • Using InterMedia Text with FrameMaker, StarOffice...

    I'm planning to use InterMedia text with various kinds of documents, but inso filter does not support them. In particular, it does not support:
    - Framemaker
    - PostScript (I know it works on encapsulated PostScript)
    - Applix
    Where can I find the right filters?
    Is there a way to use InterMedia text with these documents?
    Thank you
    Paolo Bonanomi

    I'd suggest searching the web - there are a number of little freeware filters out there that could be used as user-filters.>Have anybody found a postscript filter and can post it here ?
    Regards,
    Mihai

  • Cannot chain text blocks together

    Does anyone else have this problem!  It has me really irritated tonight.  Usually when it doesn't work I can copy what I need and create a new document.  Paste my text blocks into the new document and than chain them together.  After they are properly chained together which seems to work fine in the new document I can copy everything and paste them back into my original document and move on with my life.
    Tonight however, when I create a new document the software will still not present the chain to me when I click on the red plus sign and than hover over another text block. 
    Has anyone else experienced this?  And what work arounds have you come up with?
    Randy

    Eugene Tyson wrote:
    The text frame you're linking to has to be empty.
    Not so.
    OP, try this: Replace Your Preferences or this: Remove minor corruption by exporting

  • Is it possible to use NUMCHARS to display the number of characters in a block of text instead of the whole document? How?

    Is it possible to use NUMCHARS to display the number of characters in a block of text instead of the whole document? How?

    Getting the character count for a paragraph is trivial:
    Sub NumChars1()
    MsgBox Selection.Paragraphs(1).Range.Characters.Count
    End Sub
    Even outputting it to the document is trivial:
    Sub NumChars2()
    With Selection.Paragraphs(1)
      .Range.InsertAfter .Range.Characters.Count
    End With
    End Sub
    The real issue comes when you want to update the document. If the destination paragraph is only ever empty or contains the character count of the previous paragraph, you could use:
    Sub NumChars3()
    With Selection.Paragraphs(1)
      .Next.Range.Text = .Range.Characters.Count & vbCr
    End With
    End Sub
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Text Editor using cl_gui_textedit

    Hi,
    I need a text editor box on selection screen in display mode. and I'm using cl_gui_textedit class to get it.. but for some reason its not working.
    Here is the code below -
    report YLTEST1
           no standard page heading line-size 255.
    DATA: g_text_editor             TYPE REF TO cl_gui_textedit,
          g_text_container          TYPE REF TO cl_gui_custom_container,
          g_gen_text_editor         TYPE REF TO cl_gui_textedit,
          g_gen_text_container      TYPE REF TO cl_gui_custom_container.
      DATA: WORDWRAP_POSITION LIKE CL_GUI_TEXTEDIT=>M_WORDWRAP_POSITION.
      data: g_gen_txt_container       TYPE scrfname VALUE  'GENERAL_TEXT_FOR_REPS'.
      DATA: TEXT_TAB      TYPE STANDARD TABLE OF LINE.
    parameters: p_check.
    at selection-screen output.
    Create sales Text container
      WORDWRAP_POSITION = 100.
      IF G_GEN_TEXT_CONTAINER IS INITIAL.
            CREATE OBJECT:
                 G_GEN_TEXT_CONTAINER EXPORTING CONTAINER_NAME = G_GEN_TXT_CONTAINER,
                 G_GEN_TEXT_EDITOR    EXPORTING PARENT = G_GEN_TEXT_CONTAINER
                 WORDWRAP_MODE =  CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
                 WORDWRAP_POSITION = WORDWRAP_POSITION
                 WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.
      ENDIF.
      IF not G_GEN_TEXT_CONTAINER IS INITIAL.
    Set container options
      CALL METHOD: G_GEN_TEXT_EDITOR->SET_TOOLBAR_MODE
                                  EXPORTING TOOLBAR_MODE   = 0,
                   G_GEN_TEXT_EDITOR->SET_READONLY_MODE
                                  EXPORTING READONLY_MODE  = 1,
                   G_GEN_TEXT_EDITOR->SET_STATUSBAR_MODE
                                  EXPORTING STATUSBAR_MODE = 0,
                   G_GEN_TEXT_EDITOR->SET_AUTOINDENT_MODE
                                  EXPORTING AUTO_INDENT    = 1.
    Pass the text to the sales text container
      CALL METHOD G_GEN_TEXT_EDITOR->SET_TEXT_AS_STREAM
        EXPORTING
          TEXT = TEXT_TAB.
      endif.

    Try this way:
    DATA: lo_dock TYPE REF TO cl_gui_docking_container.
    DATA: lo_text_editor TYPE REF TO cl_gui_textedit.
    DATA: lt_tab TYPE STANDARD TABLE OF char80.
    DATA: la_tab LIKE LINE OF lt_tab.
    DATA: w_carrid TYPE sflight-carrid.
    ** Selection Screen
    SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE aaa.
    SELECT-OPTIONS: s_carrid FOR w_carrid.
    SELECTION-SCREEN: END   OF BLOCK blk1.
    INITIALIZATION.
    * Docking container
      CHECK lo_dock IS INITIAL.
      CREATE OBJECT lo_dock
        EXPORTING
          repid     = sy-cprog
          dynnr     = sy-dynnr
          ratio     = 80
          side      = cl_gui_docking_container=>dock_at_bottom
          name      = 'DOCK_CONT'.
      IF sy-subrc <> 0.
        MESSAGE 'Error in the Docking control' TYPE 'S'.
      ENDIF.
    * Text Editor
      CREATE OBJECT lo_text_editor
        EXPORTING
          parent                 = lo_dock
        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.
    * Set text
      la_tab = 'This is test'.
      APPEND la_tab TO lt_tab.
      CALL METHOD lo_text_editor->set_text_as_r3table
        EXPORTING
          table           = lt_tab
        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.
    Regards,
    Naimesh Patel

  • How do I use page numbering and a text block in a footer in Word with the Report Generation Toolkit?

    I am creating a Word document with the Report Generation Toolkit, and LabVIEW 8.2.1. In the report I am using a template that has page numbering enabled in the center. When I try to add a text block to the left side footer, it eliminates the page numbering and adds my text on the left side. I found "Set Report Footer Text" and "Word Set Page Numbering" vi's that may be the clue to this. When I use these two vi's I either get Page 1 of 456789-001 on the left side, or if I reverse the order I get only 456789-001(text) in the left side with nothing in the center. What I would like to achieve is 456789-001(text) on the left footer, and Page 1 of 2 in the center. Is this possible and if it is, then how can I do it?

    Hi SciManStev,
    I have attached a vi where you can see how they can be made to work together. You have to design it such that one follows the other. If you don't design it that way, it results in a race condition and only one of them get executed.
    Good Luck!
    Warm regards,
    Karunya R
    National Instruments
    Applications Engineer
    Attachments:
    SciMan1.vi ‏14 KB

  • How can I have a standard text block appear on the last page of my documents?

    How can I have a standard text block appear on the last page of my documents without having to type it in all the time? I have a terms statement with a line for a customer’s signature which I want on the last page of my invoices and right now I have to type it in each time or cut and paste it from a previous invoice. I already have a Master Page that includes the customer information and my company information at the top of each page and I am using data merge to fill each page with the items ordered and their pictures etc. I would just like to have this standard terms block automatically show up on the last page after the last item in the data merge.
    Thank you all in advance for your help.

    Thank you Peter. This works. I have the text block now at the bottom of a second master page which I apply to the last page. For aesthetics I can modify the position of the text block in the new master page to bring it up from the bottom under the last item ordered when there is less than 4 items on the page. (my data merge fits up to 4 items with their images on a page).  If the last page is full I’ll insert a final page using the second master and also bring it up to the top of the page.

  • Acrobat 9.5 - use Touchup text Tool to edit PDF. Updates do not display. But, if I "save as" Word doc, the edits appear in Word. This feature worked in earlier versions of 9.x patches.

    Acrobat 9.5 - use Touchup text Tool to edit PDF. Updates do not display. But, if I "save as" Word doc, the edits appear in Word. This feature worked in earlier versions of 9.x patches.

    I have a suspicion you're working with a scanned document that has had OCR run to recognize the text. The recognized text may be stored on an invisible layer above the image of the text, and that is what you're toucing up. It's invisible, so you don't see it, but retains the changes, so exporting produces the new edits.
    When you run OCR to recognize scanned text,, try using the ClearScan option, instead of Searchable Text. See this help page on Acrobat (this is for version X, but still applies):
    Adobe Acrobat X Pro * Recognize Text - General Settings dialog box
    mh++

Maybe you are looking for

  • Mid-process Receive (onEvent) is not picking up published event

    We have a composite (CompositeA), which has 2 BPEL processes (bpelprocess1 and bpelprocess2). bpelprocess1 is synchronous and bpelprocess2 is a one-way. bpelprocess1 receives a message from the client - then sends the message using a one-way Invoke a

  • Having a problem downloading w/Adobe Reader Ver. 9.4.2 that does not occur with Ver 8.2.0

    I use a screening service for rental applicants that provides their reports in pdf format.  I am unable to view or view some of their reports when using Adobe Reader Ver. 9.4.2.  However, I can view and print all of their reports when using Adobe Rea

  • Jsf portlet communication

    Dear All I have two JSF portlets on the same portal page both in the same context. I want to update the view of one portlet on the basis of a user click on the other portlet. Is there some event notification mechanism using which i can do this? I am

  • How can I find the BNAME (USR01-BNAME) with BUT000

    Hello, I have a dataset from the table BUT000 and need the value from the corresponding table USR01 dataset (field BNAME). Have anybody an idea ? Marc

  • VB Oracle Express

    I will create OLAP cubes using ORACLE EXPRESS. I want to access those cubes using VB front end. How can i call this . Can u please send me a article/Sample Code /URL's related this . THanks in Advance