@ -146,17 +146,8 @@ group by\
</#list>\
</#list>\
;\
;\
\
\
<#assign number_of_visible_colums=0 />\
<#foreach column in columns>\
<#if column.is_visible!=0>\
<#assign number_of_visible_colums=number_of_visible_colums+1 />\
</#if>\
</#foreach>\
<#assign colnr=0 />\
select \
select \
<#foreach column in columns>\
<#foreach column in columns>\
<#if column.is_visible!=0>\
<#assign colnr=colnr+1 />\
<#assign format_sql="" />\
<#assign format_sql="" />\
<#if column.format_sql?string != "">\
<#if column.format_sql?string != "">\
<#assign format_sql=column.format_sql />\
<#assign format_sql=column.format_sql />\
@ -165,15 +156,13 @@ select \
<#if column.coltype=="computedColumn">\
<#if column.coltype=="computedColumn">\
(${column.colfunction})${format_sql} as ${column.targetfieldname}\
(${column.colfunction})${format_sql} as ${column.targetfieldname}\
<#else>\
<#else>\
${column.targetfieldname}${format_sql} as ${column.targetfieldname} \
${column.targetfieldname}${format_sql}\
</#if>\
</#if>\
\
<#if column_has_next>,</#if>\
<#if colnr < number_of_visible_colums>,</#if>\
</#if> --wenn sichtbar\
</#foreach>\
</#foreach>\
from tmp_stud2\
from tmp_stud2\
order by <#list 1..number_of_visible_colums as i>${i}\
order by <#list 1..groupby as i>${i}\
<#if i != number_of_visible_colums >\
<#if i != groupby >\
,\
,\
</#if>\
</#if>\
</#list>\
</#list>\
@ -192,10 +181,8 @@ drop table if exists tmp_stud;\
white_space_color=COLOR_WHITE fixed_columns=1\
white_space_color=COLOR_WHITE fixed_columns=1\
min_heading_height=55\
min_heading_height=55\
<#foreach column in columns>\
<#foreach column in columns>\
<#if column.is_visible!=0>\
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\
Column CID=0 heading_text="${column.caption}" center_heading explanation="${column.description}"\
row_selectable heading_platform readonly\
row_selectable heading_platform readonly\
width=${column.visible_width} text_size=60\
width=${column.visible_width} text_size=60\
</#if>\
</#foreach>\
</#foreach>\
@@@^Studienfach^Anzahl bzw. Anteil^Datenblatt Studierendenstatistik^drop table if exists tmp_stud2; drop table if exists tmp_stud3;^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^
@@@^Studienfach^Anzahl bzw. Anteil^Datenblatt Studierendenstatistik^drop table if exists tmp_stud2; drop table if exists tmp_stud3;^^2^850^540^^1^<<SQL>>SELECT description FROM rpta_column_layout where tid=<<Spaltenlayout>>;^