1 Reply Latest reply on Jul 15, 2015 1:26 AM by [Jongware]

    how to align decimal points for all the tables in the document using indesign javascript.

    mani@pixel

      i want to align decimal points for all the tables.. but its not working properly..

      here is my code . here im getting table by table and getting column by column..

      and i want the decimal points should be center in the each column..

       

       

      var   mCols = column;  //  getting column by column.

          var mTarget , len;

          mTarget = mCols.cells.everyItem().texts.everyItem().getElements(); 

          len = mTarget.length; 

          mTarget.justification = Justification.LEFT_ALIGN;

      for(l=1;l<len;l++) 

           {

                  //alert(mCols.width-10);

                mTarget[l].tabStops.add({

                          alignment: TabStopAlignment.CHARACTER_ALIGN, 

                          alignmentCharacter: '.', 

                          position: mCols.width-5 

             });   

             }