12: --
13: -- Error (PRIVATE)
14: -- Print a page with an error message.
15: -- Errors are retrieved from these sources in order:
16: -- 1. wf_core errors
17: -- 2. Oracle errors
18: -- 3. Unspecified INTERNAL error
19: --
20: procedure Error
73:
74: -- only include select before the first column
75: if (i=title_start and include_select) then
76: htp.tableHeader(cvalue=>''||
77: wf_core.translate('SELECT')||'',
78: calign=>'Center',
79: cattributes=>'ID="' || wf_core.translate('SELECT') || '"');
80: end if;
81:
75: if (i=title_start and include_select) then
76: htp.tableHeader(cvalue=>''||
77: wf_core.translate('SELECT')||'',
78: calign=>'Center',
79: cattributes=>'ID="' || wf_core.translate('SELECT') || '"');
80: end if;
81:
82: htp.tableHeader(cvalue=>''||
83: headerTab(i).value||'',
109:
110: -- only include select before the first column
111: if (include_select) then
112: htp.tableHeader(cvalue=>''||
113: wf_core.translate('SELECT')||'',
114: calign=>'Center',
115: cattributes=>'id="' || wf_core.translate('SELECT') ||'"');
116: end if;
117: end if;
111: if (include_select) then
112: htp.tableHeader(cvalue=>''||
113: wf_core.translate('SELECT')||'',
114: calign=>'Center',
115: cattributes=>'id="' || wf_core.translate('SELECT') ||'"');
116: end if;
117: end if;
118:
119: htp.tableHeader(cvalue=>''||
173:
174: -- place the delete to the very end
175: if (include_delete) then
176: htp.tableHeader(cvalue=>''||
177: wf_core.translate('DELETE')||'',
178: calign=>'Center',
179: cattributes=>'id="' || wf_core.translate('DELETE') ||'"');
180: end if;
181: end if;
175: if (include_delete) then
176: htp.tableHeader(cvalue=>''||
177: wf_core.translate('DELETE')||'',
178: calign=>'Center',
179: cattributes=>'id="' || wf_core.translate('DELETE') ||'"');
180: end if;
181: end if;
182:
183: if (openrowcount > 0) then
187:
188: exception
189: when OTHERS then
190: rollback;
191: wf_core.context('WFE_HTML_UTIL', 'RenderTitle');
192: wfe_html_util.Error;
193: end RenderTitle;
194:
195: --
671: curl=>wfa_html.base_url||'/'||func_detail||
672: rawtohex(dataTab(i).guid),
673: ctext=>'
675: alt="' || wf_core.translate('WFE_EDIT_SUBSC_TITLE') || '"
676: BORDER=0>'),
677: 'CENTER', cattributes=>'valign="MIDDLE" id=""');
678: else
679: htp.tableData(htf.anchor2(
680: curl=>wfa_html.base_url||'/'||func_detail||
681: rawtohex(dataTab(i).guid),
682: ctext=>'
684: alt="' || wf_core.translate('WFE_ADD_SUBSCRIPTION') || '"
685: BORDER=0>'),
686: 'CENTER', cattributes=>'valign="MIDDLE" id=""');
687: end if;
688: end if;
693: curl=>wfa_html.base_url||'/'||func_edit||
694: rawtohex(dataTab(i).guid),
695: ctext=>'
697: alt="' || wf_core.translate('EDIT') || '" BORDER=0>'),
698: 'CENTER', cattributes=>'valign="MIDDLE" id=""');
699:
700: end if;
701:
703: if (include_delete) then
704: if (dataTab(i).deletable) then
705: htp.tableData(htf.anchor2(
706: curl=>'javascript:confirm_url('''||
707: wf_core.translate('WFE_OK_DELETE')||''','''||
708: wfa_html.base_url||'/'||func_delete||
709: rawtohex(dataTab(i).guid)||''')',
710: ctext=>'
708: wfa_html.base_url||'/'||func_delete||
709: rawtohex(dataTab(i).guid)||''')',
710: ctext=>'
712: alt="' || wf_core.translate('DELETE') || '"BORDER=0>'),
713: 'CENTER', cattributes=>'valign="MIDDLE" id=""');
714: else
715: htp.tableData(' ',cattributes=>'id=""');
716: end if;
735:
736: exception
737: when OTHERS then
738: rollback;
739: wf_core.context('WFE_HTML_UTIL', 'Simple_Table');
740: wfe_html_util.Error;
741: end Simple_Table;
742:
743:
842: hTab(i).def_type := 'FUNCTION';
843: hTab(i).value := 'wf_event_html.EditEvent?h_guid=';
844: i := i+1;
845: hTab(i).def_type := 'TITLE';
846: hTab(i).value := wf_core.translate('SUBSCRIPTIONS');
847: hTab(i).level := 0;
848: hTab(i).attr := 'id="'||wf_core.translate('SUBSCRIPTIONS')||'"';
849: i := i+1;
850: hTab(i).def_type := 'TITLE';
844: i := i+1;
845: hTab(i).def_type := 'TITLE';
846: hTab(i).value := wf_core.translate('SUBSCRIPTIONS');
847: hTab(i).level := 0;
848: hTab(i).attr := 'id="'||wf_core.translate('SUBSCRIPTIONS')||'"';
849: i := i+1;
850: hTab(i).def_type := 'TITLE';
851: hTab(i).value := wf_core.translate('EDIT');
852: hTab(i).level := 0;
847: hTab(i).level := 0;
848: hTab(i).attr := 'id="'||wf_core.translate('SUBSCRIPTIONS')||'"';
849: i := i+1;
850: hTab(i).def_type := 'TITLE';
851: hTab(i).value := wf_core.translate('EDIT');
852: hTab(i).level := 0;
853: i := i+1;
854: hTab(i).def_type := 'TITLE';
855: hTab(i).value := wf_core.translate('SYSTEM');
851: hTab(i).value := wf_core.translate('EDIT');
852: hTab(i).level := 0;
853: i := i+1;
854: hTab(i).def_type := 'TITLE';
855: hTab(i).value := wf_core.translate('SYSTEM');
856: hTab(i).level := 2;
857: hTab(i).span := 3;
858: hTab(i).trattr := 'bgcolor=#069CCC';
859: hTab(i).attr := 'bgcolor=#ACCCCC';
865: hTab(i).trattr := 'bgcolor=#069CCC';
866: hTab(i).attr := 'bgcolor=#BCCCCC';
867: i := i+1;
868: hTab(i).def_type := 'TITLE';
869: hTab(i).value := wf_core.translate('EVENT');
870: hTab(i).level := 1;
871: hTab(i).span := 2;
872: hTab(i).attr := 'id="'||wf_core.translate('EVENT')||'"';
873: i := i+1;
868: hTab(i).def_type := 'TITLE';
869: hTab(i).value := wf_core.translate('EVENT');
870: hTab(i).level := 1;
871: hTab(i).span := 2;
872: hTab(i).attr := 'id="'||wf_core.translate('EVENT')||'"';
873: i := i+1;
874: hTab(i).def_type := 'TITLE';
875: hTab(i).value := null; -- indentation
876: hTab(i).level := 0;
877: hTab(i).trattr := 'bgcolor=#069CCC';
878: hTab(i).attr := 'bgcolor=#ABCCCC';
879: i := i+1;
880: hTab(i).def_type := 'TITLE';
881: hTab(i).value := wf_core.translate('DISPLAY_NAME');
882: hTab(i).level := 0;
883: hTab(i).attr := 'id="'||wf_core.translate('DISPLAY_NAME')||'"';
884: i := i+1;
885: hTab(i).def_type := 'TITLE';
879: i := i+1;
880: hTab(i).def_type := 'TITLE';
881: hTab(i).value := wf_core.translate('DISPLAY_NAME');
882: hTab(i).level := 0;
883: hTab(i).attr := 'id="'||wf_core.translate('DISPLAY_NAME')||'"';
884: i := i+1;
885: hTab(i).def_type := 'TITLE';
886: hTab(i).value := wf_core.translate('NAME');
887: hTab(i).level := 0;
882: hTab(i).level := 0;
883: hTab(i).attr := 'id="'||wf_core.translate('DISPLAY_NAME')||'"';
884: i := i+1;
885: hTab(i).def_type := 'TITLE';
886: hTab(i).value := wf_core.translate('NAME');
887: hTab(i).level := 0;
888: hTab(i).attr := 'id="'||wf_core.translate('NAME')||'"';
889:
890: i := 1;
884: i := i+1;
885: hTab(i).def_type := 'TITLE';
886: hTab(i).value := wf_core.translate('NAME');
887: hTab(i).level := 0;
888: hTab(i).attr := 'id="'||wf_core.translate('NAME')||'"';
889:
890: i := 1;
891: dTab(i).guid := hextoraw('64F1FCEF78EE5934E0340800208ACA52');
892: dTab(i).level:= 2;