Is it possible to add the tag XML columns in Table

Hello world!

I'm the new baby of the indesign forum. I need apply the tag XML to each column of the table (name probably test1, test2...)

Please help me on this problem or even to correct my codes.

-yajiviki

My code.

var docRef=app.activeDocument;
var ColLen=app.activeDocument.stories.everyItem().tables.everyItem().columns.length;
for(i=0; i<ColLen; i++){
    var mySel=app.activeDocument.stories.everyItem().tables.everyItem().columns[i];
    app.activeDocument.xmlElements[0].xmlElements.add({markupTag:"Test"+(i+1), xmlContent:mySel});
}

Hello

You can easily mark the table initially with the automatic tag command.

myTable.autoTag();

Once this is done, you can target the cells in columns and reset the tag applied:

var xes = myTable.columns[0].cells.everyItem().associatedXMLElement;
var n = xes.length;
while ( n-- ) xes[n].markupTag = "foo"

HTH

Loïc

www.ozalto.com

Tags: InDesign

Similar Questions

  • Add the cluster to an existing table in oracle

    Is it possible to add the cluster of an existing table? For example...

    I have a table:

    CREATE TABLE table_name)

    t_id number PRIMARY KEY,

    t_name varchar2 (50));

    Cluster:

    CLUSTER to CREATE my_cluster

    (c_id NUMBER) SIZE 100;

    Y at - it a command such as: ALTER TABLE t_name add CLUSTER my_cluster (t_id); or something like that?

    Because I want to table to look like this:

    CREATE TABLE table_name)

    t_id number PRIMARY KEY,

    t_name varchar2 (50))

    My_cluster (t_id) CLUSTER;

    And drop all the tables isn't really what I want to do.

    Thank you

    No,

    It is the reverse:

    A table can be stored as a segment of memory (the common way) or in a cluster.

    Will not be part of the table "in the cluster", but other parts outside.

    Please create a new table in the cluster and insert your data here.

    Sorry,

    Martin

  • Is it possible to add the location and the date on the pictures in a slide show?

    Is it possible to add the place and the date on the pictures in a slide show?

    Only if you manually add a title slide t photo and enter this information manually.  There is no automatic way in Photos.

    Click on the button "+" at the right end of the slide show to add a title slide.

  • Satellite A100-192: is it possible to add the DVI port

    Hello

    is it possible to add the dvi port to this laptop?
    ati mobility radeon x 1600 graphics card is the chipset
    supports the dvi and analog component output

    is it possible to add the dvi port
    or component signal output on the d - sub port?

    TIA

    Hello

    There is unfortunately no way to add a DVI port to this machine. The problem is there is no adapter for D - sub to dvi and you can't go to the motherboard of your machine with a DVI connector.

    Boyfriend sorry but it is a fact...

    Welcome them

  • Is it possible to add the cell capacity to an iPad which is without cellular capacity?

    Is it possible to add the cell capacity to an iPad which is without cellular capacity?

    # If the iPad is a unique model of Wifi, it lacks the internal hardware for cell connections and may not be added.

  • Is it possible to add the stamp tool in the menu bar?

    I would like to add the stamp tool, which is available on the Tools page for my bar menu for easy access. Miss me probably something simple, but I can't figure out how to make this happen.

    Hi benw23104454,

    I'm sorry that it is not possible to add the stamp tool in the menu bar. Its a part of the comment tool & returns once you click on the feedback tool.

    Kind regards
    Nicos

  • Is it possible to add the entry in an element value.

    In my organization, we have element named "Presences", containing the two input values

    1. 1-in-Time
    2. 2 - timeless,

    After three years management now wants to add 3rd of entry named 'OT - HR' values

    Is it possible to add the entry in an element value.

    Hello Hussain,

    If your item is indirect, then you can add a new value entry, the first date of start of the element.

    If a direct element (i.e., if there are references to this element for all assignments, then you can not)

    In case you are unable to create a new entry value, the best way is to rename the old element to element_name_old and create a new item of the same name.

    Make sure that you update all balances etc accordingly.

    And then you can end date the old element and create entries for all employees for the new item.

    Hope that helps,

    See you soon,.

    Vignesh

  • Is it possible to add the name to the subject line when you submit a pdf form

    Hello

    I created a form with Live Cycle and add a button which form submittingthe in PDF format. I was wondering is it possible to add the name to the subject line just after Hank, as seen in the image below?

    Concerning

    submittab.jpg

    It is easy enough to accomplish your needs using scripts on a regular button rather than the button send email.

    Look at this amazing example created by Paul who explains a number of ways to present data in form by e-mail.

    http://forums.Adobe.com/message/2109208#2109208

    Nith

  • is it possible to set the background color of a table or chart to be transparent?

    is it possible to set the background color of a table or chart to be transparent?

    Thank you

    Yes.

    Select tools palette (view > tool palette) and set the background of the graph as well as the control in transperent.

  • Manager disc Snap-in for the MMC. Is it possible to change the order of columns. Or remove columns completely?

    Manager disc Snap-in for the MMC. Is it possible to change the order of columns.  Or remove columns completely?

    I would like to move the capacity;  Space free; Status; to be fair, Volume.  The page layout;  Type; File system; seems to me

    useless in this form.  If there is no way to change maybe someone at Microsoft may include this option in Windows 9.

    Hello

    I would like to inform that you can not change the order of columns or remove columns completely as it is by design. However, you can display or hide items in the console window.

    Hide columns in Diskmanagement:

    a. Click Start, type diskmgmt.msc and press to enter.

    b. click view and select Customize.

    c. you can select or clear the check boxes to show or hide items in the console window.

    I hope that helps!

  • Cannot add the partition to an existing table.

    Hello

    I don't add the partition to an existing table that is not partitioned, get the error as a type of data not valid, then I'm not find syntax errors.

    ALTER TABLE MESSAGEX_XCHANGE

    ADD THE PARTITION OF RANGE (LAST_MODIFY_TIMESTAMP)

    (

    PARTITION old_data VALUES LESS THAN (To_TIMESTAMP('27/02/2014','DD/MM/YYYY')),

    You see for VALUES LESS THAN (To_TIMESTAMP('28/02/2014','DD/MM/YYYY')) of the PARTITION

    );

    Error report:

    SQL error: ORA-00902: invalid data type

    1. 00000 - "invalid data type".

    * Cause:

    * Action:

    Thank you

    Manon...

    You get this error because your edit statement has an invalid syntax. In addition, you cannot partition a table that is not already configured for partitioning!

    You have to physically re-create the partitioned table in order to add new partitions to it.

  • Is it possible to use the title of column sorting along w / a union?

    When I had a simple select statement, I might get the kind work with either one "in order to" in the select statement or with sorting of the column header.
    Then, I changed the select a Union. I can get the folders to sort if I specify the column number in the order (for example, the order of 9, 7, 1), but the position column sorts do not work. The records look like they are sorted on page 1, but are not sorted on pages 2-5.
    Is it possible to use the title of column sorting and a Union?

    Thank you!
    Laura

    Laura:

    You can re-write the query in the form

    Select col1, col2, col3...
    Of
    (select col1, col2, col3 from T1
    Union
    Select col1, col2, col3 from T2
    )

    CITY

  • Is it possible to add the second cooler to my QOSMIO

    I WOULD LIKE TO ASK IF IT IS POSSIBLE TO ADD THIS SECOND COOLER TO MY LAPTOP * (TOSHIBA QOSMIO - X 300 130) BECAUSE MY LAPTOP SHUTSDOWN WHEN I PLAY GAMES...
    * PIC ALL WHAT I want TO SAY... * http://www.irisvista.com/tech/laptops/Toshiba-Qosmio-X305/big/removing-laptop-motherboard-33.jpg

    AS I HAVE SEE YES BUT WHERE CAN I FIND ONE SUCH COOLER IN YM (BULGARIA)
    EVRYTHING STILL IN WARRANTY

    Post edited by: aloushi

    Hello

    No, it s not possible to add a second cooling fan to the motherboard notebook from the motherboard layout allows and the laptop does not have such extra part.

    But you can test some buffers cooling like this:
    [Photos of cooling pads: http://www.google.de/images?hl=de&q=cooling%20pads&wrapid=tlif130302876 790621 & um = 1 & ie = UTF-8 & source = og & his = N & tab = wi]

  • Is it possible to add the car rental search field in a form?

    Hello

    was wondering if its possible to add a field of automatic search form and also receive the location of the person who submits the form with the form.

    Memo

    Hey Memo,

    Muse only currently allow you to add text single line, multi-line text box, but there is no way to add the geolocation Muse online form option. You can try this

    HTML5 geolocation

    I hope this helps.

  • Find, edit, and remove the tag XML (Adobe InDesign Server CS5)

    Hi all

    I work with Indesign CS5 server and JavaScript, although having some difficulties to come with a solution to a problem...

    I have to build a script JS (called through SOAP) that will allow me to search for an XML tag in an InDesign file.

    After you find the XML tag, if the variable 'action' is set to remove, it should remove the tag and its content.

    If the action is set to edit, he should change the content of the tag to the user-defined content.

    The main warning is that the XML tag is variable, as is the XML of the InDesign file structure.

    Here's what I have in mind, in pseudocode:

    function findXMLTag (tag, action) {}

    app.searchForTag (tag);

    If {(tagIsFound)

    If (action == 'delete') {}

    tag. Delete;

    } Else if (action == 'edit') {}

    tag.contents = "update content";

    }

    }

    }

    Any help would be greatly appreciated!

    Thank you

    Ben Kay

    'searchForTag' can be implemented as a recursive function.

    Recursion is defined as follows: I thought: "I'll just get this forum for"recursion"." The first post I found was one of my own, which suggests that the poster should search the forum for "recursion".

    Here is an example: find the XML element []

    And another: remove the xml using JS [CS3] element (read carefully, as the OP is stuck on how to remove an item and continue successfully)

    And the other using XML rules - which I am quite familiar with, but may work for you: changing values in XML tags

Maybe you are looking for

  • Black areas appear in green

    Since I upgraded to Firefox V: 8 some of the images show black areas (background, shadows, etc.) as a bright green. If I change the IE engine, the problem goes away. I messed with disabling add-ons, without any repeatable fix. Sometimes, disabling on

  • E540: Dolby Advanced Audio v2 cannot be installed on the new SSD

    Hello the Dolby Advanced Audio v2 question keeps grinding my gears. The situation: I added a second drive (SSD) successfully to the E540, everything works and is configured correctly. I still have the disk original in place and achieved 8.1 Windows (

  • New stream 7 randomly BSOD

    I bought a jet 7 from the Microsoft Store and had a couple of days.  Shortly after, I noticed that I would get random BSOD.  Sometimes, after a BSOD, it would BSOD when starting up and automatic startup repair will start and run aground.  Then he wou

  • HP Deskjet 9800 does not print

    My HP Deskjet 9800 is not printing.   It was printing fine until I replaced the cartridges.  I tried to implement everything in the manual, etc... and nothing works.  Any help would be greatly apreciated!  I use Windows 8.

  • Continue to be "pages does not" popup?

    Internet very slow with highest of the pop-up window that appears all the time.