0 Replies Latest reply on Apr 5, 2012 8:25 PM by henrywoooo

    How to set value to cell of a table with tag

    henrywoooo

      I created a indd template, and there is a table in a story. I tagged the cells in the table. Now I want to set the tag in javascript, but some error shows.

       

      I used to set value to tags, which are not in table, it works out:

      myDocument.xmlElements.item("Root").xmlElements.item("InformationFrame").xmlElements.item( "Id").contents = "123";

       

      But now the tag structure is like:

      Root

        -InformationFrame

          -Table

            -InformationTable

              -Id

      And I cannot set the Id anyway.

       

      I don't know if I described clearly. I really hope someone could help me out, thanks very much.