Browse Source

XCUBE Wohnort Sicht für Staaten vorbereitet

xcube0.1
Daniel Quathamer 2 years ago
parent
commit
74b35840dc
  1. 22
      src-modules/module/xcube/conf/xcube.xml
  2. 2
      src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql

22
src-modules/module/xcube/conf/xcube.xml

@ -93,7 +93,27 @@
<functions> <functions>
</functions> </functions>
<views> <views>
<view name="xcube_wohnort_staat" caption="Wohnorte/Staaten">
<description>View Wohnorte nach Bundesland und Staaten</description>
<columns>
<column name="druck" type="VARCHAR" size ="255" default ="" notnull ="true" />
<column name="apnr" type="CHAR" size ="10" default ="" notnull ="false" />
<column name="parent" type="CHAR" size ="10" default ="" notnull ="false" />
</columns>
<sql dbsystem=""><![CDATA[select 'Deutschland'::varchar(255) as druck ,
'0'::char(10) as apnr,
null::char(10) as parent
from xdummy
union select druck,
apnr,
'0' as parent
from cifx where key=8
union select druck,
'' || val(astat) as apnr ,
bund_apnr as parent
from cifx where key=11
]]></sql>
</view>
</views> </views>
<themen> <themen>

2
src-modules/module/xcube/schluesseltabellen/sichten_fuellen.sql

@ -10,7 +10,7 @@ select setval('sichten_tid_seq',(select max(tid) from sichten));
"art":"XCUBE-Alter-Sicht"}, "art":"XCUBE-Alter-Sicht"},
{"name_intern":"xcube_dim_wohnort", {"name_intern":"xcube_dim_wohnort",
"name":"Wohnort nach Bundesländern", "name":"Wohnort nach Bundesländern",
"quelle":"<<SQL>> select ''Deutschland''::varchar(255) as druck , ''0'' as apnr, null::varchar(255) as parent from xdummy union select druck,apnr,''0'' from cifx where key=8 union select druck, '''' || val(astat), bund_apnr from cifx where key=11 order by 1", "quelle":"<<SQL>> select druck ,apnr, parent from xcube_wohnort_staat order by 1",
"art":"XCUBE-Wohnort-Sicht"} "art":"XCUBE-Wohnort-Sicht"}
] /> ] />

Loading…
Cancel
Save