I need to make a spreadsheet based on info from specific table columns and headlines above those tab

Hi all,
A client of mine is requesting that I create a spreadsheet from a huge catalog that I am doing for him (this will also be done for all similar huge catalogs). The spreadsheet needs to pull information from some of the table columns, as well as the headline for each table. (This spreadsheet will then go out to some other people who will be putting this information into an online database/website for the client.) Let me be more specific and show you an example below.
Information from InDesign Catalog:
Tea Set
Part #
MFG #
Description
123-456
654321
Tea Cup
789-010
010987
Saucer
Here is how the Excel Spreadsheet needs to look:
Part #
MFG #
Product Name
Description
Page #
123-456
654321
Tea Set
Tea Cup
2
789-010
010987
Tea Set
Saucer
2
You have no idea how I have been pulling my hair out over this. Doing this manually will be a nightmare each time. My first thought was that I could assign specific cell styles to the columns (cells) and then create a TOC and then finangle with that - well, that didn't quite work, especially because of the headline I needed to pull into the spreadsheet as well. Is there ANY way I can get this information onto a spreadsheet? Knowing how wonderful InDesign is and all the tremendous capability it has, I am sure there IS a way and I just dont know how. Please PLEASE can someone point me in the right direction?
Thank you very much in advance for your assistance:) Any help would be greatly appreciated.
Christine

Sorry for the delay.
I am sure that this can somehow be done by making use of the styles. For example, when creating the TOC InDesign does a GREAT job of pulling in the styles (that are of course associated with the headlines and whatever needs to be included in the TOC) and associating them with the correct page numbers. I had experimented a little with creating specific paragraph styles and working these into the table and cell styles...then applying the Table Style to the table. I was halfway getting to where I wanted to be by creating a TOC that pulled in all of these styles and applied the corresponding page numbers (that I could somehow work into converting back into a table to then flow onto an Excel spreadsheet) but the wrench in the works was of course the Product Name. That said, I am VERY confident that this CAN be done somehow, by making use of the styles, using the same (or similar) methodology that is used to create the TOC. If only I were a pro at scripting...
Well, it's great that you're certain and confident, but I think your confidence is misplaced.
I had sort of hoped that running headers could be convinced to support this, but that doesn't seem to be true.
I think you need to postprocess the data somehow. If I was doing this for real I'd probably export the document to IDML and have a seperate program read the IDML XML, find the product names and page numbers, and insert them in tables. Though...that might mess up the page numbers. And it'd be a lot of work.
An much-faster-to-rapid-prototype solution is to have an indesign script go through the document and add in page numbers and the product names. Here's a rough prototype:
var d,s,story,table,product,page,c2,c3,c5,i,j.k;
d=app.activeDocument;
s=d.stories;
for (i=0; i<s.length; i++) {
    story = s[i];
    for (j=0; j<story.tables.length; j++) {
        table = story.tables[j];
        product = story.chara
cters[table.storyOffset.index-2].paragraphs[0].contents;
        page = table.parent.parentPage.name;
        // $.writeln("This is table "+j+". Product name: "+product+" page "+page);
        c2=table.columns[1];
        c3=table.rows[0].columns.add(LocationOptions.AFTER, c2);
        c3.contents=product;
        c5=table.rows[0].columns.add();
        c5.contents=page;
This doesn't handle the header rows in tables, but hopefully that's ok.
It may get page numbers wrong on multipage tables. Probably it would be better to just use
SpecialCharacters.AUTO_PAGE_NUMBER on the last full line (c5.contents=).
It should also probably not just look back 2 characters from the start of the table to find the paragraph, but it's probably good enough.

Similar Messages

  • Need to Create Search Help Based on Condtions from one table to another tab

    Hi All,
    I have a table like ZGROUP Which contains the data below
    Filed name Filed Name Filed Name
    ZGROUP ZTYPE ZTEXT
    Entries
    ABC P TEXT FOR
    C P SDFNSDFKLN
    DDDD PSG TEPRTPERERTWERT
    DEF P TEST
    FFFFF PSG
    SEF PS SDFSDFLASLDFNASDLFN
    XYZ PS TESTING
    Whree P is Product , PS- Point of Sales, PSG-Sales Group
    Now i am going to crate another ZPROUDCT TABLE
    FIELDNAME FIELDDESCRITPON
    PRODUCT PROD_DESC
    Entry
    abc pRELATED ENTRY
    My Questions
    1) ZGROUPS table has 3 kinds of data P, PSG, PS type records,
    1) In Table ZPROUDCT , I want to create search help only P records for Table Zproduct of the field Product FROM zGROUPS table
    2) In Table Zsales , I want to create search help only PS records from ZGROUPS table
    3) In Table ZPSG, I want to create search help only PSG records from table ZGROUPS
    is it possible to create search help from One Master Table(ZGROUPS) table to other tables based on conditions.
    Please help me.
    very urgent
    Regards,
    Raju

    if  <condition>
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field>
    SELECT <field>
             FROM <table>
             INTO TABLE i_tab
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'                  "function module to provide f4 help to sold-to-party
        EXPORTING
          retfield        = "XXXX"
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = '<field name>'
          value_org       = 'S'
        TABLES
          value_tab       = i_tab
    endif.
    lkike this u can check the condition and selec the data from table and assign it into one internal table and then call the FM it will give the f4 help to particular field
    reward if helpful
    regards,
    Khan.

  • I need to make button which made a spool from my oracle forms 2.1

    i need to make button which made a spool from my oracle forms 2.1
    how can i do that
    thanks alot

    Wow, you just said the same thing. First, when you say "Forms 2.1" do you mean "Developer 2.1", which included Forms 5.0? Regardless, are you aware that these Forms versions are about 15 or more years old?
    What you are trying to do is still unclear. Are you trying to output records to a text file formated to csv? If you need assistance, please provide some clarification as to what you are trying to accomplish.

  • Developers I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsb

    mule13470 
    Apr 3, 2014 11:12 AM 
    I tried simply renaming them however it just corrupts the files when I do it like that so I need the applescript to open the files in excel and the save them as .xlsx to test I only need it one folder but if it works I'd like to be able to do it for all documents with .xlsb extentions that are in a huge folder with subfolders that contain a mix of .pdf, .docx, .xlsx and .xlsb. Please Help.
    Applescript Editor, Mac OS X (10.6.8) 
    I have this question too (0) 
    Reply
    Categories: Using OS X MavericksTags: mac, help, finder, excel, applescript_editor
    Level 1 (0 points)
    mule13470
    Re: I need an applescript that opens documents in excel from a specified folder and saves them as .xlsx from their current .xlsbApr 3, 2014 11:19 AM (in response to mule13470) 
    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

    In that huge folder I only need the .xlsb files opened and saved to .xlsx not the others, in case that wasn't clear above.

  • Which Version of Adobe do I need to be able to "extract" a page from a existing  file and save/download to another file?

    Which Version of Adobe do I need to be able to "extract" a page from a existing  file and save/download to another file?

    Acrobat Pro or Standard.

  • I need to upgrade to mac os snow leopard from 10.5.8, and have the lion OS usb. I can't upgrade to snow leopard as my father doesn't remember the admin password.  If anyone can help it would be appreciatedeas

    I need to upgrade to mac os snow leopard from 10.5.8, and have the lion OS usb. I can't upgrade to snow leopard as my father doesn't remember the admin password.  If anyone can help it would be appreciated

    Restart with the Mac OS X 10.6 DVD in the drive or with the Lion USB drive connected, hold down the Option key just after the restart, tab to the installation disk, and press Enter. If the computer has a firmware password set, it needs to be provided for this to work.
    (66822)

  • How to not make Tables, Column and Data Available in Excel

    Goal:
    Not displaying the dimension table and its data in excel
    Problem:
    I was enable to deny access for the user roles in SSAS about denying access the data from the column but the next thing is that I do not know how dimension table and column not to be available in the excel.
    Information:
    *The datasource is SSAS
    *I have made three user to have access to two tables only.

    Hi Sakura,
    According to your description, you want the Manager role can see all dimension table and its data column. And the Employee role can't view all table, column and data, right? Currently we don't have a direct option to complete hide the dimensions or attributes
    to some roles. However you can use workarounds below.
    Using cube perspectives and hide the cube dimension attribute then set the perspectives to role.
    Perspectives
    Use this workaround discussed in the similar thread below.
    Dimension attribute security to hide or unhide an attribute
    based on certain condition
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • I need help figuring out how to Link Data from one table in Sharepoint to another table in Sharepoint and make it dynamic

    Hi Everyone,
    I am working on a project that uses SharePoint 2010 for repository and we have multiple tables that we are using.
    One table is a list of the various projects we are working on (workstreams)
    The other is a table with various notes and such, to include meeting notes for the various projects.
    Currently we are just copying the shortcut from the meeting notes table and adding it in as a link in the workstreams status table.
    I need to find out if there is some sort of way to make this process dynamic so that when a new note is added for, lets say workstream #1 in the notes table, it will automatically propogate into the notes link section for workstream #1.
    Is this even possible??
    And if so how would I do it
    I haven't done much with modifying SharePoint in several years, and would Truly appreciate any and all help with this.
    Thanks in advance
    IKE

    Hi IKE,
    According to your description, my understanding is that you want to create a link in the workstreams list linked to the associated item of the notes list.
    Assuming the workstreams list has  Title column and another column called “Note” used to linked to notes list, and the notes list has Title column and another column used to store note.
    Then you can create a workflow on the notes list with SharePoint Designer 2010, and in the workflow, using “Update ListItem” action. And in the workflow Start Options, select “Start workflow automatically when an item is created”.
    For the workflow action, you can set as the screenshot:
    For the string in the String Builder, you need to open an item of notes list, then copy the URL of the display form and paste here, the URL will look something like this:
    http://sp/Lists/notes/DispForm.aspx?ID=1&Source=http%3A%2F%2Fsp%2FLists%2Fnotes%2FAllItems%2Easpx&ContentTypeId=0x0100300025278693CE49A5E3A394B23AD9E1&IsDlg=1
    Now, you need to replace the ID of the item using [%Current Item:ID%], for example in the above link, delete the number 1 and add [%Current Item:ID%].
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Need to make periodic request to App Server from NSAPI SAF

    I have to send a keep alive ping to a existing Session on our app server from a NSAPI SAF on IWS6.
    First, is making a direct socket call the best way to handle it or is there another suggestion for sending the request.
    Second, if using the direct socket connection is the way to go do I need to use the net_* methods within the NSAPI code or can I use native socket code.
    Third, will there be any issues with making this type of socket call from a spawned thread, and can I use the native threads on Sun Solarias.
    Some code examples would be very helpful since I can't find much at all on the site.

    NSAPI doesn't expose any infrastructure for managing outbound connections, and the list of supported net_* functions does not include socket, bind, or connect analogs. You are probably best off using native socket code.
    On Solaris, you can create your thread using the NSAPI systhread_create function or the Solaris pthread_create or thr_create functions. Note that you should not call NSAPI functions from a thread you create yourself unless you first call the NSAPI prepare_nsapi_thread function.

  • Update table based on ID reference comparing each column and value

    Hi,
    Through UI user can update any information and click save. In backend i will be receiving only ID as reference . Based on the ID value i should update multiple tables wherever i have the reference tables. Here i will not get the values or column name updated.
    I just get a ID to find which row is updated.
    I should do a comparision now. 
    I have a history table where i get the row before updation. and i get a row after updation from current data i.e. from ssdb_Railroad[This will be updated by java after updation we will get the ID inorder to update remaining tables]. Now i need to compare
    both the table column values and know which column is updated and after getting the value i should update reference tables.
    Below is the structure for comparision table , History table and Main table.
    Create table Comparision_History (
     ID   int IDENTITY(1,1) PRIMARY KEY,
     InsertUser_UpdateUser varchar(50),
     Old_ColVal  varchar(100),
     New_ColVal  varchar(100),
     TableName   varchar(100),
     [Action]     varchar(50),
     InsertDate_UpdateDate Datetime NOT NULL DEFAULT getdate()
    CREATE TABLE SSDB_Railroad_History (
        ID         int IDENTITY PRIMARY KEY,
    SCAC       varchar(4) ,
    Name       varchar(50) NOT NULL,
    RailroadID int NOT NULL UNIQUE,
    RC2Key
      varchar(50),
    NOTES      varchar(1000),
    [Action]   varchar(50),
    InsertDate_UpdateDate  Datetime NOT NULL DEFAULT getdate(),
    InsertUser_UpdateUser  varchar(50),
    CREATE TABLE SSDB_Railroad (
        ID   int IDENTITY(1,1)PRIMARY KEY,
    SCAC varchar(4) UNIQUE,
    Name varchar(50) NOT NULL,
    RailroadID int NOT NULL UNIQUE,
    RC2Key
    varchar(50),
    InsertDate Datetime NOT NULL DEFAULT getdate(),
    UpdateDate Datetime,
    InsertUser varchar(50),
    UpdateUser varchar(50)
    Here SSDB_Railroad table and History table needs to be compared and get a updated value and it should be inserted in a comparision table. as well as it should be updated in reference tables.
    Please help me with the code.
    Thanks in Advance
    Deepa

    Hi Deepa_Deepu,
    According to your description, personally, the merge function can meet your requirements. Usually, we can synchronize two tables by updating or inserting rows in a target table based on differences found in the source tables. Just as your description, when
    the value of ID and InsertDate_UpdateDate in the source table matches a value, update them in the target table. When the values does not match, the source row is inserted into the target table.
    For more information, see: using MERGE to perform UPDATE and INSERT operations on a target table by using a derived source table.
    http://msdn.microsoft.com/zh-cn/library/bb510625.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to select records based on Max/Min on different columns and group by

    I have a table with 5 columns(a,b,c,d,e), i need to select records based on MAX(c),Max(D) and Min(e) group by a,b. i am trying using : select max(c),max(d),min(e) from table group by a,b. this is not working. its giving me 1 6 1
    a b c d e
    1 1 1 2 1
    1 1 1 6 4
    1 1 1 6 3
    when i group by a,b i am expecting the record 1 6 3
    Please help me with this.. Thanks in advance....

    Hi,
    Welcome to the forum!
    962163 wrote:
    I have a table with 5 columns(a,b,c,d,e), i need to select records based on MAX(c),Max(D) and Min(e) group by a,b. i am trying using : select max(c),max(d),min(e) from table group by a,b. this is not working. its giving me 1 6 1
    a b c d e
    1 1 1 2 1
    1 1 1 6 4
    1 1 1 6 3
    when i group by a,b i am expecting the record 1 6 3It looks to me like "1 6 1" is the correct answer. You're asking for the lowest value of e, and 1 is lower than 3.
    Maybe you don't want MIN (e). Explain why you want 3 (that is, how you decided that 3 is the correct value for the last column) and someone will help you code it.
    Edited by: Frank Kulash on Sep 28, 2012 6:17 PM
    Whenever you have a problem, you should psot CREATE TABLE and INSERT statements for your sample data. That way, the people who want to help you can re-create the problem and test their ideas. It often helps to clarify the problem, too. since this is your first message, I'll do it for you:
    CREATE TABLE     table_x
    (       a     NUMBER
    ,     b     NUMBER
    ,     c     NUMBER
    ,     d     NUMBER
    ,     e     NUMBER
    INSERT INTO table_x (a, b, c, d, e) VALUES (1, 1, 1, 2, 1);
    INSERT INTO table_x (a, b, c, d, e) VALUES (1, 1, 1, 6, 4);
    INSERT INTO table_x (a, b, c, d, e) VALUES (1, 1, 1, 6, 3);
    COMMIT;

  • Need to get data in FI-GL Datasource from EKKN table

    Hi Folks,
    I need two fields from EKKN table (NAVNW,AUFNR) into FI-GL datasource (0FI_GL_4) and those two should be available in report.
    As FI-GL DS is based on BSEG,BKPF, do we need to do any enhancements or any other technique?
    Thanks for relpy in advance.
    Shyamala.

    hi,
    Have you used this data source 2LIS_02_ACC?
    Above data source built on EKKN table. if you used above data source then you may try look up option at bw side.
    if not used then you may need to go with enhancement.
    Table BSEG and EKKN have same fields.
    EBELN
    EBELP
    ZEKKN
    By using  above fields conditions you can fill AUFNR and NAVNW.
    Take abap expert help to build logic at CMOD.
    I think you will be familiar with data source enhancement steps.
    One more thing, am seeing your requirement more enhancements on same data source.
    it may degrade loading performance.
    Thanks

  • Need of SQL query in selecting distinct values from two tables

    hi,
    I need a query for selecting distinct values from two tables with one condition.
    for eg:
    there are two tables a & b.
    in table a there are values like age,sex,name,empno and in table b valuses are such as age,salary,DOJ,empno.
    here what i need is with the help of empno as unique field,i need to select distinct values from two tables (ie) except age.
    can anybody please help me.
    Thanks in advance,
    Ratheesh

    Not sure what you mean either, but perhaps this will start a dialog:
    SELECT DISTINCT a.empno,
                    a.name,
                    a.sex,
                    b.salary,
                    b.doj
    FROM    a,
            b
    WHERE   a.empno = b.empno;Greg

  • Update table based on values from other table

    Hi,
    I am trying to update one table based on the values of another table. Since you can't use From in update statements, how do you execute this?
    For example i have to tables, Table A and Table B. I want to update a column or columns in Table A based on another value in Table B:
    So if the column in Table B was 1 then column in Table A would be Yes, if Table B was 2, then Table A would be Yes, if Table B was 3 then Table A would be N/A and so on...
    Any help would be appreciated.
    thanks,
    scott

    SQL> select * from t1;
    ID ST
    1
    2
    3
    SQL> select * from t2;
    NO
    1
    2
    3
    4
    SQL> update t1 set status=(select decode(no,1,'Y',2,'N','NA') from t2 where t1.id=t2.no);
    3 rows updated.
    SQL> select * from t1;
    ID ST
    1 Y
    2 N
    3 NA
    Daljit Singh

  • HT4865 I need to install my back up iCloud info onto a new phone and then erase my old handset off my account. How can I do this?

    I need to install my back up iCloud info onto a new phone with the same sim in and then erase old phone from my account. How can I do this?

    When you setup the new phone restore it from the iCloud backup from your old phone.
    Then, on your old phone, use Settings > General > Reset > Erase All Content and Settings.

Maybe you are looking for

  • Getting error while running a new custom page form JDeveloper 9i

    Hi, I am getting below error while running the custom page from JDeveloper 9i. Please not that, I have a DBC file and in the Connection whizard, I was able to successfully create DB connection. Any help would be appreciated. Exception Details. oracle

  • Can't add songs to iTunes

    One day I noticed that several of my albums in iTunes were missing songs. I searched high and low for them, and sure enough, they are not to be found in iTunes. They are, however, very much on my HD, and they work with WMP, MM, etc. I used mp3checker

  • InDesign to PDF Export Shrinkage

    Using InDesign CS2,when I export to PDF the document does not stay the same size, it always shrinks (about 5% or so). So, printing business cards on a template, for instance, doesnt work. Also, colors change to different shades (dark blue to medium b

  • Monitor has HDMI--can I use it?

    Bought a 22" monitor that has HDMI and VGA inputs. Its a refurbished Famous Maker (HP) TS22W7H 22-inch LCD Vivid Color Widescreen Height & Pivot Adjustments w/ HDMI. I dont want to use the VGA. Is there a way to hook up the HMDI? Help. Thanks Steve

  • Dynamic where clause.

    Hi, I have five columns in a view.(View name - > MW) I have to fetch data from these five columns. Requirement: The user can select any of the five fields (FORM Find window) and give a search. I am having a problem in building the where clause dynami