13 May
1999
13 May
'99
9:31 p.m.
In the following example, "columns" is a method that returns the list of columns wrapped in a Results object. "col2" is the name of one of the columns. Line 3 and line 5 provide the correct answer. Line 6, however is looking at the columns namespace to render the results and there's no data there. 1: <!--#in table--> 2: <!--#if sequence-end--> 3: <!--#var "_['count-col2']"--> 4: <!--#in columns--> 5: <!--#var "_[colname]"--> 6: <!--#var "_['count-'+colname]"--> 7: <!--#/in--> 8: <!--#/in--> 9: <!--#/in--> 1) Why are "_[colname]" and "_['count-'+colname]" given different namespaces? 2) how do I get "_['count-'+colname]" to have the table namespace instead of the columns namespace? Thanks