JSL: stacking a single Group of columns (as opposed to the many individual columns that make up the Group) ?
Sep 15, 2015 4:22 AM(5321 views)
I need to stack columns which have a certain string in their column name, so I wrote a script to iterate through all the columns to see if their name has the sought string, then make a Group with all the columns that have that string (see script below. the columns are pushed to the end of the table to make them easier to group).
I then want to stack the group of columns, which is straightforward when doing it manually (selecting the Group populates the Stack window with the name of all the columns in the group). I cannot however figure out how to script the Stack() command to use the Group as an argument.
Is a Group a valid argument for the Stack() function, and if so what is the JSL syntax?
If not valid, what are the other option to stack a (variable) number of columns?