AH's new error screen and base bug fixes

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3631 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
PriestJ
2008-02-19 12:34:50 +00:00
parent 3fdf82de7f
commit 70c8f05f98
2 changed files with 42723 additions and 43988 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -179,17 +179,21 @@ c1:=c1||'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
'</head>'||chr(10)||
'<body #ONLOAD#>#FORM_OPEN#'||chr(10)||
'<div id="rowHd">'||chr(10)||
'<div id="logo" class="hskpcol1">'||chr(10)||
'<img';
'<div id="logo" class="hskpco';
c1:=c1||' src="#WORKSPACE_IMAGES#ngmeterlogo.gif" alt="National Grid Metering"/>'||chr(10)||
c1:=c1||'l1">'||chr(10)||
'<a href="http://www.nationalgrid.com/"><img src="#WORKSPACE_IMAGES#logo_group_medium.gif" alt="National Grid Metering"/></a>'||chr(10)||
'</div>'||chr(10)||
'<div id="navHousekeep" class="hskpcol2">'||chr(10)||
'<p>You are logged in as... &APP_USER.</p>'||chr(10)||
'<div class="margin5">'||chr(10)||
'<a href="this is the url for the holding page for the ICOMQ system" class="hskpnav" title="Return to the Metering Online Quotations Home Page" accesskey="1">Home</a>&nbsp;|&nbsp;<a href="&LOGOUT_';
c1:=c1||'URL." class="hskpnav" title="Log out of the system" accesskey="2">Logout</a>&nbsp;|&nbsp;<!--a href="/group/help" class="hskpnav">Help</a>&nbsp;|&nbsp;--><span>You are logged in as:&APP_USER.</span>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
'<div id="rowSiteNav">'||chr(10)||
'<p>I &amp; C Meter Online Quotation System</p> '||chr(10)||
'<p>I &amp; C Online Quotation System &SYSTEM_ENVIRONMENT.</p> '||chr(10)||
'</div>';
c2:=c2||'<div id="rowFooter"><!-- bottom strip of info -->'||chr(10)||
@@ -205,9 +209,9 @@ c2:=c2||'<div id="rowFooter"><!-- bottom strip of info -->'||chr(10)||
' <div class="hskpcol2">'||chr(10)||
' <div id="navFooter">'||chr(10)||
' <a href="thehelp.htm">Help</a> | '||chr(10)||
' <a href="theter';
' <a';
c2:=c2||'msandconditions.htm">Terms &amp; conditions</a>'||chr(10)||
c2:=c2||' href="thetermsandconditions.htm">Terms &amp; conditions</a>'||chr(10)||
''||chr(10)||
' | <a href="theprivacypolicy.htm">Privacy policy</a>'||chr(10)||
' </div>'||chr(10)||
@@ -224,7 +228,7 @@ c3:=c3||'<div id="UKSubNav" class="reg">'||chr(10)||
'</div>'||chr(10)||
'<div id="rowContent">'||chr(10)||
'<div id="colLeft">'||chr(10)||
'#NAVIGATION_BAR#'||chr(10)||
'<div id="navTier" class="w180">#REGION_POSITION_08#</div>'||chr(10)||
'</div>'||chr(10)||
'<div id="colMid">'||chr(10)||
''||chr(10)||
@@ -236,9 +240,9 @@ c3:=c3||'<div id="UKSubNav" class="reg">'||chr(10)||
'</div>'||chr(10)||
'<div id="colRight">'||chr(10)||
'<h1 class="podTitle"><img src="#WORKSPACE_IMAGES#exclaim.gif" alt=""/>Important Messages</h1>'||chr(10)||
'<div class="t4messages">#GLOBAL_NOTIFICATION##SUCCESS_MESSAG';
'<d';
c3:=c3||'E##NOTIFICATION_MESSAGE#</div>'||chr(10)||
c3:=c3||'iv class="t4messages">#GLOBAL_NOTIFICATION##SUCCESS_MESSAGE##NOTIFICATION_MESSAGE#</div>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
''||chr(10)||
@@ -266,7 +270,7 @@ wwv_flow_api.create_template(
p_current_image_tab=> '',
p_non_current_image_tab=> '',
p_notification_message=> '<div class="t4notification">#MESSAGE#</div>',
p_navigation_bar=> '<div id="navTier" class="w180"><ul class="tierLink">#BAR_BODY#</ul></div>',
p_navigation_bar=> '',
p_navbar_entry=> '<li><img src="#WORKSPACE_IMAGES#black.gif" alt=""><a href="#LINK#">#TEXT#</a></li>',
p_app_tab_before_tabs=>'',
p_app_tab_current_tab=>'',
@@ -278,7 +282,6 @@ wwv_flow_api.create_template(
p_theme_id => wwv_flow.g_flow_theme_id,
p_theme_class_id => 3,
p_required_patch => null + wwv_flow_api.g_id_offset,
p_translate_this_template => 'N',
p_template_comment => '');
end;
@@ -949,6 +952,197 @@ null;
end;
/
--application/shared_components/user_interface/templates/page/errorpage
prompt ......Page template 38911722486594102
begin
declare
c1 varchar2(32767) := null;
c2 varchar2(32767) := null;
c3 varchar2(32767) := null;
l_clob clob;
l_length number := 1;
begin
c1:=c1||'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml1-transitional.dtd">'||chr(10)||
'<html lang="&BROWSER_LANGUAGE." xmlns:htmldb="http://htmldb.oracle.com">'||chr(10)||
'<head>'||chr(10)||
'<title>#TITLE#</title>'||chr(10)||
'<link rel="stylesheet" href="#WORKSPACE_IMAGES#common.css" type="text/css" />'||chr(10)||
'#HEAD#'||chr(10)||
'</head>'||chr(10)||
'<body #ONLOAD#>#FORM_OPEN#'||chr(10)||
'<div id="rowHd">'||chr(10)||
'<div id="logo" class="hskpco';
c1:=c1||'l1">'||chr(10)||
'<a href="http://www.nationalgrid.com/"><img src="#WORKSPACE_IMAGES#logo_group_medium.gif" alt="National Grid Metering"/></a>'||chr(10)||
'</div>'||chr(10)||
'<div id="navHousekeep" class="hskpcol2">'||chr(10)||
'<div class="margin5">'||chr(10)||
'<a href="this is the url for the holding page for the ICOMQ system" class="hskpnav" title="Return to the Metering Online Quotations Home Page" accesskey="1">Home</a>&nbsp;|&nbsp;<a href="&LOGOUT_';
c1:=c1||'URL." class="hskpnav" title="Log out of the system" accesskey="2">Logout</a>&nbsp;|&nbsp;<!--a href="/group/help" class="hskpnav">Help</a>&nbsp;|&nbsp;--><span>You are logged in as:&APP_USER.</span>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
'<div id="rowSiteNav">'||chr(10)||
'<p>I &amp; C Online Quotation System &SYSTEM_ENVIRONMENT.</p> '||chr(10)||
'</div>'||chr(10)||
''||chr(10)||
'<script type="text/javascript">'||chr(10)||
''||chr(10)||
'function MyErrorPage(p_err_item,p_err_proces';
c1:=c1||'s)'||chr(10)||
'{'||chr(10)||
''||chr(10)||
' var vElementList = null;'||chr(10)||
' var vElement = null;'||chr(10)||
' var vErrorStack = null;'||chr(10)||
' var vOraErrorStack = null;'||chr(10)||
' var vOraError = null;'||chr(10)||
' var vOraCode = null;'||chr(10)||
' var vAjaxRequest = null;'||chr(10)||
' var vAjaxResult = null;'||chr(10)||
' var vMyMsg = '''';'||chr(10)||
''||chr(10)||
' vElementList = window.document.getElementsByTagName("div");'||chr(10)||
' for (i=0; i < vElementList.length; i++)'||chr(10)||
' {'||chr(10)||
' vElement = vElementList[i];'||chr(10)||
' '||chr(10)||
' if';
c1:=c1||' (vElement.className == "ErrorPageMessage")'||chr(10)||
' {'||chr(10)||
' vErrorStack = (vErrorStack ==null?"":vErrorStack+"<br/>")+vElement.innerHTML;'||chr(10)||
' vElement.innerHTML = '''';'||chr(10)||
' vOraErrorStack = vErrorStack.split("ORA-");'||chr(10)||
' for(var j=1; j < vOraErrorStack.length; j++) {'||chr(10)||
' vOraError = vOraErrorStack[j];'||chr(10)||
' vAjaxRequest = new htmldb_Get(null,&APP_ID.,''APPLICATION_PROCESS=''+p_err_process,0);'||chr(10)||
' ';
c1:=c1||'vAjaxRequest.add(p_err_item,vOraError);'||chr(10)||
' vAjaxResult = vAjaxRequest.get();'||chr(10)||
' if (vAjaxResult) {'||chr(10)||
' vMyMsg = vMyMsg + vAjaxResult + ''<br>'' ;'||chr(10)||
' } else {'||chr(10)||
' vMyMsg = vMyMsg + ''ORA-''+vOraError.substring(0) + ''<br>'' ;'||chr(10)||
' }'||chr(10)||
' }'||chr(10)||
' document.getElementById(''ORA'').innerHTML = vMyMsg;'||chr(10)||
''||chr(10)||
' }'||chr(10)||
' }'||chr(10)||
'}'||chr(10)||
'</script>'||chr(10)||
''||chr(10)||
'<body onload="MyErrorPage(''ORA_ERR_CODE'',''getErrorMsg'')" #O';
c1:=c1||'NLOAD#>#FORM_OPEN#'||chr(10)||
'';
c2:=c2||'<div id="rowFooter"><!-- bottom strip of info -->'||chr(10)||
' '||chr(10)||
' <div class="clear"></div>'||chr(10)||
' <div class="access"><hr></div>'||chr(10)||
''||chr(10)||
' '||chr(10)||
' <div class="hskpcol1"><!-- copyright box -->'||chr(10)||
' <div id="copyright">Copyright <20> <!--2006--><span id="Pagefooter_lblYear">2007</span> National Grid</div>'||chr(10)||
' </div>'||chr(10)||
' '||chr(10)||
' <div class="hskpcol2">'||chr(10)||
' <div id="navFooter">'||chr(10)||
' <a href="thehelp.htm">Help</a> | '||chr(10)||
' <a';
c2:=c2||' href="thetermsandconditions.htm">Terms &amp; conditions</a>'||chr(10)||
''||chr(10)||
' | <a href="theprivacypolicy.htm">Privacy policy</a>'||chr(10)||
' </div>'||chr(10)||
' </div>'||chr(10)||
' '||chr(10)||
'</div>'||chr(10)||
'#REGION_POSITION_05#'||chr(10)||
'#FORM_CLOSE# '||chr(10)||
'</body>'||chr(10)||
'</html>';
c3:=c3||'<div id="UKSubNav" class="reg">'||chr(10)||
'#REGION_POSITION_01#'||chr(10)||
'</div>'||chr(10)||
'<div id="rowContent">'||chr(10)||
'<div id="colLeft">'||chr(10)||
'<div id="navTier" class="w180">#REGION_POSITION_08#</div>'||chr(10)||
'</div>'||chr(10)||
'<div id="colMid">'||chr(10)||
''||chr(10)||
'#BOX_BODY#'||chr(10)||
''||chr(10)||
'#REGION_POSITION_02#'||chr(10)||
'#REGION_POSITION_03#'||chr(10)||
'#REGION_POSITION_04#'||chr(10)||
'</div>'||chr(10)||
'<div id="colRight">'||chr(10)||
'<h1 class="podTitle"><img src="#WORKSPACE_IMAGES#exclaim.gif" alt=""/>Important Messages</h1>'||chr(10)||
'<d';
c3:=c3||'iv class="t4messages">#GLOBAL_NOTIFICATION##SUCCESS_MESSAGE##NOTIFICATION_MESSAGE#</div>'||chr(10)||
'</div>'||chr(10)||
'</div>'||chr(10)||
''||chr(10)||
''||chr(10)||
''||chr(10)||
'';
wwv_flow_api.create_template(
p_id=> 38911722486594102 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_name=> 'ErrorPage',
p_body_title=> '',
p_header_template=> c1,
p_box=> c3,
p_footer_template=> c2,
p_success_message=> '<div class="t4success">#SUCCESS_MESSAGE#</div>',
p_current_tab=> '',
p_current_tab_font_attr=> '',
p_non_current_tab=> '',
p_non_current_tab_font_attr => '',
p_top_current_tab=> '',
p_top_current_tab_font_attr => '',
p_top_non_curr_tab=> '',
p_top_non_curr_tab_font_attr=> '',
p_current_image_tab=> '',
p_non_current_image_tab=> '',
p_notification_message=> '<div class="t4notification">#MESSAGE#</div>',
p_navigation_bar=> '',
p_navbar_entry=> '<li><img src="#WORKSPACE_IMAGES#black.gif" alt=""><a href="#LINK#">#TEXT#</a></li>',
p_app_tab_before_tabs=>'',
p_app_tab_current_tab=>'',
p_app_tab_non_current_tab=>'',
p_app_tab_after_tabs=>'',
p_region_table_cattributes=> ' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"',
p_sidebar_def_reg_pos => 'REGION_POSITION_02',
p_breadcrumb_def_reg_pos => 'REGION_POSITION_01',
p_theme_id => wwv_flow.g_flow_theme_id,
p_theme_class_id => 3,
p_error_page_template => '<table summary=""><tr><td><img src="/i/error.gif" border="0" /></td>'||chr(10)||
'</tr>'||chr(10)||
'<b id=''ORA''>Error</b>'||chr(10)||
'<tr><td><a href=#BACK_LINK#>#OK#</a></td>'||chr(10)||
'<td><br /></td></tr></table> ',
p_required_patch => null + wwv_flow_api.g_id_offset,
p_template_comment => '');
end;
null;
end;
/
prompt ...button templates
--
--application/shared_components/user_interface/templates/button/button
@@ -1409,16 +1603,16 @@ declare
l_clob3 clob;
l_length number := 1;
begin
t:=t||'<h1><a href="##REGION_ID#">#TITLE#</a></h1>'||chr(10)||
t:=t||'<h1><a/ name="#REGION_STATIC_ID#">#TITLE#</h1>'||chr(10)||
'<table class="t4FormRegion" id="#REGION_ID#" border="0" cellpadding="0" cellspacing="0" summary="">'||chr(10)||
'<tr><td class="t4RegionHeader"></td></tr>'||chr(10)||
'<tr>'||chr(10)||
'<td class="t4ButtonHolder">#CLOSE#&nbsp;#EXPAND##HELP##DELETE##EDIT##CHANGE##COPY##PREVIOUS##NEXT##CREATE##CREATE2#</td>'||chr(10)||
'</tr>'||chr(10)||
'<tr>'||chr(10)||
'<td class="t4RegionBody">#BODY#<img alt="" src="#IMAGE_PREFIX#themes/t';
'<td class="t4RegionBody">#BODY#<img alt="" src="#IMAGE_PREFIX#theme';
t:=t||'heme_4/1px_trans.gif" style="display:block;" width="600" height="1" /></td>'||chr(10)||
t:=t||'s/theme_4/1px_trans.gif" style="display:block;" width="600" height="1" /></td>'||chr(10)||
'</tr>'||chr(10)||
'</table>';
@@ -2739,21 +2933,21 @@ declare
l_clob8 clob;
l_length number := 1;
begin
t:=t||'<li><a href="#LINK#">#TEXT#</a></li>';
t:=t||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t2:=t2||'<li><a href="#LINK#">#TEXT#</a></li>';
t2:=t2||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t3:=t3||'<li><a href="#LINK#">#TEXT#</a></li>';
t3:=t3||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t4:=t4||'<li><a href="#LINK#">#TEXT#</a></li>';
t4:=t4||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t5:=t5||'<li><a href="#LINK#">#TEXT#</a></li>';
t5:=t5||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t6:=t6||'<li><a href="#LINK#">#TEXT#</a></li>';
t6:=t6||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t7:=t7||'<li><a href="#LINK#">#TEXT#</a></li>';
t7:=t7||'<li><a name="#LIST_LABEL#" class="current" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
t8:=t8||'<li><a href="#LINK#">#TEXT#</a></li>';
t8:=t8||'<li><a name="#LIST_LABEL#" href="#LINK#"><img src="#WORKSPACE_IMAGES#black.gif" alt="">#TEXT#</a></li>';
wwv_flow_api.create_list_template (
p_id=>24746820611526783 + wwv_flow_api.g_id_offset,
@@ -2762,10 +2956,10 @@ wwv_flow_api.create_list_template (
p_list_template_noncurrent=> t2,
p_list_template_name=>'Tree List',
p_theme_id => wwv_flow.g_flow_theme_id,
p_theme_class_id => 23,
p_list_template_before_rows=>'<ul class="htmlTree">',
p_theme_class_id => 0,
p_list_template_before_rows=>'<ul class="tierLink">',
p_list_template_after_rows=>'</ul><br style="clear:both;"/><br style="clear:both;"/>',
p_before_sub_list=>'<ul id="#PARENT_LIST_ITEM_ID#" htmldb:listlevel="#LEVEL#">',
p_before_sub_list=>'<ul name="#LIST_LABEL#" id="#PARENT_LIST_ITEM_ID#" htmldb:listlevel="#LEVEL#">',
p_after_sub_list=>'</ul>',
p_sub_list_item_current=> t3,
p_sub_list_item_noncurrent=> t4,
@@ -2773,7 +2967,6 @@ wwv_flow_api.create_list_template (
p_item_templ_noncurr_w_child=> t6,
p_sub_templ_curr_w_child=> t7,
p_sub_templ_noncurr_w_child=> t8,
p_translate_this_template => 'N',
p_list_template_comment=>'');
end;
null;
@@ -3694,12 +3887,11 @@ wwv_flow_api.create_field_template (
p_flow_id=> wwv_flow.g_flow_id,
p_template_name=>'Required Label with Help',
p_template_body1=>'<label for="#CURRENT_ITEM_NAME#"><a class="t4RequiredLabelwithHelp" href="javascript:popupFieldHelp(''#CURRENT_ITEM_ID#'',''&SESSION.'')" tabindex="999">',
p_template_body2=>'</a></label>',
p_template_body2=>' *</a></label>',
p_on_error_before_label=>'<div class="t4InlineError">',
p_on_error_after_label=>'<br/>#ERROR_MESSAGE#</div>',
p_theme_id => wwv_flow.g_flow_theme_id,
p_theme_class_id => 2,
p_translate_this_template=> 'N',
p_template_comment=> '');
end;
null;
@@ -4083,7 +4275,7 @@ wwv_flow_api.create_theme (
p_theme_id => wwv_flow.g_flow_theme_id,
p_theme_name=>'National Grid',
p_default_page_template=>24734011047526756 + wwv_flow_api.g_id_offset,
p_error_template=>24734616867526758 + wwv_flow_api.g_id_offset,
p_error_template=>38911722486594102 + wwv_flow_api.g_id_offset,
p_printer_friendly_template=>24735530196526758 + wwv_flow_api.g_id_offset,
p_breadcrumb_display_point=>'REGION_POSITION_01',
p_sidebar_display_point=>'REGION_POSITION_02',