From 5a6a0fe12143ec71486e8f12ff2e749ee23b148e Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 13 May 2025 14:54:47 +0200 Subject: [PATCH] Aufteilung von caption auf caption_der_spalte und caption_in_ergebnistabelle, Logik so angepasst, dass Skripte nur mit caption funktionieren --- .../rpta/schluesseltabellen/fm_templates.unl | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src-modules/module/rpta/schluesseltabellen/fm_templates.unl b/src-modules/module/rpta/schluesseltabellen/fm_templates.unl index 087247f..fcd496e 100644 --- a/src-modules/module/rpta/schluesseltabellen/fm_templates.unl +++ b/src-modules/module/rpta/schluesseltabellen/fm_templates.unl @@ -3,6 +3,7 @@ CREATE temp TABLE tmp_rpta_column\ (\ uniquename varchar(255) NOT NULL,\ caption varchar(255),\ + caption_in_ergebnistabelle varchar(255),\ srcfieldname varchar(255),\ targetfieldname varchar(255),\ column_type integer,\ @@ -13,6 +14,7 @@ CREATE temp TABLE tmp_rpta_column\ resultset_id integer,\ sortnr integer,\ description TEXT,\ + description_in_ergebnistabelle TEXT,\ format_code_uniquename varchar(255),\ format_code_id integer\ );\ @@ -56,6 +58,7 @@ INSERT INTO tmp_rpta_column\ (resultset_id,\ uniquename,\ caption,\ + caption_in_ergebnistabelle,\ srcfieldname,\ targetfieldname,\ column_type,\ @@ -65,11 +68,21 @@ INSERT INTO tmp_rpta_column\ is_aggregate,\ sortnr,\ description,\ + description_in_ergebnistabelle,\ format_code_uniquename\ )\ select R.tid,\ '${column.uniquename}',\ +<#if column.caption?exists>\ '${column.caption}',\ +<#else>\ +'${column.caption_der_spalte}',\ +\ +<#if column.caption_in_ergebnistabelle?exists>\ +'${column.caption_in_ergebnistabelle}',\ +<#else>\ +'${column.caption}',\ +\ '${column.srcfieldname}',\ <#if !column.targetfieldname?exists || column.targetfieldname=="">null::varchar <#else>'${column.targetfieldname}' ,\ T.tid as column_type,\ @@ -78,7 +91,8 @@ ${column.is_visible},\ ${column.visible_size},\ ${column.is_aggregate},\ ${sortnr*10},\ -<#if column.description?exists>'${column.description}'<#else>null::varchar ,\ +<#if column.description?exists>'${column.description}'<#elseif column.description_der_spalte?exists>'${column.description_der_spalte}'<#else>null::varchar ,\ +<#if column.description_in_ergebnistabelle?exists>'${column.description_in_ergebnistabelle}'<#elseif column.description?exists>'${column.description}'<#else>null::varchar ,\ <#if column.format_code?exists>'${column.format_code}'<#else>null::varchar \ FROM rpta_resultset R, rpta_column_type T\ where R.uniquename='${rpta_column_layout.rpta_resultset}'\ @@ -224,8 +238,8 @@ select C.tid as column_id,\ T.sortnr,\ T.is_visible,\ T.visible_size,\ - T.caption,\ - T.description,\ + T.caption_in_ergebnistabelle,\ + T.description_in_ergebnistabelle,\ T.format_code_id\ FROM rpta_column C, rpta_column_layout L, tmp_rpta_column T\ where C.uniquename=T.uniquename\