I am using #forcol in a table (in a Word template) to pull data from a model. I need to ignore the first column. It seems like $table.getVisibleColumnIds() isn't exactly a List so some of the associated methods don't work.
Here's what I would theoretically like to do.
- Code: Select all
#forcol($id in $table.getVisibleColumnIds().slice(1))$table.getColumn($id)#endcol
Here's what I've gotten, but it's not working...seems like I can't iterate through $cols.
- Code: Select all
#set($cols = [])#set($tempSize = $table.getVisibleColumnIds().size() - 1)#foreach($i in [1..$tempSize])#set($id = $table.getVisibleColumnIds().get($i))#set($ignore = $cols.add($id))#end#forcol($id in $cols)$table.getColumn($id)#endcol
Any solutions would be appreciated!