Hi,
I have a table column that is visible by default but needs to be hidden depending on a flag. I create the following scripts do hide the column based on the flag.
![1.jpg 1.jpg](/t5/image/serverpage/image-id/3351iCB88AF881614E4FA/image-size/large?v=v2&px=999)
![2.jpg 2.jpg](/t5/image/serverpage/image-id/3352i4553071E310154AC/image-size/large?v=v2&px=999)
I also created an script to modify the column widths in order to accommodate the changes. ( I found this advice on this thread: http://forums.adobe.com/message/2024965 )
There was 6 columns now there is 5 so I make the description column bigger.
![3.jpg 3.jpg](/t5/image/serverpage/image-id/3353iFB84291A0BC4D971/image-size/large?v=v2&px=999)
When the flag is inactive everything is ok. When the flag is true the table in the second page looks like this:
![4.jpg 4.jpg](/t5/image/serverpage/image-id/3354i17CA6D24D62697C5/image-size/large?v=v2&px=999)
I looks like the script is hidden the header "Amount" but not the cloumns.
I tried to make the column to be hidden by default and make it visible if the flag is false. If I do that when the flag is false that’s what happens to the column in the second page.
![5.jpg 5.jpg](/t5/image/serverpage/image-id/3355i3907D622BE0E9A40/image-size/large?v=v2&px=999)
Any ideas ?
Thanks!
Felipe.