1 Reply Latest reply on Nov 23, 2011 10:20 AM by John Hawkinson

    Table numbers in a column to Right alignment

    Mahesh_JW

      Hi All,

       

       

      I have a table like the below.

       

      Age (Years)198519982007
      1–4523529
      5–14262015
      15–241028280
      25–44167161144
      45–64875680661
      65–742,8482,4952,059
      75–846,3995,7035,164
      Over 8515,22415,11112,947

       

       

      I want to decimal align the 2nd,3rd,4th column using javascript.

      Paginators are manullay using tab stops and adjusting the "Align to Decimal Tab"

      But I want to do it in javascript

       

       

      Help me...

        • 1. Re: Table numbers in a column to Right alignment
          John Hawkinson Level 5

          Hi, Maheshwara:

           

            Your question's a bit confusing, because your example does not show any decimal points! Perhaps it would be good for you to show a screenshot from InDesign with Hidden Characters enabled and the Tab ruler visible so we can see what is going on.

           

          What do you want to do, though? My guess is you want to right-align the text, then go through and find the entry with the most characters to the right of a decimal point and set a decimal tab based on that entry, and apply it to the entire column. Sounds pretty easy!

           

          Are you stuck? What's the problem? How far have you gotten? Do you know Javascript?