Incopy CS4/Win: Prevent the input or change text in tables

Hi
I have a plugin for InCopy CS4. In this plugin, I like to prevent the input or the change of text in tables. This works in the layout window, I can detect if the user clicks into a table and then I prevent the input.
- How can I do this in the Galley or Story window?
- Can I prevent the user to open a table for editing the text? I mean the opening of the table via arrow.
- Can I prevent the user to input text into a table cell?
Thanks for any hint.
Kind regards
Hans

To check for text in the main story, compare the offset to ITextModel::GetPrimaryStoryThreadSpan.
For details on other threads: ITextModel::QueryStoryThread yields the thread.
::GetClass() of that object will be kTextCellContentBoss, kFootnoteReferenceBoss etc.
I never have seen IInCopyTableContext, so you have to be more specific with that "something".
From the docs I guess that it will only exist while loading the table from ICML or whatever XML.
Anyway you better keep any modifications (beyond getters) within that TextPreProcess strictly to the given data, and schedule any other changing commands that you might need.
Dirk

Similar Messages

  • JFileChooser - prevent the user to change directory

    Hi,
    I am using the class JFileChooser using the constructor JFileChooser(File path), i would like to prevent the user to change the directory showed, to limit the file choose to the given directory.
    Is it that possible? if yes, how?
    Thanks,
    Nite

    Hello Nite,
    that should be possible with a FileFilter. And of course it would be nice to walk through the FileChooser's components and remove or disable the comboBox and the directory changing buttons at the top.
    J.

  • Value of the input field changing automatically on click of enter

    I  was trying to write a simple report that has a single input field with a f4 help for a directory browser attached. the input field  can only be filled using the f4 help ( achieved through function module DYNP_VALUES_UPDATE) . The problem is after the input field is populatd if i click on enter or press f8 the text in the input field changes automatically. Please can anyone find the reason for this behaviour and provide a solution .Thanks in advance.report code attached.
    Regards,
    Kiran A.
    REPORT  zpgm_md61_error1.
    PARAMETERS: p_file TYPE string MODIF ID abc LOWER CASE .
    DATA: dyname TYPE programm,
          dynumb TYPE sy-dynnr.
    DATA: dynpfields TYPE TABLE OF dynpread WITH HEADER LINE.
    DATA: lv_folder TYPE string,
          sel_folder TYPE string.
    AT SELECTION-SCREEN OUTPUT.
      PERFORM disable.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>directory_browse
        EXPORTING
          initial_folder       = lv_folder
        CHANGING
          selected_folder      = sel_folder
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      dynpfields-fieldname = 'P_FILE'.
      MOVE sel_folder TO dynpfields-fieldvalue.
      APPEND dynpfields.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname     = dyname
          dynumb     = dynumb
        TABLES
          dynpfields = dynpfields.
    FORM disable.
      LOOP AT SCREEN.
        IF screen-group1 = 'ABC'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "dISABLE

    Hello Kiran,
    This is because you've defined the field as TYPE STRING.
    Change the declaration & the problem should be solved:
    PARAMETERS: p_file TYPE dynfieldvalue MODIF ID abc LOWER CASE .
    BR,
    Suhas

  • Inequality condition prevents the optimizer from selecting indices on tabl

    Dear all,
    I have the below query which takes 4 minutes to give the output:
    original query
    select t_sub.contrno "contNo" from tsk_subno t_sub ,arm_subs_balance bal where order_no = '5360' and
    order_type='NET' and t_sub.subno = bal.subno (+);sql tuning advisor is giving the below advise.. Restructure SQL
    Predicate NVL("IVM_BILLING"."BILLED",'N')<>'Y' used at line ID 14 of the execution plan is an inequality condition on indexed column "SYS_NC00071$". This inequality condition prevents the optimizer from selecting indices on table "TABS"."IVM_BILLING".How I can restructure the sql..
    FYI. arm_subs_balance is a view which takes data from IVM_BILLING.
    view script :
    CREATE OR REPLACE VIEW ARM_SUBS_BALANCE
    (CONTRNO, SUBNO, PAST_DUE, DEPOSIT, UNBILLED,
    TOTAL)
    AS
    SELECT contrno,subno,sum(past_due) past_due,sum(deposit) deposit,
           sum(unbilled) unbilled,
           sum(past_due+deposit+unbilled) total
    from
    select subno,0 past_due,0 deposit,0 unbilled,contrno
      from CRM_USER_INFO
    union all
    select nvl(H.subno,'0000000') subno, sum(nvl(R.ar_am_loc,0)) past_due,
           0 deposit,0 unbilled, R.contrno
      from     IVM_INVOICE_DETAIL R, IVM_INVOICE_RECORD H
      WHERE R.AR_REF=H.AR_REF
       and R.contrno = H.contrno
    group by nvl(H.subno,'0000000'),R.contrno
    having sum(nvl(R.ar_am_loc,0)) != 0
    union all
    select subno,0 past_due,nvl(add_deposit,0) depoist,
           0 unbilled, contrno
      from CRM_USER_EQUIPMENTS
    union all
    select subno,0 past_due,0 deposit, nvl(billamount,0) unbilled,
           contrno
      from IVM_BILLING
    where nvl(billed,'N') != 'Y'
    group by subno,contrnoThanks
    Kai
    Edited by: KaiS on Sep 30, 2009 10:10 AM

    Justin,
    I always thought that nvl(billed,'N') != 'Y' meant that the query should include all rows with a null-value or a value other than Y. :p
    But I agree that the index would moste likely not be that helpfull, but we need more information for that: [When your query takes too long|http://forums.oracle.com/forums/thread.jspa?messageID=1812597] and [HOW TO: Post a SQL statement tuning request |http://forums.oracle.com/forums/thread.jspa?threadID=863295]
    I expect that the conditions on tsk_subno will result in a small number of rows and that there's an index on tsk_subno.order_no which will be used to retrieve those rows.
    In that case view arm_subs_balance will be accessed on subno. This means that if the tables crm_user_info, crm_user_equipments and ivm_billing have indexes on subno, those indexes will be used, but an index on ivm_invoice_record.subno will not be used because of select nvl(H.subno,'0000000') subnoWithout more information I would guess that this part of the union takes longest and should be tuned by rethinking/redesigning the view or a function based index: create index i on IVM_INVOICE_RECORD ( nvl(H.subno,'0000000') );

  • HT201304 iOS parental controls do not prevent the child from changing the device passcode.

    So the parent cannot get into the device at all unless the child provides the passcode. Sure, the device can be taken away until the child provides the passcode, but why don't parental controls just prevent the passcode from being changed?  Either that, or the parental control passcode should allow the parent to get into the device, over-riding the passcode lock.

    We are not Apple iOS programmers.  Just device users like yourself.
    feedback.apple.com is where you should send suggestions.

  • Effect on the View after changes in a Table of other software component

    What should we consider before making changes to a Table T1, if there are Views (based on T1) in other software components or other layers?

    Hi Animesh,
    Hope you are aware of SAP's RELATIONAL DATABASE MANAGEMENT SYSTEM,  How the tables are linked.
    Just search on SCN or Google to learn more about it.
    Regards
    Abhii

  • Bridge cs4 is preventing the use of filters.

    I just purchase a new iMac. I installed my adobe ps cs4 that I purchased while using my older mac. Now, however when I open a picture in Bridge to
    review and then open PS cs4 it will not load my purchased filters for PS cs4.  However, if I open pictures in Photoshop with out using Bridge the
    filters are there and can be used.

    You are going to have a hard time disabling any of the windows key combos (ctrl-alt-del, alt-tab, ctrl-esc, ...).
    First, Java was written as a cross-platform language. This means that operating system specific features are not going to be supported. (It doesn't even directly support creation date on files). However, you can call native code (c, assembly, ...) with a Java interface called JNI.
    This bring me to my second point. Ctrl-Alt-Del is a security feature in windows. It is meant to make sure the login procedure is controlled by windows and to allow the user to have control over the running tasks. I doubt there is even a Windows call you can make to disable it (I'm guessing, but it makes sense).

  • Indesign prevents the possibility to change the language

    Hi,
    I am using Indesign CS6 and wile opening the application i can switch from English to Hebrew without a problem, but for a reason i cannot understand (i didnt finda common denominator) at some point in time the option to switch to Hebrew is disabled (only in indesign).
    I am using an early 2008 mac pro with 20 Gigs of RAM & OSX 10.7.5.
    attached is a screen shot that shows the problem:
    by the way, closing and reopening re enables language switching but is far from convenient wile having to work on 6-7 indd files on the same time.
    hanks in advance
    Ayal Shapira
    Israel.

    OK, i think i wasnt precise in my descriptions:
    1) The problem happend's only after i am working for a wile and in all the other applications i can still switch to Hebrew just not in indesign.
    (i don't think its an OS bug)
    2) i installed a fresh copy of indesign cs6 on a different machine (macbook pro) that has a fresh copy of the OSX and the same problem acurs.
    i will try to be even more exact wile in indesign i am unable to switch to Hebrew in Photoshop, chrome, safari ... i can still switch to Hebrew & this happend's after some time working with indesign, restarting indesign solves the problem just for a wile but then all of a sudden (after an un known amount of time) the symptom happend's again.

  • Based on the input parameter can OBIEE select table at run time

    For e.g if we select monthly from the drop down then the same report must fetch data from monthly report
    and at the same time if a persons selects daily then the same reprot must fetch data from daily table.

    Let's assign a presentation variable to the drop down values i.e. var_Status
    Now in functionality of the column that you want to change it's functionality dynamically depends on your selection... write this formula
    case when '@{var_Status}' = 'Daily' then Table1.Col1 else Table2.col2 end
    Because of this.. we can't have dynamic column heading for this column.
    One more approach is: Same Presentation variable but with Sectional Guided navigation properties.
    see here: http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-selecting-reports-from-dashboard-prompts-and-guided-navigation-sections/
    You have to develop 2 reports for this..
    Regards
    Kishore Guggilla

  • How do I prevent the first line of text in a link from becoming indented?

    Hello.  In a div are two sentences.  They look fine until I change the second sentence into a link.  I tried adding a <span> tag, but doing so changed the class.  I tried placing the text of the second sentence into a separate div tag, but that didn't work either.  I tried applying a negative value in the text indent field but that moved that first sentence instead of the second sentence.  I am having trouble getting the div containing the second sentence to move into location beneath the first sentence, so I decided to work with all of the text inside of one div tag.  I would appreciate it if someone would let me know how to have both sentences be in a flush left position.  Thank you.

    The indent comes from the padding-left: 7px; in the CSS rule for the <a> tag
    a:link {
              color: #FFF;
              background-color: #000;
              text-align: center;
              padding-top: 8px;
              padding-right: 8px;
              padding-bottom: 8px;
              padding-left: 7px; /* CREATES UNWANTED LEFT INDENT IN FOOTER LINKS */
              text-decoration: none;
    That rule is good for your menu but not your footer links so create a new set of rules for links in the footer.
    .footer_cc_license a:link { 
              color: #FFF;
              background-color: #000;
    .footer_cc_license a:visited {
      color: #FFF;
      background-color: #000;
    .footer_cc_license a:hover {
      color: #FFF;
      background-color: #000;
       text-decoration: underline;
    .footer_cc_license a:active {
      color: #FFF;
      background-color: #000;
      text-decoration: underline;

  • Exit for FB02 in order to restrict the users to change text & Long text

    Hi All,
    In FB02 for each line item there is a text field and a Long text option.
    my requirement is to restrict some users to change the long text and text values though the users have authorization to FB02.
    Thanks in advance,
    Regards,
    Deepak

    Hi Firoz,
    we have similar requirement..Please help us.
    In FB02 the SGTXT (Text field) field should be editable only for particular users.
    Can you please give the procedure you have done with screen shots if possible.
    Regards,
    Khaja

  • How to find the transport that changed a field/table

    Hi Experts,
    My issue is we have three transports.  All three were successfully transported in PRD and there were no errors.  BUT when we compare table T012 in PRD to T012 DEV and T012 QAS, T012 PRD is wrong.  One of the changes did not make it.  How can I find out which transport affected T012? Will I be able to search down to the field affected?

    Hi Marianne,
    It might be possible that transports deployment sequence to Production is not same as other system deployment sequence.
    Please check the same in table-E071.
    Regards,
    Sudeesh Soni

  • How to capture the data input in the input box like text box  on webpage?

    I would like to know how to use the data we key in in the textbox on the webpage and write it to database using JSP

    I would like to know how to use the data we key in in
    the textbox on the webpage and write it to database
    using JSPIf you want to store it into database....you'll need that
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:YourDSN");
    Statement stat = con.createStatement();
    String query = "INSERT INTO yourTable (Field) VALUES(TextBox value)";
    stat.executeQuery(query);
    con.close()
    Not tested but should work (depends also on your configuration)

  • InCopy CS4 display language problem

    Our organization has just installed InCopy CS4 (Win version). Suppose we all install Chinese version, so the display of InCopy CS4 should be Chinese. However, we found that some of our computers display english.
    How can we change back to display Chinese? Some one told us to check the setting of control panel, change the language to Chinese(Taiwan). We did, but still display English, What's the problem?
    Hope some one can answer my questions. Thanks

    "Updated Video Drivers" seems to be the latest chorus around here.
    It's like a song that you really hate and can't get out of your mind. No matter how many times you check for new video drivers, the problems don't go away.

  • InCopy CS4 Help is now live

    Even though InCopy CS4 hasn't shipped yet, weve just posted InCopy CS4 Help on the Web:
    http://help.adobe.com/en_US/InCopy/6.0/index.html
    We still have some work to do and bugs to fix, but we figured that youd get a lot of benefit from taking an early peek. Here's the topic describing the new CS4 features:
    http://help.adobe.com/en_US/InCopy/6.0/WSCDACE703-28F6-4359-A3BB-150C6957B4DD.html
    Note that many links to video tutorials, other Help documents, and white papers are still not functional, and the search doesnt really work yet. And commenting isnt turned on yet. This should all be fixed when we ship.
    You may also want to take a sneak peak at the new community custom search engine, which is still under construction:
    http://community.adobe.com/help/
    Feel free to contact me if you have suggestions for improving Help. Also, if you find any sites that should be included in the custom search engine, let me know: [email protected]

    That's sweet! It's been frustrating hitting the dead link instead of actual help.
    Right off the top of my head, the one thing I immediately notice would be that friendlier URLs would be nice. Any plans for them in the future?
    For example, the link to Searching Using GREP Expressions right now is:
    http://help.adobe.com/en_US/InDesign/6.0/WS1952D538-1335-4b1d-BA5E-FA5A176FDC9Fa.html
    Would be nice if it was more like:
    http://help.adobe.com/en_US/InDesign/6.0/search-using-grep-expressions.html
    or even the whole path:
    http://help.adobe.com/en_US/InDesign/6.0/text/find-change/search-using-grep-expressions.ht ml

Maybe you are looking for

  • How to close extended classic PO in ECC...

    Hi Friends... We are in SRM 7.02 and ECC 6.05 in Extended Classic Scenario. One PO had been created for 1 Quantity 3 years ago. There was no GR/IR document posted against that PO. Now that PO had been archieved from SRM. But still PO is available in

  • Adobe Acrobat XI Pro won't download

    I'm getting an error message that it won't download because I'm using an old version of Internet Explorer, which isn't true.  I'm using IE 10.  How do I resolve this?

  • IOException: invalid content type for SOAP: TEXT/HTML

    Hi all, After the IS received a SOAP request successfully and sent it to the Adapter Engine I get an IOException in my SOAP Adapter (I configured a SOAP communication channel). From my RWB I can see: 2005-08-12 10:53:17 Success SOAP: request message

  • How steep is the learning curve for InDesign?

    5-1 I am a book author and previous works are out of print. I have scanned and digitized the books but need to revise and re-print several that are filled with color photos, using on-dermand technology. SOem of these books will also be pub;ished as e

  • ITunes An unknown error occurred (-45054).  When running OS X Server 10.9

    On 10.9 this error message results when iTunes is unable to access '/Users/Shared'. In a non-server environment the problem is resolved by running Disk Utility and performing "Repair Disk Permissions". If you are running OS X Server, File Sharing wil