Can you change a story or text frame's index? (re autonumbering)

Does anyone know if there is a way to change the index of a text frame or story without changing the actual visual layout of an InDesign document? So far all I can come up with is to cut the frame and repaste it into the document. You can move a story within the index list of a document, but that visually cuts and pastes the story text.
actDoc.stories.item(1).move(LocationOptions.BEFORE, actDoc.stories.item(0));
I can't see any method to change the index of a text frame (other than cutting and repasting).
I want to put together some tests. I have a bunch of questions. Each question is a single story in a single text frame in an InDesign document. The text frame is linked to an InCopy document. The first paragraph of the question has a "QuestionNumber" style but the para style has no numbering. I want to have only one version of each question (the InCopy story) but to put the questions into different tests in different orders with different numbering. What I do is to create an InDesign template for the tests that has a QuestionNumber para style that includes autonumbering with the "Continue Numbers across Stories" option checked. This works beautifully and the questions are numbered in the order in which the text frames (and stories) are (via a script) copied from the question document and pasted into the test paper document. When the same question/story/textframe is used in two tests it is numbered in the order in which it is pasted into each test paper (but the original stays the same because it has no numbering).
The next step would be to be able to reorder the question numbers within the test paper (if you wanted to, say, swap questions 18 and 20). To do that you have to change the index of the story because the autonumbering across stories seems to depend on the index of the story.
What seems to happen is that stories are indexed in the order in which they are pasted into a document, but text frames are indexed in the opposite order. If you paste a text frame with one story into a new document, it is textframe.item(0) and story.item(0). If you then paste a second one into the document it is story.item(1) but textframe.item(0). The first text frame becomes textframe.item(1). When you cut a text frame and repaste it, it is reindexed as if you were pasting it for the first time.
The autonumbering also seems to be segregated by page. If you have questions 1 and 2 on page 1 and questions 3 and 4 on page 2, you can move around the text frames for 1 and 2 on the page but the numbering stays the same. Likewise for 3 and 4. If you drag 3 across to page 1 it stays as 3 but if you drag question 4 across to page 1 it becomes 3, and the original question 3 on page 2 becomes question 4. It is confusing but makes sense in a weird way once you get the hang of it.
Anyway, I have probably answered my own question and the best way to renumber the questions in a test is to run the script again and create a new document using a new question order.
But any other ideas are welcome.
Thanks.

hi Brian
which version of InDesign you have ?
I have checked these steps on CS3 and CS4:
first I've set ON to option in preferences to preserve links when placing
then I've placed DOC file as AnchoredTF in new Story
then I've copied this AnchoredTF and pasted it on page, and then I've pasted it as another AnchoredTF - each time there was new lick created to the same DOC file
then I've set OFF to option in preferences to preserve links when placing
and even when I again copied and pasted this AnchoredTF with placed DOC file - it still add new link on Links palette
so maybe with InCopy stories there is next bug or next "feature" ...
[edit]
ok - I've checked InCopy file - after exporting TextFrame as InCopy Story
and it's like you've said - pasting on page - new link is created - pasting as Anchored - link isn't created ... no matter if option in preferences is set or not ...
verdict - we've found new bug
BUT ... if you link it again - by CTRL+D method - link is preserved even if option in preferences is set to off so you can have more than one InCopy Story placed as AnchoredTF in same parent Story ...
robin
www.adobescripts.co.uk

Similar Messages

  • Can you change the format of text in Track Text Edits?

    My client wants changed text to be blue double-underlined. I can apply a character tag to changed text to create the double underline, but it will not change the color to blue from the default forest green.
    Is there a way to customize the format of the Track Text Edits text? Please help as soon as you can because I'm starting this project today using conditional text for the deletions and character formatting for the changes and insertions in this ~300 page book.
    Thanks,
    Karen

    Karen,
    The track edit changes are just special formats of Condition Catalog items that are unfortunately hardwired. You can save them as MIF, edit the color, e.g.
    <Condition
      <CTag `FM8_TRACK_CHANGES_ADDED'>
      <CState CShown>
      <CStyle CUnderline>
      <CSeparation 10>
      <CColor `Forest Green'>  <-- change to Blue ro whatever is defined in the Color catalog.
      <CAndCondition >
    > # end of Condition
    <Condition
      <CTag `FM8_TRACK_CHANGES_DELETED'>
      <CState CShown>
      <CStyle CStrike>
      <CSeparation 2>
      <CColor `Red'>
      <CAndCondition >
    > # end of Condition
    HOWEVER, FM dutifully changes these back when you re-open the MIF fle. No can do manually.
    IIRC, I believe that Rick Quatro has written a Framescript that does some magic here. You might want to contact him - see:
    http://www.frameexpert.com

  • How do you change the color of text messages?

    Can you change the color of text messages?  If so, how?

    Two colors. Blue and green.
    Green is for text message. Blue is for iMessage. You can't change these, though.

  • Can you change the wording of a text that someone sent you ?

    my sister sent someone a text , they in turn showed me on their phone with her name/number at the top of the feed  to prove she said something to this person about this certain subject . She is denying everything in this text and said he altered it to show me what he wanted me to see . Can you change the wording on a text sent from someone in their feed with their name/number at the top of the feed? Does this make sense ? What I do know is , you can copy and paste and change the wording when sending that text to someone else , but he showed me his own phone with these incriminating texts.

    No you can't

  • Can you change graphic text at runtime?

    can you change a text graphic item at runtime? There's no property for the text itself, or a visible property.

    No - use a Display Item - or put the text on a Stacked canvas and you can then hide the whole lot.

  • Can you change where a clip connects to the story line?

    Anyone?

    The question's kind of vague. A clip gets connected to  the primary storyline based on where the skimmer or playhead is. If you want them connected at a different place move the skimmer before you make the edit.
    If you mean can you change the connection point of a connected clip without changing its position, yes, you can. You option-command click on the lower edge of the connected clip at the point at which you want it attached to the primary storyline.

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • How can you change the bubble color in the message app on the iphone 5

    How can you change the bubble color in the message app on the iphone 5?

    If you are having trouble reading your texts you can increase the font size until it becomes clear. Put in a feature request for the colour change though, it won't happen unless people ask for it.

  • Can you change the worktop color in version 9?

    Hi! 
    I find it very difficult to read the text captions on the black face of the worktop.  How can you change or customize to something that's easier on the eyes?  I have managed to change the workspace panel color but can't figure out how to change that really difficult black interface.  I am using elements 9 having upgraded from 5 where the workspace was pleasantly light grey.  A solution would be so much appreciated.  Thanks!
    Wendy

    No, unfortunately, that's just the way it is in PSE 9.

  • Can you change the default font in an iPad mail account?

    I suspect you can't, but just checking: can you change the default font in an iPad mail account?

    There is no way to change the default font in the mail app. You can make the type larger by using the accessibility feature of larger text. Settings>General>Accessibility>Larger Text. There is an app that allows you to add fonts to the iPad, but I do not think this works with the built in iOS apps such as mail.
    You can check it out.
    https://itunes.apple.com/us/app/anyfont/id821560738?mt=8

  • Can I change the nav menu text color?

    Can I change the nav menu text color? ( it's too dark for the dark background I like.)

    I have this exact same question and you have no reply and I'm wondering what the answer is.

  • Can you change and set your own defult midi sync project settings

    Hi All,
    Can you change the default Midi Sync Project Setting so they have your own settings everytime you start up logic Pro X?
    Preferences > Midi > Sync >MIDI sync project settings
    General Default:
    Frame Rate 25 fps
    Check auto detect format of MTC
    Default required:
    Set frame rate to 29.97fps
    check 'auto detect format of MTC'
    check Enable Separate SMPTE View Offset
    MDI Default is:
    MTC and MMC  all unchecked
    Default required:
    Check 'Transmit MTC'
    Check 'Transmit MMC'
    Check 'Listen to MMC Input'
    Any assistance would be appreciated.
    Regards,
               Gavin.

    No, that's not what I typed above.
    The rule is... Preferences are Global, changes made in Preferences affect all Projects.
    "Settings" are on a per song basis.
    In Logic 9 (and I imagine in X as well) there are two main areas to configure Logic.
    1. Is Preferences    Preferences settings are global and affect all projects.
    2. Is Settings          Settings are set for each project, they are not global
    You typed:  Preferences > Midi > Sync >MIDI sync project settings
    See what is says, MIDI Sync Project Settings.
    Preferences has forwarded you into the Settings area so no, the MIDI Sync options are not global, they have to be adjusted for each song, that's why I suggested setting up templates of your most used project setups.

  • Can we change the payscale group text in V_T510?

    Hi All,
    Can we change the Payscale Group text which is stored in V_T510 field TRFGR?
    is there any other way that we can change them?
    Regards
    Rahul

    Hi,
    Yes if client want new description for the PS Group, you have to create new only and assign the wage types to them and so on..... you have to do all the configurations regarding the PS Group. Here the main point is be careful with the start date of the PS Group for newly created records and assignments.
    Best Regards.

  • TS4036 Can you change the iCloud backup date to a previous backup date?

    Can you change the iCloud backup date? My iPhones processor went out and erased all of my information and saved that as my last iCloud backup, is there a way to restore my phone for the day before this happened to get all of my information back?

    Long story short, I had to make a clean install of OS X (mountain lion) when I was outside my country, and if I can't show the guy at the customs back home that I purchased the macpro before making the trip, I'll have to pay taxes for it.
    I could have filled the papers for that but I almost miss the plane and there was a long queue.

  • How can you change your security question for I tunes?

    How can you change your security question for I tunes?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

Maybe you are looking for