Did you consider using the ?ReadDesign url command? That will spit out the columns of the view also (along with a bunch of attributes for each that you'd probably want to ignore) and would keep you from having to update your $$ViewTemplate form every time you changed the columns.
Did you consider using the ?ReadDesign url command? That will spit out the columns of the view also (along with a bunch of attributes for each that you'd probably want to ignore) and would keep you from having to update your $$ViewTemplate form every time you changed the columns.