5 Replies Latest reply on Nov 27, 2013 5:20 AM by Jump_Over

    tableStyles alternating pattern

    grg79 Level 1

      Hi!

       

      I can set the alternating pattern of row and column of tableStyle from interface.

      But I can't read or set this properties from script [JS].

       

      I can read this properties only from the table....

      Why?

       

      I must read all properties of any tableStyle of document.

       

      Thanks

        • 1. Re: tableStyles alternating pattern
          Laubender Adobe Community Professional & MVP

          @grg79 – perhaps an omission?

           

          What you could do is insert a hint for "alternating rows" or "alternating columns" and their values to the table style by insertLabel("KeyString", "ValueString"). Extract and apply the values every time the table style is applied with a few extra lines of code.

           

          The problem here, did not test my suggestion: there are roughly 40 basic options with "countless" parameters one could set for strokes and fills; options like "preserve local formatting" etc.pp.

           

          Perhaps it's better to use pre-formatted tables in e.g. library files instead of table styles and move the contents (maybe the texts) cell by cell to duplicates of that prepared tables. Before that you could read out some parameters like row length and cell length and adapt the placed duplicates out of the library file.

           

          Uwe

          • 2. Re: tableStyles alternating pattern
            grg79 Level 1

            Simply I need to read the attribute alternating rows or alternating columns of tableStyle if exists....

             

            But i don't found the attribute... it don't exists?

            • 3. Re: tableStyles alternating pattern
              Jump_Over Level 5

              Hi,

              Which property are you interested in?

               

              table.startColumnFillCount ==> which columns are taken

              table.startRowFillColor ==> which swatch is applied to chosen rows

              ...

               

              Jarek

              • 4. Re: tableStyles alternating pattern
                grg79 Level 1

                no....

                In the interface of ID I can define in the tableStyle the alternating rows attributes.

                But I can't read this attributes in the object tableStyle whit JS

                • 5. Re: tableStyles alternating pattern
                  Jump_Over Level 5

                  yes...

                  You can read tableStyle.startRowFillColor with JS