Retrieve stories as in layout

Dear All,
I'm new to indesign. I'm trying to collect all the stories in the document in the order they appear in the layout. When I try to iterate through the stories i get the stories in some odd order. But Indesign exports the document for digital editions in correct order as in the layout. Is there a specific object that could be used to acheive this?
Thanks
Pari

Thank you for your answer.
I have two questions
1) how to get all stories for a particular page
2) howt do i get the page index?
thanks for your patience
Pari

Similar Messages

  • Best way to retrieve/store date Flex PHP MySQL?

    Hi All,
    I have a question about storing/retrieving a date-field from the MySQL database, using Flash Builder 2 & Zend AMF.
    This is as much as I know:
    MySQL Database stores date in this format: yyyy-mm-dd hh:mm:ss
    And Flex will not recognise that as a "date", instead it will suggest this value is an "object".
    With "Configure return type", I can manually set this field to "date", but it will not work retrieving of updating the date as MySQL will not understand the standard date-format it'll receive,
    I guess, the best solution would be if I could tell the MySQL Server how the standard date-format should be, but I have not found this option. Can anyone confirm this?
    The remaining options are:
    Format the date in the SQL-query
    Format the date in the PHP-function sending/retrieving
    Format the date in Flex, befor assigning it to a date-field...
    Can someone tell me the BEST practice to handle date-objects? I guess it's the date_format function in MySQL....
    I'm trying to build an app with over 3200 fields, shared over 60 tables, of which many are date-fields.
    Would be awesome if I could just use SELECT * FROM myTable, and all would be fine with date-fields and all...
    Any tips?

    I'm confused. This is what I have:
    On my MySQL database, I've created a VIEW with the query that I need. I thought it'd generally be efficient to create views for every 'Form' that I need.
    This is my VIEW v_person
    SELECT p.`person_id`, p.`name`, p.`lastname`, DATE_FORMAT(p.`birthdate`,'%d/%m/%Y %r') as birthdate
    FROM person p
    Now I have a simple table v_person returning
    person_id
    name
    lastname
    birthdate
    0
    John
    Doe
    null
    1
    Jane
    Did
    23/08/1976 12:00:00 AM
    2
    Juno
    Doh
    01/04/2001 12:00:00 AM
    "Great! Now I can set up my query once, returning the date in whatever format Flex likes."
    Not.
    This is the standard generated PHP function to get information by ID. This works fine.
         public function getV_personByID($itemID) {
              $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where person_id=?");
              $this->throwExceptionOnError();
              mysqli_bind_param($stmt, 'i', $itemID);          
              $this->throwExceptionOnError();
              mysqli_stmt_execute($stmt);
              $this->throwExceptionOnError();
              mysqli_stmt_bind_result($stmt, $row->person_id, $row->name, $row->lastname, $row->birthdate);
              if(mysqli_stmt_fetch($stmt)) {
                   return $row;
              } else {
                   return null;
    This is the standard generated Form in Flex:
    One note to make when using RETURN TYPE,
    is that in when I use person_id=0 , I can change "birthdate type" from OBJECT to DATE, because date is null.
    When I use person_id=1 , I CAN'T change "birthdate type" as it defaults to "STRING".
    Since I want to use a dateField in my Form, I changed birthdate type to "DATE". (Even though I now understand that return type IS in fact a string)
    <fx:Script>
         <![CDATA[
              import mx.controls.Alert;
              import mx.formatters.DateFormatter;
                   protected function button_clickHandler(event:MouseEvent):void
                   getV_persontestByIDResult.token = vpersontestService.getV_persontestByID(parseInt(itemIDTextInput.text));
         ]]>
    </fx:Script>
    <fx:Declarations>
              <vpersontestservice:VpersontestService id="vpersontestService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
         <s:CallResponder id="getV_persontestByIDResult" result="v_persontest = getV_persontestByIDResult.lastResult as V_persontest"/>
         <valueObjects:V_persontest id="v_persontest" person_id="{parseInt(person_idTextInput.text)}" />
         <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <mx:Form defaultButton="{button}">
         <mx:FormItem label="ItemID">
              <s:TextInput id="itemIDTextInput"/>
         </mx:FormItem>
         <s:Button label="GetV_persontestByID" id="button" click="button_clickHandler(event)"/>
    </mx:Form>
    <mx:Form>
         <mx:FormHeading label="V_persontest"/>
         <mx:FormItem label="Birtdate">
              <mx:DateField id="birthdateDateField" selectedDate="@{v_persontest.birthdate}" />
         </mx:FormItem>
         <mx:FormItem label="Last name">
              <s:TextInput id="lastnameTextInput" text="@{v_persontest.lastname}"/>
         </mx:FormItem>
         <mx:FormItem label="First name">
              <s:TextInput id="nameTextInput" text="@{v_persontest.name}"/>
         </mx:FormItem>
         <mx:FormItem label="person_id">
              <s:TextInput id="person_idTextInput" text="{v_persontest.person_id}"/>
         </mx:FormItem>
    </mx:Form>
    Works great! Except that it can't handle the date field:
    TypeError: Error #1034: Type Coercion failed: cannot convert "10/21/1984 12:00:00 AM" to Date.
         at com.adobe.serializers.utility::TypeUtility$/assignProperty()[C:\perforceGAURAVP01\depot\flex\ide_builder\com.adobe.flexbuilder.dcrad\serializers\src\com\adobe\serializers\utility\TypeUtility.as:534]
         at com.adobe.serializers.utility::TypeUtility$/convertToStrongType()[C:\perforceGAURAVP01\depot\flex\ide_builder\com.adobe.flexbuilder.dcrad\serializers\src\com\adobe\serializers\utility\TypeUtility.as:497]
         at com.adobe.serializers.utility::TypeUtility$/convertResultHandler()[C:\perforceGAURAVP01\depot\flex\ide_builder\com.adobe.flexbuilder.dcrad\serializers\src\com\adobe\serializers\utility\TypeUtility.as:371]
         at mx.rpc.remoting::Operation/http://www.adobe.com/2006/flex/mx/internal::processResult()[E:\dev\trunk\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:316]
         at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\trunk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:313]
         at mx.rpc::Responder/result()[E:\dev\trunk\frameworks\projects\rpc\src\mx\rpc\Responder.as:56]
         at mx.rpc::AsyncRequest/acknowledge()[E:\dev\trunk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:84]
         at NetConnectionMessageResponder/resultHandler()[E:\dev\trunk\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:547]
         at mx.messaging::MessageResponder/result()[E:\dev\trunk\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:235]
    Somehow SOMETHING wants to convert "10/21/1984 12:00:00 AM" to Date.
    Where does it fail? I feel like I'm SO close, but making a faceplant right before the finish.
    ok.
    I'm by no means an expert, so let me know if I'm doing something wrong, but this is how I'd expect it to work.
    Can someone tell me how I should use a dateField instead? Where should I make the stringToDate and dateToString conversion?

  • How to send sms to one "mobile number" and retrieve store to mysql

    Hi All,
    I am using Clickatell api to send sms.Its perfectly working.My current requirement is *"I need one mobile number(sms provider/gateway) that should be receive any sms from various mobile numbers.If i give that number to my clients they will send a message to that number.If i get any sms on that number i will retrieve the sms and store it to my database".*
    please any one help me and give some ideas or the sms providers api
    by
    vijay

    This doesn't seem to have anything to do with JavaMail.
    Maybe you should ask the Clickatell API owners?

  • Editing InCopy stories in InDesign layout- InCopy file gets huge

    Lately, I am experiencing file size issue. When I go into my layout to check out an InCopy story; check it back in after I do my edits- the file size suddenly gets much larger. It would start of 160k and then becomes 2MB file. Could this be an update issue or am i using "x" amount of conditional text? My editor uses InCopy on a PC and I use a mac.
    thanks!

    Hello, I did try your suggestion and the InCopy file still got larger. I even re-created the layout into a new document. It started out to be okay but I still got the same issue when i check in/out the incopy story.
    It is puzzling because I have another layout with about the same amount of layers/conditional text, images and i have no problems so far with that InCopy file getting large.

  • Copernicus does not store/restore last layout

    Does anybody experienced the issue that Copernicus does not restore the windows and views that were open when closing the application? Everytime I start up Copernicus I have to start from scratch with opening and arranging required views.
    - Daniel

    Try the following:
    In Visual Studio go to "Tools" - "Import and Export Settings".
    Select "Reset all settings"
    click "next"
    Select "No, just reset settings, overwriting my current settings"
    click "finish"
    let me know if it works.

  • Please Help! Store loads, but layout is spaced wrong.

    Can anyone please tell me if this is a browser or iTunes error. Any ideas? Please help!
    http://att.macrumors.com/attachment.php?attachmentid=193582&d=1252612490

    The repeat setting can be found from the Nano's Now Playing screen.  While playing a track, swipe to the left to bring up additional controls including the repeat and shuffle settings.  See page 21 of your iPod's User Guide for more assistance on the repeat setting.
    http://manuals.info.apple.com/en_US/iPod_nano_6thgen_User_Guide.pdf
    If it's a 7G Nano, you should only need to tap the Now Playing screen to bring up these additional controls. 
    B-rock

  • CS5 ISSUE - STORIES NOT LOCKING ALL THE TIME IN INCOPY

    I have an issue where sometimes we will have one user open a story and it will NOT show it as being locked (pencil with line through it).  The majority of the time it will, but seems to happen too often and I see it being a problem this coming weekend as they start the switch from Quark to CS5.  I just can't have users being able to check out the same story as one person will overwrite the other.  We work off a file server with ExtremeZip installed.  Has anyone else seen this?  Sometimes if the document is available to be refreshed, like on a different story, it will then put a lock on the file.   I am not doing anything cross platform, this testing is done on 2 macbook pro's with both IC and ID CS5 installed.  Any help is much appreciated.
    Thanks, Bob

    We have also had this problem. We started the Indesign/Incopy workflow in CS2 and did not see this happen until CS4. It's continuing in CS5. Apparently there is a delay in the lock file being created. If someone else checks the story out before that locked file is created, it appears both parties have the story checked out. However, only one of them actually has command of the file and only their edits will be saved. We reported this to Adobe last year when we began seeing it in CS4, and they were able to replicate the problem; however, they've not fixed it.
    We haven't tried the "refresh" workaround. I'll give that a try. I've also wondered if checking out multiple stories at once causes the problem. Some of our editors have the habit of checking out all the stories in a layout at one time. Obviously, it takes a little time for the locked files to be created on as many as 100 stories. If someone else tries to check out one of those stories in the meanwhile, Incopy lets them. At that point, we have a problem.

  • Save drag and drop layout

    Hi Folks,
    Can anyone tell me the best way to do this. I need to save the layout of my page:
    http://www.sandwell.nhs.uk/test/test.html
    I'd like to store the page layout in a database, but I dont understand how to capure the DOM, would I need to save the ID's of each moveable element in a list, and save that to a database?
    How would i save the items in a list?
    I can't find much on the web about how this works at all.
    Any help much appreciated.
    many thanks

    Hi,
    Which Siebel Application you are using. There is a "Application" dropdown in the tools for the weblayout.
    Enable that in the tools: View - Toolbars - Configuration Context. Check the Application dropdown value. is that the Siebel Application you are using. Its better to add the fields in the "All Applications" dropdown. Else you are seeing in a wrong application or adding in a wrong application. This is the cause of the mismatch. No problem with WebLayout. Check and let me know.
    Regards,
    Joseph

  • Reg. copying Layout Variants from 1 ALV pgm to another

    Hi Friends,
    I am currently copying an ALV program Ztest1 to ztest2 through ztest5. While doing so I want the LAYOUT variants that are available for ztest1 also to be copied to these other programs.
    All I am aware is that the table LTDX stores all the layout variants for a particular program.
    Could anybody provide me the right inputs on this.
    Thanks in Advance.
    Rgrds,
    Gayathri N.

    I took this approach and it worked for me:
    1) Change your program so that everytime an ALV function is called it is using the original program name in the variant declaration, ensure you keep the original code commented out, you will need to put it back later.  Examples:
      FORM variant_init USING varname TYPE slis_vari.
        CLEAR g_variant.
       g_variant-report = g_repid.
        g_variant-report = 'ORIGINAL_PROGRAM_NAME'.
      FORM f4_for_variant.
       g_variant-report = sy-repid.
        g_variant-report = ‘ORIGINAL_PROGRAM_NAME’.
        CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
      FORM check_variant.
        IF NOT p_vari IS INITIAL.
         g_variant-report  = sy-repid.
          g_variant-report  = ‘ORIGINAL_PROGRAM_NAME’.
          g_variant-variant = p_vari.
          CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
    2) Display function lt_variant_save via SE37, set a breakpoint at the first executable line:
         perform variant_save tables it_fieldcat
    4) Run your program with the layout variant you wish to copy.
    5) Hit Save Variant.  You are now in debug mode.
    6) Enter variable CS_VARIANT-REPORT in the variables 1 panel.
    7) Double-click on CS_VARIANT-REPORT.
    8) Hit the Change Field Content button
    9) Change the value to the name of your new program, then hit Enter.
    10) Hit Execute (F8).  You have now saved the variant under your new program name. 
    11) Exit and rerun your program as necessary for as many variants as you want to copy
    12) Change your program back to using sy-repid (or whatever else it was referencing) wherever you changed it in step 1.
    13) The variants have now been copied and you can run your program with the new variants.

  • SQL function to retrieve records only if all the values are available.

    Hi,
    I have a sales table on which i run a parameterized query.
    We pass a few week IDs to retrieve store sales.
    I need to retrieve only those stores that has sales in all the week IDs passed.
    If i use the in operator, i am getting the store data even if there is sales for only one week.
    Is there a function in oracle to do this?
    Thanks,
    Sharan.

    Hi, Sharan,
    Here's how you could use the analytic COUNT function:
    WITH     got_week_cnt     AS
         select  week_id, store_id, prod_desc, sales_units_raw, sales_value_raw
         ,     COUNT (DISTINCT week_id) OVER (PARTITION BY  store_id)            AS week_cnt
         from     sales_store_dwh
         where      week_id in (&&Week_ID_CSV)
    select  week_id, store_id, prod_desc, sales_units_raw, sales_value_raw
    FROM     got_week_cnt
    WHERE     week_cnt  = 1 + LENGTH ('&&Week_ID_CSV')
                    - LENGTH (REPLACE ('&&Week_ID_CSV', ','))
    ;Notice that the sub-query got_week_cnt is just your original query, with the COUNT function added.
    You didn't post your tables or results, so I can't test it.
    You didn't say what version you're using, so I made a conservative guess (Oracle 9 or higher). In Oracle 11, there's a simpler way to find the number of weeks passed.

  • Retrieve Height of an expandable text field

    Hi,
    I have a table in a dynamic interactive PDF form. When the user enters text into a text field of the table, the field can expand over multiple lines. I want to know how I can retrieve the height of the expanded field so that I can resize other elements in the table such that they are kept in line with the expanded text box. It appears the height property (h) is always zero, and the maxH is also zero.
    Any help appreciated.
    Phil Rimmington

    It's possible to retrieve this information but you have to use the xfa.layout model instead of the xfa.form model in order to do so.
    By retrieving the h or maxH property of an object by doing
    this.h
    this.maxH
    means that you're accessing these properties from the xfa.form model which
    defines the objects on the form. This model, however, doesn't give you layout information such as the resulting number of pages in a dynamic form once data has been merged into it or, in your case, the actual/current height of a field which expands in height to fit its content.
    The layout information must be retrieved from the xfa.layout model using methods that take references to the object whose layout information is sought.
    In this case, we want the actual/current height of a field which is height-expandable. We therefore need to use the xfa.layout.h method as follows, in JavaScript:
    xfa.layout.h(TextField1, "mm");
    The first parameter takes a reference to the field in question and the second takes a string which identifies the unit of measure in which you want the height returned (the default is points (pt)). You can use "cm", "mm", "in", "px", "pt", etc.
    Note that you shouldn't use xfa.layout methods unless xfa.layout.ready returns
    true or else the information you get may be out-of-sync with how the form actually ends-up being laid-out.
    I've attached a sample form which has a multi-lined, height-expandable text field and a button. Clicking the button will produce a message box containing the actual/current height of the text field.
    Stefan
    Adobe Systems

  • After upgrading to Maverick, I can no longer access iTunes Store.

    Hi,
    After upgrading to Maverick, I can no longer access to iTunes stores. The layout for Mac AppStore also doesn't display properly. Perhaps the most annoying part is when I need to access secure website (even google.com), where I need to authorize the certificate. My current connection is behind proxy, but have no issues on all this issues before upgrading to Maverick. Please assist.

    Hello segordon21,
    Thanks for using Apple Support Communities.
    To move voice memos to your computer please follow the steps from the iOS 8 Help below.
    Move recordings to your computer
    You can sync voice memos with the iTunes library on your computer, then listen to them on your computer or sync them with another iPhone or iPod touch.
    When you delete a synced voice memo from iTunes, it stays on the device where it was recorded, but is deleted from any other iPhone or iPod touch you synced. If you delete a synced voice memo on iPhone, it’s copied back to iPhone the next time you sync with iTunes, but you can’t sync that copy back to iTunes a second time.
    Sync voice memos with iTunes. Connect iPhone to your computer, then in iTunes select iPhone. Select Music at the top of the screen (between Apps and Movies), select Sync Music, select “Include voice memos,” and click Apply.
    Voice memos synced from iPhone to your computer appear in the Music list and in the Voice Memos playlist in iTunes. Voice memos synced from your computer appear in the Voice Memos app on iPhone, but not in the Music app.
    Move recordings to your computer
    Take care,
    Alex H.

  • Layout of Windows Diagram View not in DTR

    Hello,
    After painstakingly having laid out all the viewsets to get a decent overview of the actual viewset navigation I had to remove the project and its contents from my development machine and recreate it. Apparently the layout of the viewsets is not something that's stored in the DTR.
    But since the layout does seem to be saved (it's there after closing and restarting the NWDS), I'm wondering if it's possible to add the relevant file(s) to the DTR so my fellow developers can also benefit from a pleasant viewset layout.
    So in essence, my question is, where is/are the file(s) located that store the actual layout of the window diagram view?
    Thanks,
    Kars.

    I went ahead and tried anyway.
    Adding the Model Folder directory went OK, but adding the actual diagram files could only be done from the DTR perspective.
    Doing a regular sync on another development machine gave errors, even after deleting the entire Model Folder directory. Doing a forced sync seemed to fix this, but that's a rather invasive action.
    Even so, the Window Diagram didn't show up correctly, and, assuming the file in question is named Foo.txWDWindowDiagram, we ended up with another file, Foo1.txWDWindowDiagram.
    The Component Diagram did appear to work though. Still considering the amount of coercion needed to get it to sync properly, we've decided to remove the files from the DTR.

  • Okay, so i've finally downloaded the new ios 7, but now i cant connect the app store

    Okay, so i've finally downloaded the new ios 7, but now i cant connect the app store. The layout looks great, but when i type something in on the App Store search bar and then click search... It say that it cant connect

    No problem, glad to help!
    Update: my PC USB hub was connected to a USB 3 port, I connected the 30 pin cable directly to my PC, And the restore worked just fine. Restored phone from iCloud backup and seems to be working fine.

  • To Identify changed data in planning layout in BPS

    We have a planning layout  in BPS which user can change data on individual cell.  We also have an EXIT function to distribute data to this layout.
    User changes data on cells then executes the EXIT function to distribute data. During debugging, we see the changed entry with delta amount in the XTH_DATA table. However, there are many entries with similar characteristics; hence we cannot identify the particular changed data, i.e., the changed sales amount, in XTH_DATA of EXIT function. 
    Is there any configuration and/or function to show only the changes data? Any comments/hints are greatly appreciated.
    Best regards,
    Sam

    Hi,
    When you enter for a particular characteristic and remaining characteristic if you left bank , it will store as #  in layout and samething will also in cube. you can check it cube also.
    for eg.
    profitcenter com.code  sales revenue
    100              #              10
    if you want to avoid this then you have to enter all characteristic values.
    Regards,
    Siva.

Maybe you are looking for

  • Audigy 2 driver prob

    Got this huge problem with the drivers for my audigy 2 card. Just formatted my dri've, clean WinXP install and threw in the latest drivers from this page (includes creative audio console). My problem, I get seriously crappy sound from my center speak

  • Question on Assigning Sub Class References

    Hi Friends, I have small doubt regarding Assigning Class Reference to Super Class or Interface. List list= new ArrayList(); or Collection collection = new ArrayList(); Map map=new HashMap(); if i assing like above i may loose some of the specilized m

  • Graphs in DeskI

    I am not able to see axis label in DeskI graphs. What properties I need to set ?  Please suggest. Thanks and Regards Nagaraja Akkivalli

  • Creating a Gui Input Form

    Hi, I've got a class called GamePanel which extends JPanel. Currently I have only one JTextField (theTextField1) and one JButton (theButton1). I've got a class called GameFrame which extends JFrame, in its constructor it creates a new GamePanel. It h

  • Sync bookmarks of iPad to Internet Explorer

    Hello. How can I sync my iPad's Safari boomarks to my PC's Internet Explorer (I have iTunes on my PC). Is it possible? I know you can sync from IE to Safari, but I'd like to know how to do it the other way around. Thank you in advance. Cheers!