Browse Source

BUGFIX: Sortierreihenfolge bei Spaltenlayout import wurde nicht korrekt verwendet.

master
Andre Knieschewski 2 weeks ago
parent
commit
fec0e431d2
  1. 6
      src-modules/module/etl/schluesseltabellen/trans_rpta_column_layout.sql

6
src-modules/module/etl/schluesseltabellen/trans_rpta_column_layout.sql

@ -18,6 +18,7 @@ from tmp_etl_rpta_column_layout; @@ -18,6 +18,7 @@ from tmp_etl_rpta_column_layout;
select C.uniquename,
null::varchar(255) as caption,
C.caption as caption_der_spalte,
L.sortnr,
L.caption as caption_in_ergebnistabelle,
C.srcfieldname,
C.targetfieldname,
@ -107,9 +108,8 @@ FROM rpta_resultset @@ -107,9 +108,8 @@ FROM rpta_resultset
where uniquename='${rpta_column_layout.rpta_resultset}';
<#assign sortnr=0 />
<#foreach column in rpta_columns>
<#assign sortnr=sortnr +1 />
INSERT INTO tmp_rpta_column
(resultset_id,
@ -147,7 +147,7 @@ T.tid as column_type, @@ -147,7 +147,7 @@ T.tid as column_type,
${column.is_visible} as is_visible,
<#if column.visible_size?exists && column.visible_size?string !="" > ${column.visible_size} <#else>null::integer </#if> as visible_size,
${column.is_aggregate} as is_aggregate,
${sortnr*10} as sortnr,
${column.sortnr} as sortnr,
<#if column.description?exists>'${column.description}'<#elseif column.description_der_spalte?exists>'${column.description_der_spalte}'<#else>null::varchar </#if>,
<#if column.description_in_ergebnistabelle?exists>'${column.description_in_ergebnistabelle}'<#elseif column.description?exists>'${column.description}'<#else>null::varchar </#if>,
<#if column.format_code?exists>'${column.format_code}'<#else>null::varchar </#if>

Loading…
Cancel
Save