Berichtsassistent
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

108 lines
3.3 KiB

48040^Spalten und Spaltenlayouts verwalten^--Autor: D. Quathamer\
--Datum: 15.3.2024\
--freemarker template\
create temp table tmp_rpta_column (\
ord smallint,\
tid INTEGER , \
uniquename varchar(255),\
caption varchar(255),\
srcfieldname varchar(255),\
column_type integer,\
column_type_str varchar(255),\
col_function text,\
is_aggregate smallint,\
resultset_id integer,\
resultset_str varchar(255),\
systeminfo_str varchar(255),\
custom integer ,\
description text,\
targetfieldname varchar(255),\
nextedit varchar(255)\
);\
insert into tmp_rpta_column (ord,\
tid,\
uniquename,\
caption,\
srcfieldname,\
column_type_str,\
col_function,\
is_aggregate,\
resultset_id,\
custom,\
description,\
targetfieldname,\
nextedit) \
select 1 as ord,\
C.tid,\
C.uniquename,\
C.caption,\
C.srcfieldname,\
T.caption as column_type,\
C.col_function,\
C.is_aggregate,\
C.resultset_id,\
C.custom,\
C.description,\
C.targetfieldname,\
('../edit/rpta/rpta_column_edit.jsp|tid=' || C.tid)::varchar(255)\
FROM rpta_column C, rpta_column_type T\
where T.tid=C.column_type\
/* and C.resultset_id=<<Virtuelle Tabelle>> */\
/* and C.caption like '%<<Stichwort>>%' */\
/* and C.tid in (select P.column_id from rpta_column2layout P where P.layout_id=<<Spaltenlayout>> )*/\
/* and C.resultset_id in (select R.tid from rpta_resultset R where R.systeminfo_id=<<Komponente>> )*/\
/* and C.column_type=<<Spaltentyp>> */\
;\
\
\
\
update tmp_rpta_column set resultset_str=R.caption\
from rpta_resultset R\
where R.tid=tmp_rpta_column.resultset_id;\
\
\\
\
select \
caption,\
uniquename,\
resultset_str,\
srcfieldname,\
column_type_str,\
-- col_function,\
is_aggregate,\
custom,\
-- description,\
-- targetfieldname\
nextedit \
\
from tmp_rpta_column\
order by ord,caption ,uniquename\
;^XIL List\
drop_and_delete movable_columns sizable_columns horizontal_scrolling\
white_space_color=COLOR_WHITE fixed_columns=2\
min_heading_height=35\
Column CID=0 heading_text="Name" center_heading\
row_selectable col_selectable heading_platform readonly\
width=50 text_size=100\
Column CID=0 heading_text="Schlüssel" center_heading\
row_selectable col_selectable heading_platform readonly\
width=50 text_size=100\
Column CID=1 heading_text="Virtuelle Tabelle" center_heading\
row_selectable col_selectable heading_platform readonly\
width=150 text_size=200\
Column CID=1 heading_text="Quellfeld" center_heading\
row_selectable col_selectable heading_platform readonly\
width=10 text_size=200\
Column CID=1 heading_text="Spaltentyp" center_heading\
row_selectable col_selectable heading_platform readonly\
width=5 text_size=200\
Column CID=1 heading_text="Ist Aggregat?" center_heading\
row_selectable col_selectable heading_platform readonly\
width=5 text_size=200\
Column CID=1 heading_text="Individuelle Spalte" center_heading\
row_selectable col_selectable heading_platform readonly\
width=5 text_size=200\
Column CID=1 heading_text="Bearbeiten" center_heading\
row_selectable col_selectable heading_platform readonly\
width=5 text_size=200\
@@@^^^Spaltendefinitionen und deren Zuordnung zu Berichten verwalten.^drop table tmp_rpta_column;^^1^440^360^0^1^ ^