From 10e87090418df86ff2248f661e421812454a38b1 Mon Sep 17 00:00:00 2001 From: "jamie.priest" Date: Tue, 8 Sep 2009 17:23:42 +0000 Subject: [PATCH] made changes to caveat admin screen (added help and set default value on additional item field) git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@12576 248e525c-4dfb-0310-94bc-949c084e9493 --- Screens/f155.sql | 48 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 13 deletions(-) diff --git a/Screens/f155.sql b/Screens/f155.sql index cd36529..817dab0 100644 --- a/Screens/f155.sql +++ b/Screens/f155.sql @@ -13,7 +13,7 @@ prompt APPLICATION 155 - webmip -- Application Export: -- Application: 155 -- Name: webmip --- Date and Time: 17:57 Thursday August 20, 2009 +-- Date and Time: 18:22 Tuesday September 8, 2009 -- Exported By: PRIESTJ -- Flashback: 0 -- Export Type: Application Export @@ -145,7 +145,7 @@ wwv_flow_api.create_flow( p_default_region_template=> 71121389039453369 + wwv_flow_api.g_id_offset, p_error_template => 85292499999520701 + wwv_flow_api.g_id_offset, p_page_protection_enabled_y_n=> 'N', - p_checksum_salt_last_reset => '20090820165508', + p_checksum_salt_last_reset => '20090908111207', p_home_link => 'f?p=&APP_ID.:101', p_flow_language => 'en-gb', p_flow_language_derived_from=> 'FLOW_PRIMARY_LANGUAGE', @@ -194,7 +194,7 @@ wwv_flow_api.create_flow( p_substitution_string_04 => 'SITEMAP_URL', p_substitution_value_04 => 'http://www.nationalgrid.com/uk/sitemap.htm', p_last_updated_by => 'PRIESTJ', - p_last_upd_yyyymmddhh24miss=> '20090820165508', + p_last_upd_yyyymmddhh24miss=> '20090908111207', p_required_roles=> wwv_flow_utilities.string_to_table2('')); @@ -11479,8 +11479,8 @@ wwv_flow_api.create_page( p_step_template => '', p_required_role => 59152281045285598+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, - p_last_updated_by => 'PRIESTJ', - p_last_upd_yyyymmddhh24miss => '20090817160055', + p_last_updated_by => 'HARDYA', + p_last_upd_yyyymmddhh24miss => '20090903145932', p_page_is_public_y_n=> 'N', p_protection_level=> 'C', p_page_comment => ''); @@ -17317,7 +17317,7 @@ wwv_flow_api.create_page_computation( p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', - p_computation=> 'trim(:P32_INSTALL_POSTCODE)', + p_computation=> 'upper(trim(:P32_INSTALL_POSTCODE))', p_compute_when => 'P32_INSTALL_POSTCODE', p_compute_when_type=>'ITEM_IS_NOT_NULL'); @@ -17338,7 +17338,7 @@ wwv_flow_api.create_page_computation( p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', - p_computation=> 'trim(:P32_FIRST_ALT_POSTCODE)', + p_computation=> 'upper(trim(:P32_FIRST_ALT_POSTCODE))', p_compute_when => 'P32_FIRST_ALT_POSTCODE', p_compute_when_type=>'ITEM_IS_NOT_NULL'); @@ -17359,7 +17359,7 @@ wwv_flow_api.create_page_computation( p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', - p_computation=> 'trim(:P32_SECOND_ALT_POSTCODE)', + p_computation=> 'upper(trim(:P32_SECOND_ALT_POSTCODE))', p_compute_when => 'P32_SECOND_ALT_POSTCODE', p_compute_when_type=>'ITEM_IS_NOT_NULL'); @@ -29313,7 +29313,7 @@ wwv_flow_api.create_page( p_step_template => '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'PRIESTJ', - p_last_upd_yyyymmddhh24miss => '20090820160611', + p_last_upd_yyyymmddhh24miss => '20090908111207', p_page_is_public_y_n=> 'N', p_page_comment => ''); @@ -29788,7 +29788,7 @@ wwv_flow_api.create_page_item( p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', - p_lov_null_text=>'', + p_lov_null_text=>'-Please select a value-', p_lov_null_value=> '', p_cSize=> 30, p_cMaxlength=> 2000, @@ -29813,6 +29813,11 @@ end; declare h varchar2(32767) := null; begin +h := null; +h:=h||'The condition field allows you to specify a condition against the additional item cost (if selected). So you could select say AMR and then enter a condition NULL. This would ensure that the caveat would only display when the AMR does not have a cost (NULL). If you enter * in the condition then the caveat would display whenever there is a cost value for AMR. More complicated conditions are poss'; + +h:=h||'ible using PL/SQL Regular expressions.'; + wwv_flow_api.create_page_item( p_id=>212665025972274851 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, @@ -29843,6 +29848,9 @@ wwv_flow_api.create_page_item( p_field_alignment => 'LEFT', p_field_template => 71129916045453388+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', + p_lov_display_extra=>'NO', + p_protection_level => 'N', + p_help_text => h, p_item_comment => ''); @@ -41718,8 +41726,8 @@ wwv_flow_api.create_page( p_html_page_header => '', p_step_template => '', p_required_patch=> null + wwv_flow_api.g_id_offset, - p_last_updated_by => 'PRIESTJ', - p_last_upd_yyyymmddhh24miss => '20080411153925', + p_last_updated_by => 'HARDYA', + p_last_upd_yyyymmddhh24miss => '20090907135353', p_page_is_public_y_n=> 'N', p_page_comment => ''); @@ -42165,7 +42173,8 @@ wwv_flow_api.create_report_region ( p_source=> s, p_source_type=> 'SQL_QUERY', p_display_error_message=> '#SQLERRM#', - p_display_when_condition=> 'declare'||chr(10)|| + p_display_when_condition=> '/*'||chr(10)|| +'declare'||chr(10)|| 'l_quote_rec quotes%ROWTYPE;'||chr(10)|| ' CURSOR c_get_quote(cp_enqu_id number) IS'||chr(10)|| ' select * '||chr(10)|| @@ -42184,6 +42193,19 @@ wwv_flow_api.create_report_region ( 'else'||chr(10)|| ' return false;'||chr(10)|| 'end if;'||chr(10)|| +'end;'||chr(10)|| +'*/'||chr(10)|| +'declare'||chr(10)|| +'l_dummy number;'||chr(10)|| +'begin'||chr(10)|| +'select null'||chr(10)|| +'into l_dummy'||chr(10)|| +'from quotes qute'||chr(10)|| +'where qute.enqu_id = :P81_ENQU_ID'||chr(10)|| +'and qute.qute_type=''MQ'';'||chr(10)|| +'return true;'||chr(10)|| +'exception'||chr(10)|| +'when no_data_found then return false;'||chr(10)|| 'end;', p_display_condition_type=> 'FUNCTION_BODY', p_customized=> '0',