Addresses #359 by not clearing the innerHTML until confirmed that we have an ORA message.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3935 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
hardya
2008-03-11 09:06:47 +00:00
parent 87260a3f50
commit 93cc9eaa79

View File

@@ -17,7 +17,7 @@ prompt Set Credentials...
begin
-- Assumes you are running the script connected to SQL*Plus as the Oracle user FLOWS_030000 or as the owner (parsing schema) of the application.
-- Assumes you are running the script connected to SQL*Plus as the Oracle user FLOWS_030100 or as the owner (parsing schema) of the application.
wwv_flow_api.set_security_group_id(p_security_group_id=>11019802792885519);
end;
@@ -148,7 +148,6 @@ wwv_flow_api.create_template(
p_region_table_cattributes=> ' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"',
p_theme_id => wwv_flow.g_flow_theme_id,
p_theme_class_id => 6,
p_required_patch => null + wwv_flow_api.g_id_offset,
p_translate_this_template => 'N',
p_template_comment => '');
end;
@@ -175,21 +174,21 @@ c1:=c1||'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"'||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)||
'<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="hskpcol1">'||chr(10)||
'<a href="http';
'<a href="http:/';
c1:=c1||'://www.nationalgrid.com/"><img src="/i/ng_logo_group_medium.gif" alt="National Grid Metering" width="200" height="43"/></a>'||chr(10)||
c1:=c1||'/www.nationalgrid.com/"><img src="#IMAGE_PREFIX#ng_logo_group_medium.gif" alt="National Grid Metering" width="200" height="43"/></a>'||chr(10)||
'</div>'||chr(10)||
'<div id="navHousekeep" class="hskpcol2">'||chr(10)||
'<div class="margin5">'||chr(10)||
'<a href="holdingpagefortheICOQsystem" class="hskpnav" title="Return to the Metering Online Quotations Home Page" accesskey="1">Home</a>&nbsp;|&nbsp;<a href="&LOGOUT_URL." class="hskpnav" title="Log out ';
'<a href="holdingpagefortheICOQsystem" class="hskpnav" title="Return to the Metering Online Quotations Home Page" accesskey="1">Home</a>&nbsp;|&nbsp;<a href="&LOGOUT_URL." class="hskpnav" title=';
c1:=c1||'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)||
c1:=c1||'"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)||
@@ -283,7 +282,6 @@ wwv_flow_api.create_template(
p_breadcrumb_def_reg_pos => 'REGION_POSITION_01',
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_template_comment => '');
end;
@@ -382,7 +380,6 @@ wwv_flow_api.create_template(
p_breadcrumb_def_reg_pos => 'REGION_POSITION_01',
p_theme_id => wwv_flow.g_flow_theme_id,
p_theme_class_id => 17,
p_required_patch => null + wwv_flow_api.g_id_offset,
p_translate_this_template => 'N',
p_template_comment => '');
end;
@@ -481,7 +478,6 @@ wwv_flow_api.create_template(
p_breadcrumb_def_reg_pos => 'REGION_POSITION_01',
p_theme_id => wwv_flow.g_flow_theme_id,
p_theme_class_id => 1,
p_required_patch => null + wwv_flow_api.g_id_offset,
p_translate_this_template => 'N',
p_template_comment => '12');
end;
@@ -584,7 +580,6 @@ wwv_flow_api.create_template(
p_breadcrumb_def_reg_pos => 'REGION_POSITION_01',
p_theme_id => wwv_flow.g_flow_theme_id,
p_theme_class_id => 16,
p_required_patch => null + wwv_flow_api.g_id_offset,
p_translate_this_template => 'N',
p_template_comment => '');
end;
@@ -653,7 +648,6 @@ wwv_flow_api.create_template(
p_region_table_cattributes=> ' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"',
p_theme_id => wwv_flow.g_flow_theme_id,
p_theme_class_id => 4,
p_required_patch => null + wwv_flow_api.g_id_offset,
p_translate_this_template => 'N',
p_template_comment => '');
end;
@@ -735,7 +729,6 @@ wwv_flow_api.create_template(
p_region_table_cattributes=> ' summary="" cellpadding="0" border="0" cellspacing="0" width="100%"',
p_theme_id => wwv_flow.g_flow_theme_id,
p_theme_class_id => 5,
p_required_patch => null + wwv_flow_api.g_id_offset,
p_translate_this_template => 'N',
p_template_comment => '3');
end;
@@ -839,7 +832,6 @@ wwv_flow_api.create_template(
p_breadcrumb_def_reg_pos => 'REGION_POSITION_01',
p_theme_id => wwv_flow.g_flow_theme_id,
p_theme_class_id => 2,
p_required_patch => null + wwv_flow_api.g_id_offset,
p_translate_this_template => 'N',
p_template_comment => '8');
end;
@@ -944,7 +936,6 @@ wwv_flow_api.create_template(
p_breadcrumb_def_reg_pos => 'REGION_POSITION_01',
p_theme_id => wwv_flow.g_flow_theme_id,
p_theme_class_id => 18,
p_required_patch => null + wwv_flow_api.g_id_offset,
p_translate_this_template => 'N',
p_template_comment => '');
end;
@@ -1025,14 +1016,14 @@ c1:=c1||''||chr(10)||
' if (vElement.className == "ErrorPageMessage")'||chr(10)||
' {'||chr(10)||
' vErrorStack = (vErrorStack ==null?"":vErrorStack)+vElement.innerHTML;'||chr(10)||
' vElement.innerHTML = '''';'||chr(10)||
' vOraErrorStack = vErrorStack.split("ORA-");'||chr(10)||
' if (vOraErrorStack.length > 0) {'||chr(10)||
' vElement.innerHTML = '''';'||chr(10)||
' for(var j=1; j < vOraErrorStack.length; j++) {'||chr(10)||
' vOraError = vOraErrorStack[j];'||chr(10)||
' vAjaxRequest ';
' vAjaxReques';
c1:=c1||'= new htmldb_Get(null,&APP_ID.,''APPLICATION_PROCESS=''+p_err_process,0);'||chr(10)||
c1:=c1||'t = new htmldb_Get(null,&APP_ID.,''APPLICATION_PROCESS=''+p_err_process,0);'||chr(10)||
' vAjaxRequest.add(p_err_item,vOraError);'||chr(10)||
' vAjaxResult = vAjaxRequest.get();'||chr(10)||
' if (vAjaxResult) {'||chr(10)||
@@ -1042,9 +1033,9 @@ c1:=c1||'= new htmldb_Get(null,&APP_ID.,''APPLICATION_PROCESS=''+p_err_process,0
' }'||chr(10)||
' }'||chr(10)||
' }'||chr(10)||
'if (document.getElementById && document.createElement && vMyMsg.len';
'if (document.getElementById && document.createElement && vMyMsg.l';
c1:=c1||'gth > 0) {'||chr(10)||
c1:=c1||'ength > 0) {'||chr(10)||
' var divA = document.getElementById(''ErrorOutputDiv'');'||chr(10)||
' var oH = document.createElement(''h1'');'||chr(10)||
' oH.appendChild(document.createTextNode(''Validation failed because:''));'||chr(10)||
@@ -1052,9 +1043,9 @@ c1:=c1||'gth > 0) {'||chr(10)||
' oP.id = ''FriendlyError'';'||chr(10)||
' oP.appendChild(document.createTextNode(vMyMsg));'||chr(10)||
' // Insert the heading as the first child of the element'||chr(10)||
' divA.insertBefore(oP, div';
' divA.insertBefore(oP, d';
c1:=c1||'A.firstChild);'||chr(10)||
c1:=c1||'ivA.firstChild);'||chr(10)||
' divA.insertBefore(oH, divA.firstChild);'||chr(10)||
' }'||chr(10)||
' }'||chr(10)||
@@ -1153,7 +1144,6 @@ wwv_flow_api.create_template(
'<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;
@@ -3341,7 +3331,7 @@ wwv_flow_api.create_row_template (
'',
p_row_template_table_attr =>'OMIT',
p_row_template_type =>'GENERIC_COLUMNS',
p_column_heading_template =>'<th class="t4ReportHeader"#ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>',
p_column_heading_template=>'<th class="t4ReportHeader"#ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>',
p_row_template_display_cond1=>'0',
p_row_template_display_cond2=>'0',
p_row_template_display_cond3=>'0',
@@ -3409,7 +3399,7 @@ wwv_flow_api.create_row_template (
p_row_template_after_rows =>'</table><div class="t4CVS">#EXTERNAL_LINK##CSV_LINK#</div></td></tr>#PAGINATION#</table>',
p_row_template_table_attr =>'OMIT',
p_row_template_type =>'GENERIC_COLUMNS',
p_column_heading_template =>'<th class="t4ReportHeader" id="#COLUMN_HEADER_NAME#" #ALIGNMENT#>#COLUMN_HEADER#</th>',
p_column_heading_template=>'<th class="t4ReportHeader" id="#COLUMN_HEADER_NAME#" #ALIGNMENT#>#COLUMN_HEADER#</th>',
p_row_template_display_cond1=>'0',
p_row_template_display_cond2=>'0',
p_row_template_display_cond3=>'0',
@@ -3477,7 +3467,7 @@ wwv_flow_api.create_row_template (
p_row_template_after_rows =>'</ul><div class="t4CVS">#EXTERNAL_LINK##CSV_LINK#</div></td></tr>#PAGINATION#</table>',
p_row_template_table_attr =>'OMIT',
p_row_template_type =>'GENERIC_COLUMNS',
p_column_heading_template =>'',
p_column_heading_template=>'',
p_row_template_display_cond1=>'0',
p_row_template_display_cond2=>'0',
p_row_template_display_cond3=>'0',
@@ -3544,7 +3534,7 @@ wwv_flow_api.create_row_template (
p_row_template_after_rows =>'</table><div class="t4CVS">#EXTERNAL_LINK##CSV_LINK#</div></td></tr>#PAGINATION#</table>',
p_row_template_table_attr =>'OMIT',
p_row_template_type =>'GENERIC_COLUMNS',
p_column_heading_template =>'<th class="t4ReportHeader"#ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>',
p_column_heading_template=>'<th class="t4ReportHeader"#ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>',
p_row_template_display_cond1=>'0',
p_row_template_display_cond2=>'0',
p_row_template_display_cond3=>'0',
@@ -3619,7 +3609,7 @@ wwv_flow_api.create_row_template (
'</div>',
p_row_template_table_attr =>'OMIT',
p_row_template_type =>'GENERIC_COLUMNS',
p_column_heading_template =>'<th class="t4ReportHeader"#ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>',
p_column_heading_template=>'<th class="t4ReportHeader"#ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>',
p_row_template_display_cond1=>'0',
p_row_template_display_cond2=>'0',
p_row_template_display_cond3=>'0',
@@ -3689,7 +3679,7 @@ wwv_flow_api.create_row_template (
p_row_template_after_rows =>'</table><div class="t4CVS">#EXTERNAL_LINK##CSV_LINK#</div></td></tr>#PAGINATION#</table>',
p_row_template_table_attr =>'OMIT',
p_row_template_type =>'GENERIC_COLUMNS',
p_column_heading_template =>'<th class="t4ReportHeader"#ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>',
p_column_heading_template=>'<th class="t4ReportHeader"#ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>',
p_row_template_display_cond1=>'ODD_ROW_NUMBERS',
p_row_template_display_cond2=>'NOT_CONDITIONAL',
p_row_template_display_cond3=>'NOT_CONDITIONAL',
@@ -3762,7 +3752,7 @@ wwv_flow_api.create_row_template (
p_row_template_after_rows =>'</table><div class="t4CVS">#EXTERNAL_LINK##CSV_LINK#</div></td></tr>#PAGINATION#</table>',
p_row_template_table_attr =>'OMIT',
p_row_template_type =>'GENERIC_COLUMNS',
p_column_heading_template =>'',
p_column_heading_template=>'',
p_row_template_display_cond1=>'0',
p_row_template_display_cond2=>'0',
p_row_template_display_cond3=>'0',
@@ -4284,8 +4274,8 @@ end;
prompt ...application themes
--
prompt ......theme 24750938041526809
--application/shared_components/user_interface/themes/national_grid
prompt ......theme 24750938041526809
begin
wwv_flow_api.create_theme (
p_id =>24750938041526809 + wwv_flow_api.g_id_offset,
@@ -4293,7 +4283,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=>38911722486594102 + wwv_flow_api.g_id_offset,
p_error_template=>24734011047526756 + 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',
@@ -4303,17 +4293,17 @@ wwv_flow_api.create_theme (
p_default_chart_template =>24737941385526765 + wwv_flow_api.g_id_offset,
p_default_form_template =>24738214051526765 + wwv_flow_api.g_id_offset,
p_default_reportr_template =>24740611526526770 + wwv_flow_api.g_id_offset,
p_default_tabform_template =>24740611526526770 + wwv_flow_api.g_id_offset,
p_default_wizard_template =>24742135446526770 + wwv_flow_api.g_id_offset,
p_default_menur_template =>24737010408526765 + wwv_flow_api.g_id_offset,
p_default_listr_template =>24740611526526770 + wwv_flow_api.g_id_offset,
p_default_tabform_template=>24740611526526770 + wwv_flow_api.g_id_offset,
p_default_wizard_template=>24742135446526770 + wwv_flow_api.g_id_offset,
p_default_menur_template=>24737010408526765 + wwv_flow_api.g_id_offset,
p_default_listr_template=>24740611526526770 + wwv_flow_api.g_id_offset,
p_default_report_template =>24743617611526775 + wwv_flow_api.g_id_offset,
p_default_label_template =>24749138532526789 + wwv_flow_api.g_id_offset,
p_default_menu_template =>24750232156526795 + wwv_flow_api.g_id_offset,
p_default_calendar_template =>24750440422526800 + wwv_flow_api.g_id_offset,
p_default_list_template =>24748312327526783 + wwv_flow_api.g_id_offset,
p_default_option_label =>24749138532526789 + wwv_flow_api.g_id_offset,
p_default_required_label =>24749318534526790 + wwv_flow_api.g_id_offset);
p_default_label_template=>24749138532526789 + wwv_flow_api.g_id_offset,
p_default_menu_template=>24750232156526795 + wwv_flow_api.g_id_offset,
p_default_calendar_template=>24750440422526800 + wwv_flow_api.g_id_offset,
p_default_list_template=>24748312327526783 + wwv_flow_api.g_id_offset,
p_default_option_label=>24749138532526789 + wwv_flow_api.g_id_offset,
p_default_required_label=>24749318534526790 + wwv_flow_api.g_id_offset);
end;
/