Browse Source

xCube mit Sparklines #3

master
Daniel Quathamer 10 months ago
parent
commit
20468a134e
  1. 7
      src-modules/module/xcube/masken/21000_felderinfo.unl
  2. 12
      src-modules/module/xcube/masken/21000_maskeninfo.unl

7
src-modules/module/xcube/masken/21000_felderinfo.unl

@ -42,5 +42,10 @@ and trim(F.table_name) || '.' || F.name in (select trim(tablename)||'.'||trim(fi @@ -42,5 +42,10 @@ and trim(F.table_name) || '.' || F.name in (select trim(tablename)||'.'||trim(fi
21027^Hörerstatus (intern)^43^0^0^140^80^1^char^30^0^12^<<SQL>> select tid,name,sortnr from sichten where art in ('XCUBE-Hörerstatus-Sicht') order by 3,2;^^^
21028^Spaltenvisualisierung^10000^0^0^140^80^1^char^30^0^1^<<SQL>> select '_graph','Balken (horiz. linksb.)' from xdummy\
union select '_graphbarright','Balken (horiz. rechtsb.)' from xdummy\
union select '_graphbaralternating','Balken (horiz. rechtsb./linksb.)' from xdummy^^^
union select '_graphbaralternating','Balken (horiz. rechtsb./linksb.)' from xdummy\
union select '_sparkbar','Balkendiagramm' from xdummy\
where 0 < (select count(*) from sx_stylesheets where filename='tabelle_html_viz.xsl')\
union select '_sparkline','Liniendiagramm' from xdummy\
where 0 < (select count(*) from sx_stylesheets where filename='tabelle_html_viz.xsl')\
order by 1^^^
21029^Zeilenfilter bis Ebene^140^0^0^140^80^1^integer^30^0^0^ ^^^

12
src-modules/module/xcube/masken/21000_maskeninfo.unl

@ -380,7 +380,11 @@ select \ @@ -380,7 +380,11 @@ select \
ebene as level, --bei Grafiken keine Ebenenanzeige\
</#if>\
</#if>\
<#if graph_col?starts_with("_spark")>\
name as _categorySpark\
<#else>\
name\
</#if>\
--TODO: wenn <<2.Ansicht in Zeilen>>"!="" dann ,col2\
<#assign i=0/>\
<#foreach spalte in ergspalten>\
@ -393,14 +397,22 @@ name\ @@ -393,14 +397,22 @@ name\
<#else>\
, '' || c${i}::${datatype} || '|' || tmp_cellmax.maxvalue as _graphbarright${i}\
</#if>\
<#elseif graph_col?starts_with("_spark")>\
, c${i} as ${graph_col}${i}\
<#else>\
, '' || c${i}::${datatype} || '|' || tmp_cellmax.maxvalue as ${graph_col}${i}\
</#if>\
\
<#else>\
--letzte Spalte:\
<#if graph_col?starts_with("_spark")>\
, c${i} as ${graph_col}${i}\
<#else>\
, c${i}::${datatype} as col${i}\
</#if>\
\
</#if>\
\
</#foreach>\
\
from tmp_erg, tmp_cellmax order by sortnr;^--freemarker Template\

Loading…
Cancel
Save