diff --git a/Screens/f155.sql b/Screens/f155.sql index bf6dcfc..f645707 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:06 Monday January 21, 2008 +-- Date and Time: 16:50 Wednesday January 23, 2008 -- Exported By: PRIESTJ -- Flashback: 0 -- Export Type: Application Export @@ -25,12 +25,12 @@ prompt APPLICATION 155 - webmip -- Using SQL*Plus as the Oracle user FLOWS_030000 or as the owner (parsing schema) of the application. -- Application Statistics: --- Pages: 49 --- Items: 333 +-- Pages: 51 +-- Items: 334 -- Computations: 1 --- Validations: 121 +-- Validations: 122 -- Processes: 84 --- Regions: 71 +-- Regions: 73 -- Buttons: 115 -- Shared Components -- Breadcrumbs: 1 @@ -145,7 +145,7 @@ wwv_flow_api.create_flow( p_default_region_template=> 24740611526526770 + wwv_flow_api.g_id_offset, p_error_template => 24734616867526758 + wwv_flow_api.g_id_offset, p_page_protection_enabled_y_n=> 'N', - p_checksum_salt_last_reset => '20080121170602', + p_checksum_salt_last_reset => '20080123165035', p_home_link => 'f?p=&APP_ID.:1', p_box_width => '98%', p_flow_language => 'en-gb', @@ -185,7 +185,7 @@ wwv_flow_api.create_flow( p_default_menur_template => 24737010408526765 + wwv_flow_api.g_id_offset, p_default_listr_template => 24740611526526770 + wwv_flow_api.g_id_offset, p_last_updated_by => 'PRIESTJ', - p_last_upd_yyyymmddhh24miss=> '20080121170602', + p_last_upd_yyyymmddhh24miss=> '20080123165035', p_required_roles=> wwv_flow_utilities.string_to_table2('')); @@ -2343,6 +2343,226 @@ end; / +--application/pages/page_00003 +prompt ...PAGE 3: View Pending Manual Quotes +-- + +begin + +declare + h varchar2(32767) := null; + ph varchar2(32767) := null; +begin +h:=h||'No help is available for this page.'; + +ph := null; +wwv_flow_api.create_page( + p_id => 3, + p_flow_id=> wwv_flow.g_flow_id, + p_tab_set=> '', + p_name => 'View Pending Manual Quotes', + p_step_title=> 'View Pending Manual Quotes', + p_step_sub_title => 'View Pending Manual Quotes', + p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', + p_first_item=> '', + p_help_text => ' ', + p_html_page_header => '', + p_step_template => '', + p_required_patch=> null + wwv_flow_api.g_id_offset, + p_last_updated_by => 'DHARSHANIK', + p_last_upd_yyyymmddhh24miss => '20080123140258', + p_page_comment => ''); + +wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>3,p_text=>h); +end; + +end; +/ + +declare + s varchar2(32767) := null; + l_clob clob; + l_length number := 1; +begin +s:=s||'SELECT qute.id AS "Quote Reference Number"'||chr(10)|| +' ,prty_supplier.name AS "Supplier Name"'||chr(10)|| +' ,prty_agent.first_name||'' ''||prty_agent.last_name AS "Agent Name"'||chr(10)|| +' ,quro.start_date AS "Date submitted for quotation"'||chr(10)|| +'FROM quotes qute'||chr(10)|| +' ,v_current_quote_status vcqs'||chr(10)|| +' ,quote_roles quro'||chr(10)|| +' ,enquiry_roles enro'||chr(10)|| +' ,parties prty_supplier'||chr(10)|| +' ,parties prty_agent'||chr(10)|| +' ,role_types roty_suppl'; + +s:=s||'ier'||chr(10)|| +' ,role_types roty_agent'||chr(10)|| +'WHERE qute.id = quro.qute_id'||chr(10)|| +'AND qute.id = vcqs.qute_id'||chr(10)|| +'AND qute.enqu_id = enro.enqu_id'||chr(10)|| +'AND quro.prty_id = prty_agent.id'||chr(10)|| +'AND enro.prty_id = prty_supplier.id'||chr(10)|| +'AND enro.rt_code = roty_supplier.code'||chr(10)|| +'AND quro.rt_code = roty_agent.code'||chr(10)|| +'AND qute.qute_type = ''MQ'''||chr(10)|| +'AND vcqs.qust_code = ''INP'''||chr(10)|| +'AND enro.rt_code = ''ENQ SUPP'''||chr(10)|| +'AND quro.rt_code = ''Q RFQ'''||chr(10)|| +'ORDER BY quro.st'; + +s:=s||'art_date ASC'; + +wwv_flow_api.create_report_region ( + p_id=> 28397409946862867 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_page_id=> 3, + p_name=> 'View Pending Manual Quotes', + p_region_name=>'', + p_template=> 24740611526526770+ wwv_flow_api.g_id_offset, + p_display_sequence=> 10, + p_display_column=> 1, + p_display_point=> 'AFTER_SHOW_ITEMS', + p_source=> s, + p_source_type=> 'SQL_QUERY', + p_display_error_message=> '#SQLERRM#', + p_customized=> '0', + p_translate_title=> 'Y', + p_query_row_template=> 24743617611526775+ wwv_flow_api.g_id_offset, + p_query_headings_type=> 'QUERY_COLUMNS', + p_query_num_rows=> '15', + p_query_options=> 'DERIVED_REPORT_COLUMNS', + p_query_no_data_found=> 'No data found.', + p_query_num_rows_type=> 'ROW_RANGES_IN_SELECT_LIST', + p_query_row_count_max=> '500', + p_query_asc_image=> 'arrow_down_gray_dark.gif', + p_query_asc_image_attr=> 'width="13" height="12" alt=""', + p_query_desc_image=> 'arrow_up_gray_dark.gif', + p_query_desc_image_attr=> 'width="13" height="12" alt=""', + p_comment=>''); +end; +/ +declare + s varchar2(32767) := null; +begin +s := null; +wwv_flow_api.create_report_columns ( + p_id=> 28397719232862880 + wwv_flow_api.g_id_offset, + p_region_id=> 28397409946862867 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_query_column_id=> 1, + p_form_element_id=> null, + p_column_alias=> 'Quote Reference Number', + p_column_display_sequence=> 1, + p_column_heading=> 'Quote Reference Number', + p_column_alignment=>'LEFT', + p_disable_sort_column=>'Y', + p_sum_column=> 'N', + p_hidden_column=> 'N', + p_display_as=>'WITHOUT_MODIFICATION', + p_pk_col_source=> s, + p_column_comment=>''); +end; +/ +declare + s varchar2(32767) := null; +begin +s := null; +wwv_flow_api.create_report_columns ( + p_id=> 28397808641862880 + wwv_flow_api.g_id_offset, + p_region_id=> 28397409946862867 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_query_column_id=> 2, + p_form_element_id=> null, + p_column_alias=> 'Supplier Name', + p_column_display_sequence=> 2, + p_column_heading=> 'Supplier Name', + p_column_alignment=>'LEFT', + p_disable_sort_column=>'Y', + p_sum_column=> 'N', + p_hidden_column=> 'N', + p_display_as=>'WITHOUT_MODIFICATION', + p_pk_col_source=> s, + p_column_comment=>''); +end; +/ +declare + s varchar2(32767) := null; +begin +s := null; +wwv_flow_api.create_report_columns ( + p_id=> 28397923647862880 + wwv_flow_api.g_id_offset, + p_region_id=> 28397409946862867 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_query_column_id=> 3, + p_form_element_id=> null, + p_column_alias=> 'Agent Name', + p_column_display_sequence=> 3, + p_column_heading=> 'Agent Name', + p_column_alignment=>'LEFT', + p_disable_sort_column=>'Y', + p_sum_column=> 'N', + p_hidden_column=> 'N', + p_display_as=>'WITHOUT_MODIFICATION', + p_pk_col_source=> s, + p_column_comment=>''); +end; +/ +declare + s varchar2(32767) := null; +begin +s := null; +wwv_flow_api.create_report_columns ( + p_id=> 28398019830862880 + wwv_flow_api.g_id_offset, + p_region_id=> 28397409946862867 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_query_column_id=> 4, + p_form_element_id=> null, + p_column_alias=> 'Date submitted for quotation', + p_column_display_sequence=> 4, + p_column_heading=> 'Date submitted for quotation', + p_column_alignment=>'LEFT', + p_disable_sort_column=>'Y', + p_sum_column=> 'N', + p_hidden_column=> 'N', + p_display_as=>'WITHOUT_MODIFICATION', + p_pk_col_source=> s, + p_column_comment=>''); +end; +/ + +begin + +null; + +end; +/ + + +begin + +null; + +end; +/ + + +begin + +--------------------------------------- +-- ...updatable report columns for page 3 +-- + +begin + +null; +end; +null; + +end; +/ + + --application/pages/page_00005 prompt ...PAGE 5: Data Export -- @@ -2556,6 +2776,221 @@ end; / +--application/pages/page_00006 +prompt ...PAGE 6: View Accepted Quotes +-- + +begin + +declare + h varchar2(32767) := null; + ph varchar2(32767) := null; +begin +h:=h||'No help is available for this page.'; + +ph := null; +wwv_flow_api.create_page( + p_id => 6, + p_flow_id=> wwv_flow.g_flow_id, + p_tab_set=> '', + p_name => 'View Accepted Quotes', + p_step_title=> 'View Accepted Quotes', + p_step_sub_title => 'View Accepted Quotes', + p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', + p_first_item=> '', + p_help_text => ' ', + p_html_page_header => '', + p_step_template => '', + p_required_patch=> null + wwv_flow_api.g_id_offset, + p_last_updated_by => 'DHARSHANIK', + p_last_upd_yyyymmddhh24miss => '20080123145342', + p_page_comment => ''); + +wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>6,p_text=>h); +end; + +end; +/ + +declare + s varchar2(32767) := null; + l_clob clob; + l_length number := 1; +begin +s:=s||'SELECT qute.id AS "Quote Reference Number"'||chr(10)|| +' ,prty_supplier.name AS "Supplier Name"'||chr(10)|| +' ,prty_agent.first_name||'' ''||prty_agent.last_name AS "Agent Name"'||chr(10)|| +' ,vcqs.event_date AS "Date quote accepted"'||chr(10)|| +'FROM quotes qute'||chr(10)|| +' ,v_current_quote_status vcqs'||chr(10)|| +' ,quote_roles quro'||chr(10)|| +' ,enquiry_roles enro'||chr(10)|| +' ,parties prty_supplier'||chr(10)|| +' ,parties prty_agent'||chr(10)|| +' ,role_types roty_supplier'||chr(10)|| +' ,role_types'; + +s:=s||' roty_agent'||chr(10)|| +'WHERE qute.id = quro.qute_id'||chr(10)|| +'AND qute.id = vcqs.qute_id'||chr(10)|| +'AND qute.enqu_id = enro.enqu_id'||chr(10)|| +'AND quro.prty_id = prty_agent.id'||chr(10)|| +'AND enro.prty_id = prty_supplier.id'||chr(10)|| +'AND enro.rt_code = roty_supplier.code'||chr(10)|| +'AND quro.rt_code = roty_agent.code'||chr(10)|| +'AND vcqs.qust_code = ''ACCEPTED'''||chr(10)|| +'AND enro.rt_code = ''ENQ SUPP'''||chr(10)|| +'AND quro.rt_code = ''Q OWN'''||chr(10)|| +'ORDER BY quro.start_date ASC'; + +wwv_flow_api.create_report_region ( + p_id=> 28508716635732923 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_page_id=> 6, + p_name=> 'View of Accepted Quotes', + p_region_name=>'', + p_template=> 24740611526526770+ wwv_flow_api.g_id_offset, + p_display_sequence=> 10, + p_display_column=> 1, + p_display_point=> 'AFTER_SHOW_ITEMS', + p_source=> s, + p_source_type=> 'SQL_QUERY', + p_display_error_message=> '#SQLERRM#', + p_query_row_template=> 24743617611526775+ wwv_flow_api.g_id_offset, + p_query_headings_type=> 'QUERY_COLUMNS', + p_query_num_rows=> '15', + p_query_options=> 'DERIVED_REPORT_COLUMNS', + p_query_no_data_found=> 'No data found.', + p_query_num_rows_type=> 'ROW_RANGES_IN_SELECT_LIST', + p_query_row_count_max=> '500', + p_query_asc_image=> 'arrow_down_gray_dark.gif', + p_query_asc_image_attr=> 'width="13" height="12" alt=""', + p_query_desc_image=> 'arrow_up_gray_dark.gif', + p_query_desc_image_attr=> 'width="13" height="12" alt=""', + p_comment=>''); +end; +/ +declare + s varchar2(32767) := null; +begin +s := null; +wwv_flow_api.create_report_columns ( + p_id=> 28509009714732931 + wwv_flow_api.g_id_offset, + p_region_id=> 28508716635732923 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_query_column_id=> 1, + p_form_element_id=> null, + p_column_alias=> 'Quote Reference Number', + p_column_display_sequence=> 1, + p_column_heading=> 'Quote Reference Number', + p_column_alignment=>'LEFT', + p_disable_sort_column=>'Y', + p_sum_column=> 'N', + p_hidden_column=> 'N', + p_display_as=>'WITHOUT_MODIFICATION', + p_pk_col_source=> s, + p_column_comment=>''); +end; +/ +declare + s varchar2(32767) := null; +begin +s := null; +wwv_flow_api.create_report_columns ( + p_id=> 28509116907732933 + wwv_flow_api.g_id_offset, + p_region_id=> 28508716635732923 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_query_column_id=> 2, + p_form_element_id=> null, + p_column_alias=> 'Supplier Name', + p_column_display_sequence=> 2, + p_column_heading=> 'Supplier Name', + p_column_alignment=>'LEFT', + p_disable_sort_column=>'Y', + p_sum_column=> 'N', + p_hidden_column=> 'N', + p_display_as=>'WITHOUT_MODIFICATION', + p_pk_col_source=> s, + p_column_comment=>''); +end; +/ +declare + s varchar2(32767) := null; +begin +s := null; +wwv_flow_api.create_report_columns ( + p_id=> 28509219368732933 + wwv_flow_api.g_id_offset, + p_region_id=> 28508716635732923 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_query_column_id=> 3, + p_form_element_id=> null, + p_column_alias=> 'Agent Name', + p_column_display_sequence=> 3, + p_column_heading=> 'Agent Name', + p_column_alignment=>'LEFT', + p_disable_sort_column=>'Y', + p_sum_column=> 'N', + p_hidden_column=> 'N', + p_display_as=>'WITHOUT_MODIFICATION', + p_pk_col_source=> s, + p_column_comment=>''); +end; +/ +declare + s varchar2(32767) := null; +begin +s := null; +wwv_flow_api.create_report_columns ( + p_id=> 28509317310732933 + wwv_flow_api.g_id_offset, + p_region_id=> 28508716635732923 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_query_column_id=> 4, + p_form_element_id=> null, + p_column_alias=> 'Date quote accepted', + p_column_display_sequence=> 4, + p_column_heading=> 'Date quote accepted', + p_column_alignment=>'LEFT', + p_disable_sort_column=>'Y', + p_sum_column=> 'N', + p_hidden_column=> 'N', + p_display_as=>'WITHOUT_MODIFICATION', + p_pk_col_source=> s, + p_column_comment=>''); +end; +/ + +begin + +null; + +end; +/ + + +begin + +null; + +end; +/ + + +begin + +--------------------------------------- +-- ...updatable report columns for page 6 +-- + +begin + +null; +end; +null; + +end; +/ + + --application/pages/page_00007 prompt ...PAGE 7: Housings -- @@ -11014,7 +11449,7 @@ wwv_flow_api.create_page( p_step_template => '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'MULLENM', - p_last_upd_yyyymmddhh24miss => '20080118141308', + p_last_upd_yyyymmddhh24miss => '20080123103138', p_page_is_public_y_n=> 'N', p_protection_level=> 'C', p_page_comment => ''); @@ -11064,15 +11499,17 @@ s:=s||'SELECT distinct enquiries.id "Enquiry ID",'||chr(10)|| ' enquiries.mprn "MPRN",'||chr(10)|| ' enquiries.transaction_reference "Transaction Reference",'||chr(10)|| ' enquiries.install_postcode "Postcode",'||chr(10)|| +' ''View'' as "Details",'||chr(10)|| +' ''Copy'' as "Copy",'||chr(10)|| ' ''View quotes'' as "View Quotes"'||chr(10)|| ' FROM (SELECT enq.id,'||chr(10)|| ' enq.mprn,'||chr(10)|| ' enq.transaction_reference,'||chr(10)|| -' enq.install_postcode'||chr(10)|| -' FROM enquiries enq'||chr(10)|| -' WHER'; +' enq.instal'; -s:=s||'E enq.id like :P30_ENQUIRY_ID'||chr(10)|| +s:=s||'l_postcode'||chr(10)|| +' FROM enquiries enq'||chr(10)|| +' WHERE enq.id like :P30_ENQUIRY_ID'||chr(10)|| ' OR enq.mprn like :P30_MPRN'||chr(10)|| ' OR enq.transaction_reference like :P30_TRANS_REF'||chr(10)|| ' OR upper(REPLACE(enq.install_postcode,'' '','''')) like upper(REPLACE(:P30_POSTCODE,'' '',''''))'||chr(10)|| @@ -11158,8 +11595,6 @@ wwv_flow_api.create_report_columns ( p_column_alias=> 'Enquiry ID', p_column_display_sequence=> 1, p_column_heading=> 'Enquiry ID', - p_column_link=>'f?p=&APP_ID.:32:&SESSION.::&DEBUG.::P32_ID:#Enquiry ID#', - p_column_linktext=>'#Enquiry ID#', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, @@ -11249,14 +11684,43 @@ declare s varchar2(32767) := null; begin s := null; +wwv_flow_api.create_report_columns ( + p_id=> 28333423036088253 + wwv_flow_api.g_id_offset, + p_region_id=> 15912526122649965 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_query_column_id=> 6, + p_form_element_id=> null, + p_column_alias=> 'Copy', + p_column_display_sequence=> 6, + p_column_heading=> '', + p_column_link=>'f?p=&APP_ID.:31:&SESSION.::&DEBUG.::P31_ENQUIRY_ID:#Enquiry ID#', + p_column_linktext=>'#Copy#', + p_column_link_attr=>'name="Copy_#Enquiry ID#"', + p_column_alignment=>'LEFT', + p_heading_alignment=>'CENTER', + p_default_sort_column_sequence=>0, + p_disable_sort_column=>'Y', + p_sum_column=> 'N', + p_hidden_column=> 'N', + p_display_as=>'WITHOUT_MODIFICATION', + p_lov_show_nulls=> 'NO', + p_pk_col_source=> s, + p_lov_display_extra=> 'YES', + p_column_comment=>''); +end; +/ +declare + s varchar2(32767) := null; +begin +s := null; wwv_flow_api.create_report_columns ( p_id=> 27167631542235845 + wwv_flow_api.g_id_offset, p_region_id=> 15912526122649965 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, - p_query_column_id=> 5, + p_query_column_id=> 7, p_form_element_id=> null, p_column_alias=> 'View Quotes', - p_column_display_sequence=> 5, + p_column_display_sequence=> 7, p_column_heading=> '', p_column_link=>'f?p=&APP_ID.:80:&SESSION.::&DEBUG.::P80_ENQU_ID:#Enquiry ID#', p_column_linktext=>'#View Quotes#', @@ -11274,6 +11738,35 @@ wwv_flow_api.create_report_columns ( p_column_comment=>''); end; / +declare + s varchar2(32767) := null; +begin +s := null; +wwv_flow_api.create_report_columns ( + p_id=> 28338910793150950 + wwv_flow_api.g_id_offset, + p_region_id=> 15912526122649965 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_query_column_id=> 7, + p_form_element_id=> null, + p_column_alias=> 'Details', + p_column_display_sequence=> 5, + p_column_heading=> '', + p_column_link=>'f?p=&APP_ID.:32:&SESSION.::&DEBUG.::P32_ID:#Enquiry ID#', + p_column_linktext=>'#Details#', + p_column_link_attr=>'name="View_enquiry_#Enquiry ID#"', + p_column_alignment=>'LEFT', + p_heading_alignment=>'CENTER', + p_default_sort_column_sequence=>0, + p_disable_sort_column=>'Y', + p_sum_column=> 'N', + p_hidden_column=> 'N', + p_display_as=>'WITHOUT_MODIFICATION', + p_lov_show_nulls=> 'NO', + p_pk_col_source=> s, + p_lov_display_extra=> 'YES', + p_column_comment=>''); +end; +/ declare s varchar2(32767) := null; l_clob clob; @@ -12258,7 +12751,7 @@ wwv_flow_api.create_page( p_required_role => 16097609166220701+ 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 => '20080121170259', + p_last_upd_yyyymmddhh24miss => '20080123165002', p_page_is_public_y_n=> 'N', p_protection_level=> 'C', p_page_comment => ''); @@ -12279,7 +12772,7 @@ wwv_flow_api.create_page_plug ( p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 32, p_plug_name=> 'Job Info', - p_region_name=>'', + p_region_name=>'jobinfo', p_plug_template=> 24738214051526765+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 70, p_plug_display_column=> 1, @@ -12372,7 +12865,7 @@ wwv_flow_api.create_page_plug ( p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 32, p_plug_name=> 'Site Address', - p_region_name=>'', + p_region_name=>'siteaddress', p_plug_template=> 24738214051526765+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, @@ -12405,7 +12898,7 @@ wwv_flow_api.create_page_plug ( p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 32, p_plug_name=> 'Second Contact Details', - p_region_name=>'', + p_region_name=>'secondcontactdetails', p_plug_template=> 24738214051526765+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 60, p_plug_display_column=> 1, @@ -12474,6 +12967,9 @@ wwv_flow_api.create_page_button( p_button_image_alt=> 'Request Quotation', p_button_position=> 'BOTTOM', p_button_alignment=> 'RIGHT', + p_button_condition=> ':P32_ID is not null and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')'||chr(10)|| +'and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) = ''INP''', + p_button_condition_type=> 'PLSQL_EXPRESSION', p_button_cattributes=>'id="request_quote" name="request_quote"', p_required_patch => null + wwv_flow_api.g_id_offset); @@ -12487,6 +12983,16 @@ wwv_flow_api.create_page_button( p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', + p_button_condition=> 'if :P32_ID is not null then'||chr(10)|| +' if #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) = ''INP'' and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +' return true;'||chr(10)|| +' else'||chr(10)|| +' return false;'||chr(10)|| +' end if;'||chr(10)|| +'else'||chr(10)|| +' return true;'||chr(10)|| +'end if;', + p_button_condition_type=> 'FUNCTION_BODY', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( @@ -12499,6 +13005,16 @@ wwv_flow_api.create_page_button( p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', + p_button_condition=> 'if :P32_ID is not null then'||chr(10)|| +' if #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) = ''INP'' and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +' return true;'||chr(10)|| +' else'||chr(10)|| +' return false;'||chr(10)|| +' end if;'||chr(10)|| +'else'||chr(10)|| +' return true;'||chr(10)|| +'end if;', + p_button_condition_type=> 'FUNCTION_BODY', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( @@ -12511,6 +13027,16 @@ wwv_flow_api.create_page_button( p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', + p_button_condition=> 'if :P32_ID is not null then'||chr(10)|| +' if #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) = ''INP'' and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +' return true;'||chr(10)|| +' else'||chr(10)|| +' return false;'||chr(10)|| +' end if;'||chr(10)|| +'else'||chr(10)|| +' return true;'||chr(10)|| +'end if;', + p_button_condition_type=> 'FUNCTION_BODY', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( @@ -12523,6 +13049,16 @@ wwv_flow_api.create_page_button( p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', + p_button_condition=> 'if :P32_ID is not null then'||chr(10)|| +' if #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) = ''INP'' and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +' return true;'||chr(10)|| +' else'||chr(10)|| +' return false;'||chr(10)|| +' end if;'||chr(10)|| +'else'||chr(10)|| +' return true;'||chr(10)|| +'end if;', + p_button_condition_type=> 'FUNCTION_BODY', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( @@ -12535,6 +13071,16 @@ wwv_flow_api.create_page_button( p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', + p_button_condition=> 'if :P32_ID is not null then'||chr(10)|| +' if #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) = ''INP'' and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +' return true;'||chr(10)|| +' else'||chr(10)|| +' return false;'||chr(10)|| +' end if;'||chr(10)|| +'else'||chr(10)|| +' return true;'||chr(10)|| +'end if;', + p_button_condition_type=> 'FUNCTION_BODY', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( @@ -12547,7 +13093,7 @@ wwv_flow_api.create_page_button( p_button_image_alt=> 'Apply Changes', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', - p_button_condition=> ':P32_ID is not null and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_button_condition=> ':P32_ID is not null and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) = ''INP''', p_button_condition_type=> 'PLSQL_EXPRESSION', p_database_action=>'UPDATE', p_required_patch => null + wwv_flow_api.g_id_offset); @@ -12562,7 +13108,7 @@ wwv_flow_api.create_page_button( p_button_image_alt=> 'Apply Changes', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', - p_button_condition=> ':P32_ID is not null and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_button_condition=> ':P32_ID is not null and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) = ''INP''', p_button_condition_type=> 'PLSQL_EXPRESSION', p_database_action=>'UPDATE', p_required_patch => null + wwv_flow_api.g_id_offset); @@ -12607,7 +13153,7 @@ wwv_flow_api.create_page_button( p_button_image_alt=> 'Apply Changes', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', - p_button_condition=> ':P32_ID is not null and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_button_condition=> ':P32_ID is not null and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) = ''INP''', p_button_condition_type=> 'PLSQL_EXPRESSION', p_database_action=>'UPDATE', p_required_patch => null + wwv_flow_api.g_id_offset); @@ -12637,7 +13183,7 @@ wwv_flow_api.create_page_button( p_button_image_alt=> 'Apply Changes', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', - p_button_condition=> ':P32_ID is not null and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_button_condition=> ':P32_ID is not null and #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''A'') and not #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) = ''INP''', p_button_condition_type=> 'PLSQL_EXPRESSION', p_database_action=>'UPDATE', p_required_patch => null + wwv_flow_api.g_id_offset); @@ -12780,7 +13326,7 @@ wwv_flow_api.create_page_branch( p_id=>28015925492078573 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 32, - p_branch_action=> 'f?p=&FLOW_ID.:80:&SESSION.::&DEBUG.&success_msg=#SUCCESS_MSG#', + p_branch_action=> 'f?p=&APP_ID.:80:&SESSION.::&DEBUG.:80:P80_ENQU_ID:&P32_ID.&success_msg=#SUCCESS_MSG#', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_when_button_id=>28015631689078569+ wwv_flow_api.g_id_offset, @@ -12861,7 +13407,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'OFMAT:REMOVE:STD REMOVE:ADVERSARIAL', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -12913,7 +13463,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'INSTALL:STD INSTALL', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -12935,7 +13489,7 @@ wwv_flow_api.create_page_item( p_name=>'P32_ASSET_LOCATION_NOTE_FILES', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', - p_item_sequence=> 1147, + p_item_sequence=> 1148, p_item_plug_id => 26597727520798255+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', @@ -13017,12 +13571,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -13065,12 +13623,16 @@ wwv_flow_api.create_page_item( p_field_alignment => 'LEFT', p_display_when=>'#OWNER#.mip_parties.get_user_role(v(''APP_USER'')) = ''AGENT''', p_display_when_type=>'PLSQL_EXPRESSION', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -13108,7 +13670,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -13166,6 +13732,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', @@ -13215,7 +13786,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'INSTALL:STD INSTALL', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -13265,12 +13840,16 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'STD EXCHANGE:STD INSTALL:STD REMOVE', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -13307,12 +13886,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -13333,7 +13916,8 @@ wwv_flow_api.create_page_item( p_item_plug_id => 26597504596798255+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', - p_prompt=>'Required Metering Pressure', + p_prompt=>'Required Metering Pressure (MB)', + p_post_element_text=>'MB', p_source=>'REQUIRED_METERING_PRESSURE', p_source_type=> 'DB_COLUMN', p_display_as=> 'TEXT', @@ -13352,7 +13936,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE ', p_display_when2=>'STD EXCHANGE:STD INSTALL:STD REMOVE', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -13394,12 +13982,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -13439,12 +14031,16 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'STD EXCHANGE:STD INSTALL:STD REMOVE', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -13488,7 +14084,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'OFMAT:REMOVE:STD REMOVE:ADVERSARIAL:ADDON', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -13537,7 +14137,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'OFMAT:REMOVE:STD REMOVE:ADVERSARIAL:ADDON', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -13586,7 +14190,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'OFMAT', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -13637,7 +14245,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'OFMAT:INSTALL:STD INSTALL', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -13659,9 +14271,9 @@ wwv_flow_api.create_page_item( p_name=>'P32_CACA_CODE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', - p_item_sequence=> 1148, + p_item_sequence=> 1149, p_item_plug_id => 26597727520798255+wwv_flow_api.g_id_offset, - p_use_cache_before_default=> 'YES', + p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Care Category', p_source=>'CACA_CODE', @@ -13684,7 +14296,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -13706,7 +14322,7 @@ wwv_flow_api.create_page_item( p_name=>'P32_ASSET_LOCATION_NOTES', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', - p_item_sequence=> 1145, + p_item_sequence=> 1146, p_item_plug_id => 26597727520798255+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', @@ -13730,12 +14346,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -13752,7 +14372,7 @@ wwv_flow_api.create_page_item( p_name=>'P32_ACCESS_PASSWORD', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', - p_item_sequence=> 1149, + p_item_sequence=> 1150, p_item_plug_id => 26597727520798255+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', @@ -13772,12 +14392,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -13794,7 +14418,7 @@ wwv_flow_api.create_page_item( p_name=>'P32_ACCESS_ADDITIONAL', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', - p_item_sequence=> 1150, + p_item_sequence=> 1151, p_item_plug_id => 26597727520798255+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', @@ -13814,12 +14438,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -13836,7 +14464,7 @@ wwv_flow_api.create_page_item( p_name=>'P32_MPRN', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', - p_item_sequence=> 1151, + p_item_sequence=> 1152, p_item_plug_id => 26597727520798255+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', @@ -13856,7 +14484,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -13878,7 +14510,7 @@ wwv_flow_api.create_page_item( p_name=>'P32_MPRN_ALT', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', - p_item_sequence=> 1152, + p_item_sequence=> 1153, p_item_plug_id => 26597727520798255+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', @@ -13898,7 +14530,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -13944,7 +14580,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'OFMAT', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_is_persistent=> 'Y', p_lov_display_extra=>'NO', @@ -13989,6 +14629,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'OFMAT', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', @@ -14034,10 +14679,21 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_display_when=>':P32_AGENT_COMT_CODE is not null and :P32_AGENT_COMT_CODE <> ''%''||''null%''', - p_display_when_type=>'PLSQL_EXPRESSION', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', - p_read_only_when_type=>'FUNCTION_BODY', + p_display_when=>'if :P32_ID is not null then'||chr(10)|| +' if :P32_AGENT_COMT_CODE is not null and :P32_AGENT_COMT_CODE <> ''%''||''null%'' and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) =''INP'' and not(#OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')) then'||chr(10)|| +' return true;'||chr(10)|| +' else'||chr(10)|| +' return false;'||chr(10)|| +' end if;'||chr(10)|| +'else'||chr(10)|| +' if :P32_AGENT_COMT_CODE is not null and :P32_AGENT_COMT_CODE <> ''%''||''null%'' then'||chr(10)|| +' return true;'||chr(10)|| +' else'||chr(10)|| +' return false;'||chr(10)|| +' end if;'||chr(10)|| +'end if;'||chr(10)|| +'', + p_display_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', @@ -14062,7 +14718,8 @@ wwv_flow_api.create_page_item( p_item_plug_id => 26597504596798255+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', - p_prompt=>'Annual Quantity', + p_prompt=>'Annual Quantity(KWh)', + p_post_element_text=>'kWh', p_source=>'ANNUAL_QUANTITY', p_source_type=> 'DB_COLUMN', p_display_as=> 'TEXT', @@ -14082,7 +14739,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'REMOVE:STD REMOVE:ADVERSARIAL', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14130,7 +14791,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14180,7 +14845,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'REMOVE:STD REMOVE:ADVERSARIAL', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14222,12 +14891,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -14267,12 +14940,16 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_BYPASS_REQUIRED', p_display_when2=>'Please enter other reason for bypass', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -14314,7 +14991,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14357,7 +15038,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14403,7 +15088,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14446,7 +15135,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14468,7 +15161,7 @@ wwv_flow_api.create_page_item( p_name=>'P32_TRANSACTION_REFERENCE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', - p_item_sequence=> 1153, + p_item_sequence=> 1213, p_item_plug_id => 26597727520798255+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', @@ -14489,12 +15182,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -14532,7 +15229,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14575,12 +15276,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -14620,7 +15325,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14665,7 +15374,11 @@ wwv_flow_api.create_page_item( p_field_alignment => 'LEFT', p_display_when=>':P32_INSTALL_ADDRESS = ''No'' or not(:P32_FIRST_CONTACT_NAME is NULL or :P32_FIRST_CONTACT_NAME = ''%''||''null%'' or :P32_FIRST_ALT_SUB_BUILDING IS NULL or :P32_FIRST_ALT_SUB_BUILDING = ''%''||''null%'' or :P32_FIRST_ALT_BUILDING IS NULL or :P32_FIRST_ALT_BUILDING = ''%''||''null%'' or :P32_FIRST_ALT_STREET IS NULL or :P32_FIRST_ALT_STREET = ''%''||''null%'' or :P32_FIRST_ALT_CITY IS NULL or :P32_FIRST_ALT_CITY = ''%''||''null%'' or :P32_FIRST_ALT_POSTCODE IS NULL or :P32_FIRST_ALT_POSTCODE = ''%''||''null%'')', p_display_when_type=>'PLSQL_EXPRESSION', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14710,7 +15423,11 @@ wwv_flow_api.create_page_item( p_field_alignment => 'LEFT', p_display_when=>':P32_INSTALL_ADDRESS = ''No'' or not(:P32_FIRST_CONTACT_NAME is NULL or :P32_FIRST_CONTACT_NAME = ''%''||''null%'' or :P32_FIRST_ALT_SUB_BUILDING IS NULL or :P32_FIRST_ALT_SUB_BUILDING = ''%''||''null%'' or :P32_FIRST_ALT_BUILDING IS NULL or :P32_FIRST_ALT_BUILDING = ''%''||''null%'' or :P32_FIRST_ALT_STREET IS NULL or :P32_FIRST_ALT_STREET = ''%''||''null%'' or :P32_FIRST_ALT_CITY IS NULL or :P32_FIRST_ALT_CITY = ''%''||''null%'' or :P32_FIRST_ALT_POSTCODE IS NULL or :P32_FIRST_ALT_POSTCODE = ''%''||''null%'')', p_display_when_type=>'PLSQL_EXPRESSION', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14755,7 +15472,11 @@ wwv_flow_api.create_page_item( p_field_alignment => 'LEFT', p_display_when=>':P32_INSTALL_ADDRESS = ''No'' or not(:P32_FIRST_CONTACT_NAME is NULL or :P32_FIRST_CONTACT_NAME = ''%''||''null%'' or :P32_FIRST_ALT_SUB_BUILDING IS NULL or :P32_FIRST_ALT_SUB_BUILDING = ''%''||''null%'' or :P32_FIRST_ALT_BUILDING IS NULL or :P32_FIRST_ALT_BUILDING = ''%''||''null%'' or :P32_FIRST_ALT_STREET IS NULL or :P32_FIRST_ALT_STREET = ''%''||''null%'' or :P32_FIRST_ALT_CITY IS NULL or :P32_FIRST_ALT_CITY = ''%''||''null%'' or :P32_FIRST_ALT_POSTCODE IS NULL or :P32_FIRST_ALT_POSTCODE = ''%''||''null%'')', p_display_when_type=>'PLSQL_EXPRESSION', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14800,7 +15521,11 @@ wwv_flow_api.create_page_item( p_field_alignment => 'LEFT', p_display_when=>':P32_INSTALL_ADDRESS = ''No'' or not(:P32_FIRST_CONTACT_NAME is NULL or :P32_FIRST_CONTACT_NAME = ''%''||''null%'' or :P32_FIRST_ALT_SUB_BUILDING IS NULL or :P32_FIRST_ALT_SUB_BUILDING = ''%''||''null%'' or :P32_FIRST_ALT_BUILDING IS NULL or :P32_FIRST_ALT_BUILDING = ''%''||''null%'' or :P32_FIRST_ALT_STREET IS NULL or :P32_FIRST_ALT_STREET = ''%''||''null%'' or :P32_FIRST_ALT_CITY IS NULL or :P32_FIRST_ALT_CITY = ''%''||''null%'' or :P32_FIRST_ALT_POSTCODE IS NULL or :P32_FIRST_ALT_POSTCODE = ''%''||''null%'')', p_display_when_type=>'PLSQL_EXPRESSION', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14845,7 +15570,11 @@ wwv_flow_api.create_page_item( p_field_alignment => 'LEFT', p_display_when=>':P32_INSTALL_ADDRESS = ''No'' or not(:P32_FIRST_CONTACT_NAME is NULL or :P32_FIRST_CONTACT_NAME = ''%''||''null%'' or :P32_FIRST_ALT_SUB_BUILDING IS NULL or :P32_FIRST_ALT_SUB_BUILDING = ''%''||''null%'' or :P32_FIRST_ALT_BUILDING IS NULL or :P32_FIRST_ALT_BUILDING = ''%''||''null%'' or :P32_FIRST_ALT_STREET IS NULL or :P32_FIRST_ALT_STREET = ''%''||''null%'' or :P32_FIRST_ALT_CITY IS NULL or :P32_FIRST_ALT_CITY = ''%''||''null%'' or :P32_FIRST_ALT_POSTCODE IS NULL or :P32_FIRST_ALT_POSTCODE = ''%''||''null%'')', p_display_when_type=>'PLSQL_EXPRESSION', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -14888,12 +15617,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -14931,12 +15664,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -14974,12 +15711,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -15017,12 +15758,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -15062,7 +15807,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -15117,7 +15866,7 @@ wwv_flow_api.create_page_item( 'SELECT count (*) into partytime FROM v_latest_rt_code_for_enro where rt_code=''ENQ SUPP'' and enqu_id=:P32_ID;'||chr(10)|| ''||chr(10)|| 'privilege := #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'');'||chr(10)|| -'if privilege or partytime>0 then'||chr(10)|| +'if privilege or partytime>0 or #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'' then'||chr(10)|| ' return true;'||chr(10)|| 'else '||chr(10)|| ' return false;'||chr(10)|| @@ -15177,7 +15926,12 @@ wwv_flow_api.create_page_item( p_field_alignment => 'LEFT', p_display_when=>'#OWNER#.mip_parties.get_user_role(v(''APP_USER'')) <> ''AGENT'' and :P32_MKTP_REF is not null and :P32_MKTP_REF<> ''%''||''null%''', p_display_when_type=>'PLSQL_EXPRESSION', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;'||chr(10)|| +'', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -15199,7 +15953,7 @@ wwv_flow_api.create_page_item( p_name=>'P32_UPLOAD_ASSET_LOCATION_NOTES', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', - p_item_sequence=> 1146, + p_item_sequence=> 1147, p_item_plug_id => 26597727520798255+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', @@ -15223,12 +15977,16 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ASSET_LOCATION_NOTES', p_display_when2=>'Upload', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -15282,7 +16040,7 @@ wwv_flow_api.create_page_item( 'SELECT count (*) into partytime FROM v_latest_rt_code_for_enro where rt_code=''ENQ SUPP'' and enqu_id=:P32_ID;'||chr(10)|| ''||chr(10)|| 'privilege := #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'');'||chr(10)|| -'if privilege or partytime>0 then'||chr(10)|| +'if privilege or partytime>0 or #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'' then'||chr(10)|| ' return true;'||chr(10)|| 'else '||chr(10)|| ' return false;'||chr(10)|| @@ -15293,7 +16051,7 @@ wwv_flow_api.create_page_item( p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -15331,7 +16089,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -15374,7 +16136,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -15425,7 +16191,11 @@ wwv_flow_api.create_page_item( p_field_alignment => 'LEFT', p_display_when=>'(#OWNER#.mip_parties.get_user_role(v(''APP_USER'')) <> ''AGENT'' and :P32_AGENT_ID is not null and :P32_AGENT_ID<> ''%''||''null%'') or (#OWNER#.mip_parties.get_user_role(v(''APP_USER'')) =''AGENT'')', p_display_when_type=>'PLSQL_EXPRESSION', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -15454,6 +16224,7 @@ wwv_flow_api.create_page_item( p_prompt=>'Post Code', p_source=>'INSTALL_POSTCODE', p_source_type=> 'DB_COLUMN', + p_source_post_computation => 'UPPER(:P32_INSTALL_POSTCODE)', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', @@ -15468,7 +16239,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -15494,8 +16269,8 @@ wwv_flow_api.create_page_item( p_item_plug_id => 26597504596798255+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', - p_prompt=>'Measuring Capacity QMIN(KWh)', - p_post_element_text=>'KWh', + p_prompt=>'Measuring Capacity QMIN(kWh)', + p_post_element_text=>'kWh', p_source=>'QMIN', p_source_type=> 'DB_COLUMN', p_display_as=> 'TEXT', @@ -15512,7 +16287,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -15555,12 +16334,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -15601,12 +16384,16 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_REQUIRED_SVCP_CODE', p_display_when2=>'IP', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -15647,12 +16434,16 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_REQUIRED_SVCP_CODE', p_display_when2=>'IP', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -15698,7 +16489,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'OFMAT:INSTALL:STD INSTALL', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -15728,8 +16523,8 @@ wwv_flow_api.create_page_item( p_source=>'AMR_REQUIRED', p_source_type=> 'DB_COLUMN', p_display_as=> 'COMBOBOX', - p_named_lov=> 'YN', - p_lov => '.'||to_char(12773402618286720 + wwv_flow_api.g_id_offset)||'.', + p_named_lov=> 'NOORYES', + p_lov => '.'||to_char(17436531047269251 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', @@ -15750,7 +16545,11 @@ wwv_flow_api.create_page_item( ' return false;'||chr(10)|| 'end if;', p_display_when_type=>'FUNCTION_BODY', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -15799,7 +16598,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'OFMAT:REMOVE:STD REMOVE:ADVERSARIAL', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -15849,7 +16652,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'OFMAT:REMOVE:STD REMOVE:ADVERSARIAL', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -15898,7 +16705,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'OFMAT:REMOVE:STD REMOVE:ADVERSARIAL:ADDON', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -15924,8 +16735,8 @@ wwv_flow_api.create_page_item( p_item_plug_id => 26597504596798255+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', - p_prompt=>'Measuring Capacity QMAX (KWh)', - p_post_element_text=>'KWh', + p_prompt=>'Measuring Capacity QMAX (kWh)', + p_post_element_text=>'kWh', p_source=>'QMAX', p_source_type=> 'DB_COLUMN', p_display_as=> 'TEXT', @@ -15941,7 +16752,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -15992,7 +16807,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'INSTALL:OFMAT:EXCHANGE:REMOVE:STD REMOVE:ADVERSARIAL:ALTERATION:ADDON', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -16037,7 +16856,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'INSTALL:STD INSTALL', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -16082,7 +16905,11 @@ wwv_flow_api.create_page_item( p_display_when=>'P32_ENTY_CODE', p_display_when2=>'INSTALL:STD INSTALL', p_display_when_type=>'VALUE_OF_ITEM_IN_CONDITION_NOT_IN_COLON_DELIMITED_LIST', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -16124,12 +16951,16 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', - p_protection_level => 'S', + p_protection_level => 'N', p_item_comment => ''); @@ -16186,9 +17017,9 @@ wwv_flow_api.create_page_item( p_name=>'P32_ALTY_CODE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', - p_item_sequence=> 1144, + p_item_sequence=> 1145, p_item_plug_id => 26597727520798255+wwv_flow_api.g_id_offset, - p_use_cache_before_default=> 'YES', + p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Asset Location Code', p_source=>'ALTY_CODE', @@ -16211,7 +17042,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -16253,7 +17088,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -16295,7 +17134,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -16337,7 +17180,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -16379,7 +17226,11 @@ wwv_flow_api.create_page_item( p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', - p_read_only_when=>'return #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_read_only_when=>'If (:P32_ID is not null and #OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'') or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'') then'||chr(10)|| +'return true;'||chr(10)|| +'else'||chr(10)|| +'return false;'||chr(10)|| +'end if;', p_read_only_when_type=>'FUNCTION_BODY', p_field_template => 24749138532526789+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', @@ -16388,6 +17239,54 @@ wwv_flow_api.create_page_item( p_item_comment => ''); +end; +/ + +declare + h varchar2(32767) := null; +begin +wwv_flow_api.create_page_item( + p_id=>28537620076074492 + wwv_flow_api.g_id_offset, + p_flow_id=> wwv_flow.g_flow_id, + p_flow_step_id=> 32, + p_name=>'P32_AGENT_CONTACT_VALUE2', + p_data_type=> 'VARCHAR', + p_accept_processing=> 'REPLACE_EXISTING', + p_item_sequence=> 1144, + p_item_plug_id => 26597727520798255+wwv_flow_api.g_id_offset, + p_use_cache_before_default=> 'YES', + p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', + p_prompt=>'Agent Contact Value', + p_source=>'select AGENT_CONTACT_VALUE from enquiries where id = :P32_ID', + p_source_type=> 'QUERY', + p_display_as=> 'DISPLAY_ONLY_HTML', + p_lov => 'select contact_value display_value, contact_value return_value'||chr(10)|| +'from party_contact_mechanisms pacm,'||chr(10)|| +' contact_mechanisms come'||chr(10)|| +'where pacm.come_id = come.id and come.comt_code = :P32_AGENT_COMT_CODE'||chr(10)|| +'and (pacm.prty_id = :P32_AGENT_ID OR pacm.prty_id = :P32_AGENT_ID2)', + p_lov_columns=> 1, + p_lov_display_null=> 'NO', + p_lov_translated=> 'N', + p_cSize=> 30, + p_cMaxlength=> 2000, + p_cHeight=> 5, + p_cAttributes=> 'nowrap', + p_begin_on_new_line => 'YES', + p_begin_on_new_field=> 'YES', + p_colspan => 1, + p_rowspan => 1, + p_label_alignment => 'RIGHT', + p_field_alignment => 'LEFT', + p_display_when=>'#OWNER#.mip_enquiry.get_enquiry_status(:P32_ID) <> ''INP'' or #OWNER#.mip_security.page_authorization(v(''APP_USER''),v(''APP_PAGE_ID''),''R'')', + p_display_when_type=>'PLSQL_EXPRESSION', + p_field_template => 24749318534526790+wwv_flow_api.g_id_offset, + p_is_persistent=> 'Y', + p_lov_display_extra=>'NO', + p_protection_level => 'N', + p_item_comment => 'This crappy field is required because APEX will not display (in read mode) Popup LOV''s so I need to duplicate and set the condition of two fields rather than just the read only condition of one field.'); + + end; / @@ -16454,6 +17353,27 @@ end; / +begin + +wwv_flow_api.create_page_validation( + p_id => 28073824856483494 + wwv_flow_api.g_id_offset, + p_flow_id => wwv_flow.g_flow_id, + p_flow_step_id => 32, + p_validation_name => 'READY_FOR_QUOTE', + p_validation_sequence=> 40, + p_validation => 'return mip_quotation.return_mandatory_messages(p_enqu_id=>:P32_ID);', + p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', + p_error_message => '', + p_when_button_pressed=> 28015631689078569 + wwv_flow_api.g_id_offset, + p_error_display_location=>'INLINE_IN_NOTIFICATION', + p_validation_comment=> ''); + +null; + +end; +/ + + begin declare @@ -16889,7 +17809,8 @@ declare l_clob clob; l_length number := 1; begin -p:=p||'--if the user is a I&C User then pass the current user + the agent on behalf, else sent the agent id'||chr(10)|| +p:=p||''||chr(10)|| +'--if the user is a I&C User then pass the current user + the agent on behalf, else sent the agent id'||chr(10)|| 'if :P32_AGENT_ID is not null then #OWNER#.mip_quotation.produce_quotes(:P32_ID,#OWNER#.mip_parties.get_user_id(v(''APP_USER'')),:P32_AGENT_ID);'||chr(10)|| 'else'||chr(10)|| ' #OWNER#.mip_quotation.produce_quotes(:P32_ID,:P32_AGENT_ID2);'||chr(10)|| @@ -34617,8 +35538,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 => 'MULLENM', - p_last_upd_yyyymmddhh24miss => '20080121160341', + p_last_updated_by => 'PRIESTJ', + p_last_upd_yyyymmddhh24miss => '20080123124644', p_page_comment => ''); end; @@ -35076,7 +35997,7 @@ wwv_flow_api.create_page_branch( p_id=>26081528152874709 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 81, - p_branch_action=> 'f?p=&APP_ID.:82:&SESSION.::&DEBUG.::P82_ENQU_ID,P82_QUTE_ID:&P81_ENQU_ID.,&P81_QUOTE_ID.&success_msg=#SUCCESS_MSG#', + p_branch_action=> 'f?p=&APP_ID.:82:&SESSION.::&DEBUG.::P82_QUTE_ID:&P81_QUOTE_ID.&success_msg=#SUCCESS_MSG#', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_when_button_id=>26080418463874708+ wwv_flow_api.g_id_offset,