|
|
@ -49,10 +49,12 @@ C.is_aggregate,\ |
|
|
|
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ |
|
|
|
(case when string_not_null(CL.caption)='' then C.caption else CL.caption end) as caption,\ |
|
|
|
CL.is_visible,\ |
|
|
|
CL.is_visible,\ |
|
|
|
CL.visible_size as visible_width,\ |
|
|
|
CL.visible_size as visible_width,\ |
|
|
|
(select F.sql_code from rpta_format_code F where F.tid=CL.format_code_id) as format_sql,\ |
|
|
|
F.sql_code as format_sql,\ |
|
|
|
|
|
|
|
F.uniquename as format_uniquename,\ |
|
|
|
C.col_function as colfunction,\ |
|
|
|
C.col_function as colfunction,\ |
|
|
|
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ |
|
|
|
(case when string_not_null(CL.description)='' then C.description else CL.description end) as description\ |
|
|
|
FROM rpta_column_layout L, rpta_column2layout CL, rpta_column C, rpta_column_type T\ |
|
|
|
FROM rpta_column_layout L, rpta_column C, rpta_column_type T,rpta_column2layout CL \ |
|
|
|
|
|
|
|
left outer join rpta_format_code F on (F.tid=CL.format_code_id)\ |
|
|
|
where L.tid=CL.layout_id\ |
|
|
|
where L.tid=CL.layout_id\ |
|
|
|
and C.tid=CL.column_id\ |
|
|
|
and C.tid=CL.column_id\ |
|
|
|
and T.tid=C.column_type\ |
|
|
|
and T.tid=C.column_type\ |
|
|
|