Erstellung von Portaloberflächen in SuperX
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.
 
 
 
 
 
 

95 lines
2.8 KiB

52000^Portale verwalten^--Autor: D. Quathamer\
--Datum: 15.8.2026\
--freemarker template\
<sqlvars>\
<sqlvar name="gang_installed">\
select count(*) from db_version where his_system ='gang';\
</sqlvar>\
</sqlvars>\
\
\
create temp table tmp_portal_config(\
tid INTEGER , \
uniquename VARCHAR(255) not null, \
caption VARCHAR(255) , \
userinfo_id INTEGER , \
print_maskeninfo_id INTEGER , \
booklet_stylesheet VARCHAR(255) ,\
layout_uniquename varchar(255),\
layout_caption varchar(255),\
layout_id integer,\
entry_param_name VARCHAR(255) ,\
nextedit varchar(255),\
nextedit2 varchar(255)\
);\
insert into tmp_portal_config (tid,\
uniquename,\
caption,\
userinfo_id,\
print_maskeninfo_id,\
booklet_stylesheet,\
layout_id,\
-- entry_param,\
-- entry_param_name,\
nextedit) \
select C.tid,\
C.uniquename,\
C.caption,\
C.userinfo_id,\
C.print_maskeninfo_id,\
C.booklet_stylesheet,\
L.portal_layout_id,\
-- entry_param,\
-- entry_param_name\
('../edit/portal/portal_config_edit.jsp|tid=' || C.tid)::varchar(255)\
\
FROM portal_config C left outer join portal_config2layout L\
on (L.portal_config_id=C.tid)\
where 1=1\
/* and C.caption ilike '%<<Stichwort>>%' */\
/* and C.uniquename ilike '%<<Schlüssel>>%' */\
;\
\
update tmp_portal_config T set layout_caption=L.caption,\
layout_uniquename=L.uniquename\
from portal_layout L\
where L.tid=T.layout_id;\
\
<#if gang_installed==1>\
update tmp_portal_config set nextedit2='../edit/portal/portal_show.jsp?config=' || trim(uniquename)\
|| '&layout=' || trim(layout_uniquename);\
update tmp_portal_config set nextedit2=nextedit2 || '&entryParam=' || (select min(G.tid)\
from gang_stg_ab G)\
where uniquename='portal_config_gang_bearbeiten';\
</#if>\
\
\
select \
caption,\
uniquename,\
layout_caption,\
nextedit ,\
nextedit2\
\
from tmp_portal_config\
order by 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=0 heading_text="Layout" center_heading\
row_selectable col_selectable heading_platform readonly\
width=50 text_size=100\
Column CID=1 heading_text="Bearbeiten" center_heading\
row_selectable col_selectable heading_platform readonly\
width=5 text_size=200\
Column CID=1 heading_text="Aufrufen" center_heading\
row_selectable col_selectable heading_platform readonly\
width=5 text_size=200\
@@@^^^Portale und Inhalte verwalten.^drop table tmp_portal_config;^^1^440^360^0^1^ ^