@ -41,8 +41,8 @@ from ${coldef.foreignkey_tab} where \
1=1 \
1=1 \
<#if coldef.foreignkey_cond!=''> and ${coldef.foreignkey_cond} </#if>\
<#if coldef.foreignkey_cond!=''> and ${coldef.foreignkey_cond} </#if>\
--{coldef.specific_restriction} \
--{coldef.specific_restriction} \
--ausblenden von Spalten, die gar nicht in konkretem Teilergebnis vorkommen, geht derzeit nicht für virtuelle Spalten, -> Kernmodul\
--ausblenden von Spalten, die gar nicht in konkretem Teilergebnis vorkommen, geht derzeit nicht für virtuelle Spalten und nachbearbeitung , -> Kernmodul\
<#if coldef.is_virtual?number=0&&"<<Leere Spalten ausblenden>>"="'ja'">\
<#if coldef.is_virtual?number=0&&coldef.attrib_nachbearbeitung=''&& "<<Leere Spalten ausblenden>>"="'ja'">\
and ${coldef.foreignkey_col}::varchar(255) in (select distinct ${coldef.name}::varchar(255) from ${table_name} where \
and ${coldef.foreignkey_col}::varchar(255) in (select distinct ${coldef.name}::varchar(255) from ${table_name} where \
${restriction} \
${restriction} \
)\
)\
@ -180,7 +180,7 @@ create index ix_tmp_roh1 on tmp_cache (colattrib,rowattrib,row2attrib);\
\
\
--moegliche attrib_nachbearbeitung\
--moegliche attrib_nachbearbeitung\
<#if kennzahlInRowOrCol()=0> \
<#if kennzahlInRowOrCol()=0> \
<#assign tmp_table="tmp_cache"/> <#assign rowfield="rowattrib"/> <#assign colfield="row attrib"/> \
<#assign tmp_table="tmp_cache"/> <#assign rowfield="rowattrib"/> <#assign colfield="col attrib"/> \
<#else>\
<#else>\
<#assign tmp_table="tmp_rohdaten"/> <#assign rowfield=rowdef.name/> <#assign colfield=coldef.name/> \
<#assign tmp_table="tmp_rohdaten"/> <#assign rowfield=rowdef.name/> <#assign colfield=coldef.name/> \
</#if>\
</#if>\
@ -300,8 +300,9 @@ update tmp_erg T set c${i}=\
<#macro colrestriction col colattribname='R.colattrib'>\
<#macro colrestriction col colattribname='R.colattrib'>\
<#if coldef.is_sicht==1>\
<#if coldef.is_sicht==1>\
and ${colattribname}::varchar(255) in ${col.subkeys}\
and ${colattribname}::varchar(255) in ${col.subkeys}\
<#elseif coldef.is_sicht=2>\
and (${col.strukturStr?replace('$1',' '+colattribname+"::varchar(255)")}) \
<#else>\
<#else>\
--TODO Sicht=2\
<#if col.apnr!='gesamt'>\
<#if col.apnr!='gesamt'>\
and ${colattribname}::varchar(255)='${col.apnr}' \
and ${colattribname}::varchar(255)='${col.apnr}' \
</#if>\
</#if>\
@ -360,11 +361,6 @@ c${i}::${datatype} <#if spalte_has_next>,</#if>\
</#foreach>\
</#foreach>\
\
\
from tmp_erg order by sortnr;^--freemarker Template\
from tmp_erg order by sortnr;^--freemarker Template\
XIL List\
sizable_columns horizontal_scrolling\
drop_and_delete movable_columns\
white_space_color=COLOR_WHITE fixed_columns=1\
min_heading_height=35\
XIL List\
XIL List\
sizable_columns horizontal_scrolling\
sizable_columns horizontal_scrolling\
drop_and_delete movable_columns\
drop_and_delete movable_columns\