set define off set verify off set serveroutput on size 1000000 set feedback off begin wwv_flow.g_import_in_progress := true; end; / --application/set_environment prompt APPLICATION 4300 - APEX - Data Workshop -- -- Application Export: -- Application: 4300 -- Name: APEX - Data Workshop -- Date and Time: 07:46 Tuesday May 19, 2009 -- Exported By: -- Flashback: 0 -- Export Type: Application Export -- Version: 3.2.1.00.08 -- Import: -- Using application builder -- or -- Using SQL*Plus as the Oracle user APEX_030200 or as the owner (parsing schema) of the application. -- Application Statistics: -- Pages: 33 -- Items: 112 -- Computations: 27 -- Validations: 75 -- Processes: 38 -- Regions: 134 -- Buttons: 75 -- Shared Components -- Breadcrumbs: 1 -- Entries 34 -- Items: 6 -- Computations: 1 -- Processes: 1 -- Parent Tabs: 0 -- Tab Sets: 0 -- Tabs: 0 -- NavBars: 2 -- Lists: 13 -- Shortcuts: 1 -- Themes: 1 -- Templates: -- Page: 3 -- List: 7 -- Report: 2 -- Label: 3 -- Region: 10 -- Messages: 0 -- Build Options: 1 -- AAAA PPPPP EEEEEE XX XX -- AA AA PP PP EE XX XX -- AA AA PP PP EE XX XX -- AAAAAAAAAA PPPPP EEEE XXXX -- AA AA PP EE XX XX -- AA AA PP EE XX XX -- AA AA PP EEEEEE XX XX prompt Set Credentials... begin -- Assumes you are running the script connected to SQL*Plus as the Oracle user APEX_030200 or as the owner (parsing schema) of the application. wwv_flow_api.set_security_group_id(p_security_group_id=>10); end; / begin wwv_flow.g_import_in_progress := true; end; / begin select value into wwv_flow_api.g_nls_numeric_chars from nls_session_parameters where parameter='NLS_NUMERIC_CHARACTERS'; end; / begin execute immediate 'alter session set nls_numeric_characters=''.,'''; end; / begin wwv_flow.g_browser_language := 'en-us'; end; / prompt Check Compatibility... begin -- This date identifies the minimum version required to import this file. wwv_flow_api.set_version(p_version_yyyy_mm_dd=>'2009.01.12'); end; / prompt Set Application ID... begin -- SET APPLICATION ID wwv_flow.g_flow_id := 4300; wwv_flow_api.g_id_offset := 0; null; end; / --application/delete_application begin -- Remove Application wwv_flow_api.remove_flow(4300); end; / begin wwv_flow_audit.remove_audit_trail(4300); null; end; / --application/create_application begin wwv_flow_api.create_flow( p_id => 4300, p_display_id=> 4300, p_owner => 'APEX_030200', p_name => 'APEX - Data Workshop', p_alias => '4300', p_application_group=>91050719712959059, p_application_group_name=>'APEX Product', p_application_group_comment=>'Applications shipped with the APEX product distribution', p_page_view_logging => 'YES', p_default_page_template=> 3485606247566446 + wwv_flow_api.g_id_offset, p_printer_friendly_template=> 9113661096283 + wwv_flow_api.g_id_offset, p_default_region_template=> 9113673096289 + wwv_flow_api.g_id_offset, p_error_template => 3485606247566446 + wwv_flow_api.g_id_offset, p_charset => 'utf-8', p_checksum_salt_last_reset => '20090519073429', p_max_session_length_sec=> 28800, p_home_link => 'f?p=4300:9:&SESSION.', p_flow_language => 'en-us', p_flow_language_derived_from=> 'BROWSER', p_flow_image_prefix => '/i/', p_documentation_banner=> 'Developers:'||chr(10)|| ''||chr(10)|| 'Michael Hichwa, Joel Kallman, Sergio Leunissen, Christina Cho, Scott Spadafore, Marc Sewtz, Jason Straub, Tyler Muth, Raj Mattamal, Sharon Kennedy, Carl Backstrom, Kris Rice, Syme Kutz, Karen Ryan, Scott Spendolini, Terri Winters.'||chr(10)|| ''||chr(10)|| 'Contributors:'||chr(10)|| ''||chr(10)|| 'William Dwight, Tim Hoechst, Thomas Kyte, Chris Beck, David Bliss, Jason Rhodes, Sean Dillon, Ken Jacobs, Darcy Menard, Sudha Kannan.', p_authentication => 'CUSTOM2', p_login_url => 'development_service_home_login', p_logout_url => 'wwv_flow_custom_auth_std.logout?p_this_flow=&FLOW_ID.&p_next_flow_page_sess=4550:8:&SESSION.', p_application_tab_set=> 1, p_logo_image => '#IMAGE_PREFIX#htmldb/apex_logo.gif', p_logo_image_attributes => 'width="300" height="30" alt="&PRODUCT_NAME."', p_public_url_prefix => '', p_public_user => 'APEX_PUBLIC_USER', p_dbauth_url_prefix => '', p_proxy_server => '', p_cust_authentication_process=> '.'||to_char(60872513468265716 + wwv_flow_api.g_id_offset)||'.', p_cust_authentication_page=> '', p_custom_auth_login_url=> '', p_flow_version => '&PRODUCT_NAME. 3.2.1.00.08', p_flow_status => 'AVAILABLE_W_EDIT_LINK', p_flow_unavailable_text=> 'This application is currently unavailable.', p_build_status => 'RUN_AND_BUILD', p_exact_substitutions_only=> 'Y', p_vpd => '', p_security_scheme=>'FLOW: DATA_LOADER', p_csv_encoding => 'Y', p_theme_id => 3, p_default_label_template => 103909823939152778 + wwv_flow_api.g_id_offset, p_default_report_template => 10583525904875984 + wwv_flow_api.g_id_offset, p_default_list_template => 119835024987557728 + wwv_flow_api.g_id_offset, p_default_menu_template => 6680621597641306 + wwv_flow_api.g_id_offset, p_substitution_string_01 => 'LOGOUT', p_substitution_value_01 => 'Logout', p_substitution_string_02 => 'PRODUCT_NAME', p_substitution_value_02 => 'Application Express', p_substitution_string_03 => 'MSG_COMPANY', p_substitution_value_03 => 'Workspace: &COMPANY.', p_substitution_string_04 => 'MSG_LANGUAGE', p_substitution_value_04 => 'Language', p_substitution_string_05 => 'MSG_COPYRIGHT', p_substitution_value_05 => 'Copyright © 1999, 2009, Oracle. All rights reserved.', p_substitution_string_06 => 'MSG_USER', p_substitution_value_06 => 'User', p_substitution_string_07 => 'MSG_JSCRIPT', p_substitution_value_07 => 'You must run this product with JavaScript enabled.', p_substitution_string_08 => 'MSG_TBL_SUMMARY', p_substitution_value_08 => 'Page Layout Table', p_substitution_string_09 => 'DONE', p_substitution_value_09 => 'Done', p_substitution_string_10 => 'TOP', p_substitution_value_10 => 'Top', p_substitution_string_11 => 'CLOSE', p_substitution_value_11 => 'Close', p_substitution_string_12 => 'DATE_FORMAT', p_substitution_value_12 => 'mm/dd/yyyy', p_substitution_string_13 => 'LONG_DATE_FORMAT', p_substitution_value_13 => 'fmDay, Month dd, yyyy', p_substitution_string_14 => 'TIME_FORMAT', p_substitution_value_14 => 'hh:mi:ss AM', p_substitution_string_15 => 'DATE_TIME_FORMAT', p_substitution_value_15 => 'mm/dd/yyyy hh:mi:ss AM', p_substitution_string_16 => 'RETURN_TO_APPLICATION', p_substitution_value_16 => 'Return to Application', p_substitution_string_17 => 'DELETE_MSG', p_substitution_value_17 => 'Would you like to perform this delete action?', p_substitution_string_18 => 'FIND', p_substitution_value_18 => 'Find', p_last_updated_by => '', p_last_upd_yyyymmddhh24miss=> '20090518133256', p_required_roles=> wwv_flow_utilities.string_to_table2('')); end; / prompt ...authorization schemes -- begin null; end; / --application/shared_components/navigation/navigation_bar prompt ...navigation bar entries -- begin wwv_flow_api.create_icon_bar_item( p_id => 39891301589182701 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_icon_sequence => 1, p_icon_image => '', p_icon_subtext => 'Help', p_icon_target => 'javascript:popupURL(''wwv_flow_help.show_help?p_lang=&BROWSER_LANGUAGE.&p_session=&APP_SESSION.&p_flow_id=&APP_TRANSLATION_ID.&p_step_id=&APP_TRANSLATION_PAGE_ID.'');', p_icon_image_alt => 'Help', p_icon_height => null, p_icon_width => null, p_icon_height2 => null, p_icon_width2 => null, p_icon_bar_disp_cond => '', p_icon_bar_disp_cond_type => '', p_begins_on_new_line=> 'NO', p_cell_colspan => 1, p_onclick=> '', p_icon_bar_comment=> ''); wwv_flow_api.create_icon_bar_item( p_id => 39955524108615064 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_icon_sequence => 10, p_icon_image => '', p_icon_subtext => 'Logout', p_icon_target => 'wwv_flow_custom_auth_std.logout?p_this_flow=&APP_ID.&p_next_flow_page_sess=4550:8:&SESSION.', p_icon_image_alt => 'Logout', p_icon_height => null, p_icon_width => null, p_icon_height2 => null, p_icon_width2 => null, p_icon_bar_disp_cond => '', p_icon_bar_disp_cond_type => '', p_begins_on_new_line=> 'NO', p_cell_colspan => 1, p_onclick=> '', p_icon_bar_comment=> ''); end; / prompt ...application processes -- --application/shared_components/logic/application_processes/ajax_collect_clob begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare'||chr(10)|| ' l_code clob := empty_clob;'||chr(10)|| 'begin'||chr(10)|| ' dbms_lob.createtemporary( l_code, false, dbms_lob.SESSION );'||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' dbms_lob.writeappend(l_code,length(wwv_flow.g_f01(i)),wwv_flow.g_f01(i));'||chr(10)|| ' end loop;'||chr(10)|| 'apex_collection.create_or_truncate_collection(p_collection_name=>''CLOB_CONTENT'');'||chr(10)|| 'apex_collection.add_member(p_collection_name=>''CLOB_CONTENT'',p_clob001=>'; p:=p||'l_code);'||chr(10)|| 'htp.prn(''SUCCESS'');'||chr(10)|| 'end;'; wwv_flow_api.create_flow_process( p_id => 49906314503034042 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_process_sequence=> 1, p_process_point => 'ON_DEMAND', p_process_type=> 'PLSQL', p_process_name=> 'AJAX_COLLECT_CLOB', p_process_sql_clob=> p, p_process_error_message=> '', p_process_when=> '', p_process_when_type=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_process_comment=> ''); end; null; end; / prompt ...application items -- --application/shared_components/logic/application_items/company begin wwv_flow_api.create_flow_item( p_id=> 5126097226 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'COMPANY', p_data_type=> 'VARCHAR', p_is_persistent=> 'Y', p_protection_level=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_item_comment=> 'name of company for mutli company oracle platform'); null; end; / --application/shared_components/logic/application_items/f4300_imex_batch_id begin wwv_flow_api.create_flow_item( p_id=> 25339931440732484 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'F4300_IMEX_BATCH_ID', p_data_type=> 'NUMBER', p_is_persistent=> 'Y', p_protection_level=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_item_comment=> ''); null; end; / --application/shared_components/logic/application_items/f4300_last_view begin wwv_flow_api.create_flow_item( p_id=> 48603115971458169 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'F4300_LAST_VIEW', p_data_type=> 'VARCHAR', p_is_persistent=> 'Y', p_protection_level=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_item_comment=> ''); null; end; / --application/shared_components/logic/application_items/f4300_load_job begin wwv_flow_api.create_flow_item( p_id=> 242549145362 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'F4300_LOAD_JOB', p_data_type=> 'NUMBER', p_is_persistent=> 'Y', p_protection_level=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_item_comment=> ''); null; end; / --application/shared_components/logic/application_items/fsp_after_login_url begin wwv_flow_api.create_flow_item( p_id=> 147029609296398557 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'FSP_AFTER_LOGIN_URL', p_data_type=> 'VARCHAR', p_is_persistent=> 'Y', p_protection_level=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_item_comment=> 'Used by Custom2 authentication for deep linking support'); null; end; / --application/shared_components/logic/application_items/last_view begin wwv_flow_api.create_flow_item( p_id=> 48610196642071039 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'LAST_VIEW', p_data_type=> 'VARCHAR', p_is_persistent=> 'Y', p_protection_level=> '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_item_comment=> ''); null; end; / prompt ...application level computations -- begin --application/shared_components/logic/application_computations/company wwv_flow_api.create_flow_computation ( p_id => 5128100953 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_computation_sequence => 10, p_computation_item => 'COMPANY', p_computation_point => 'ON_NEW_INSTANCE', p_computation_type => 'FUNCTION_BODY', p_computation_processed=> 'ON_NEW_INSTANCE', p_computation => 'return wwv_flow.get_company_name;', p_compute_when=> '', p_compute_when_type=> '', p_computation_error_message=>'', p_computation_comment=> '', p_required_patch=> null + wwv_flow_api.g_id_offset); end; / prompt ...Application Tabs -- begin null; end; / prompt ...Application Parent Tabs -- begin null; end; / prompt ...Shared Lists of values -- --application/shared_components/user_interface/lov/case_sensitive_y begin wwv_flow_api.create_list_of_values ( p_id => 87923517360560740 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'CASE.SENSITIVE.Y', p_lov_query=> '.'||to_char(87923517360560740 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87923721904560740 + wwv_flow_api.g_id_offset, p_lov_id=>87923517360560740 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'Case Sensitive', p_lov_return_value=>'Y', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/create_table_schemas begin wwv_flow_api.create_list_of_values ( p_id => 23546816846659473 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'CREATE_TABLE_SCHEMAS', p_lov_query=> 'declare'||chr(10)|| ' q varchar2(32767) := null;'||chr(10)|| 'begin'||chr(10)|| ' q:=q||''select htf.escape_sc(c.schema) d, c.schema v '';'||chr(10)|| ' q:=q||''from wwv_flow_company_schemas c, '';'||chr(10)|| ' q:=q||'' wwv_flow_fnd_user u '';'||chr(10)|| ' q:=q||''where c.security_group_id = :flow_security_group_id and '';'||chr(10)|| ' q:=q||'' u.security_group_id = :flow_security_group_id and '';'||chr(10)|| ' q:=q||'' u.user_name = :flow_user and '';'||chr(10)|| ' q:=q||'' (u.ALLOW_ACCESS_TO_SCHEMAS is null or '';'||chr(10)|| ' q:=q||'' instr('''':''''||u.ALLOW_ACCESS_TO_SCHEMAS||'''':'''','''':''''||c.schema||'''':'''')>0) '';'||chr(10)|| ' if wwv_flow_global.g_xe then'||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs '';'||chr(10)|| ' q:=q||'' where privilege = ''''CREATE TABLE'''' '';'||chr(10)|| ' q:=q||'' and grantee = c.schema '';'||chr(10)|| ' q:=q||'' union all '';'||chr(10)|| ' q:=q||'' select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs s, sys.dba_role_privs r '';'||chr(10)|| ' q:=q||'' where r.granted_role=s.grantee '';'||chr(10)|| ' q:=q||'' and r.grantee = c.schema '';'||chr(10)|| ' q:=q||'' and s.privilege = ''''CREATE TABLE'''') '';'||chr(10)|| ' else'||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs '';'||chr(10)|| ' q:=q||'' where privilege = ''''CREATE TABLE'''' '';'||chr(10)|| ' q:=q||'' and grantee = c.schema) '';'||chr(10)|| ' end if; '||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_users '';'||chr(10)|| ' q:=q||'' where username = c.schema) '';'||chr(10)|| ' q:=q||''order by 1 '';'||chr(10)|| ' '||chr(10)|| ' return q;'||chr(10)|| 'end;'); null; end; / --application/shared_components/user_interface/lov/export_as_file_y begin wwv_flow_api.create_list_of_values ( p_id => 87944005995777613 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'EXPORT.AS.FILE.Y', p_lov_query=> '.'||to_char(87944005995777613 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87944229029777613 + wwv_flow_api.g_id_offset, p_lov_id=>87944005995777613 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'Export As File', p_lov_return_value=>'Y', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/export_file_format begin wwv_flow_api.create_list_of_values ( p_id => 143183002952786622 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'EXPORT.FILE_FORMAT', p_lov_query=> '.'||to_char(143183002952786622 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>143183319798786629 + wwv_flow_api.g_id_offset, p_lov_id=>143183002952786622 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>1, p_lov_disp_value=>'Unix', p_lov_return_value=>'UNIX', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>143183511674786632 + wwv_flow_api.g_id_offset, p_lov_id=>143183002952786622 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>2, p_lov_disp_value=>'DOS', p_lov_return_value=>'DOS', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/i18n_iana_charset begin wwv_flow_api.create_list_of_values ( p_id => 135399325911344822 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'I18N_IANA_CHARSET', p_reference_id=> 144796827445692396, p_lov_query=> '.'||to_char(135399325911344822 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70982304215423500 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'Arabic ISO-8859-6', p_lov_return_value=>'iso-8859-6', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70982502342423500 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'Arabic Windows 1256', p_lov_return_value=>'windows-1256', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70982721979423500 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>30, p_lov_disp_value=>'Chinese Big5', p_lov_return_value=>'big5', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70982904632423500 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>40, p_lov_disp_value=>'Chinese GBK', p_lov_return_value=>'gbk', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70983131546423500 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>50, p_lov_disp_value=>'Cyrilic ISO-8859-5', p_lov_return_value=>'iso-8859-5', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70983303089423501 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>60, p_lov_disp_value=>'Cyrilic KOI8-R', p_lov_return_value=>'koi8-r', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70983516076423501 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>70, p_lov_disp_value=>'Cyrilic KOI8-U', p_lov_return_value=>'koi8-u', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70983709919423501 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>80, p_lov_disp_value=>'Cyrilic Windows 1251', p_lov_return_value=>'windows-1251', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70983918411423501 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>90, p_lov_disp_value=>'Eastern European ISO-8859-2', p_lov_return_value=>'iso-8859-2', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70984123082423502 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>100, p_lov_disp_value=>'Eastern European Windows 1250', p_lov_return_value=>'windows-1250', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70984306836423503 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>110, p_lov_disp_value=>'Greek ISO-8859-7', p_lov_return_value=>'iso-8859-7', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70984532472423503 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>120, p_lov_disp_value=>'Greek Windows 1253', p_lov_return_value=>'windows-1253', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70984727853423503 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>130, p_lov_disp_value=>'Hebrew ISO-8859-8-i', p_lov_return_value=>'iso-8859-8-i', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70984900365423503 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>140, p_lov_disp_value=>'Hebrew Windows 1255', p_lov_return_value=>'windows-1255', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70985116658423503 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>150, p_lov_disp_value=>'Japanese EUC', p_lov_return_value=>'euc-jp', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70985320706423503 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>160, p_lov_disp_value=>'Japanese Shift JIS', p_lov_return_value=>'shift_jis', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70985502577423503 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>170, p_lov_disp_value=>'Korean EUC', p_lov_return_value=>'euc-kr', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70985721929423503 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>180, p_lov_disp_value=>'Northern European ISO-8859-4', p_lov_return_value=>'iso-8859-4', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70985923459423503 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>190, p_lov_disp_value=>'Northern European Windows 1257', p_lov_return_value=>'windows-1257', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70986113653423503 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>200, p_lov_disp_value=>'Southern European ISO-8859-3', p_lov_return_value=>'iso-8859-3', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70986331235423503 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>210, p_lov_disp_value=>'Thai TIS-620', p_lov_return_value=>'tis-620', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70986512702423504 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>220, p_lov_disp_value=>'Turkish ISO-8859-9', p_lov_return_value=>'iso-8859-9', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70986726925423504 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>230, p_lov_disp_value=>'Turkish Windows 1254', p_lov_return_value=>'windows-1254', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70986925310423504 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>240, p_lov_disp_value=>'Unicode UTF-8', p_lov_return_value=>'utf-8', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70987104467423504 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>242, p_lov_disp_value=>'Unicode UTF-16 Big Endian', p_lov_return_value=>'utf-16be', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70987313654423504 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>244, p_lov_disp_value=>'Unicode UTF-16 Little Endian', p_lov_return_value=>'utf-16le', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70987511911423504 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>248, p_lov_disp_value=>'US-ASCII', p_lov_return_value=>'us-ascii', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70987715835423504 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>250, p_lov_disp_value=>'Vietnamese Windows 1258', p_lov_return_value=>'windows-1258', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70987907270423504 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>260, p_lov_disp_value=>'Western European ISO-8859-1', p_lov_return_value=>'iso-8859-1', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70988132193423504 + wwv_flow_api.g_id_offset, p_lov_id=>135399325911344822 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>270, p_lov_disp_value=>'Western European Windows 1252', p_lov_return_value=>'windows-1252', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/i18n_iana_db_charset begin wwv_flow_api.create_list_of_values ( p_id => 139941401949707953 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'I18N_IANA_DB_CHARSET', p_reference_id=> 144802427115692411, p_lov_query=> '.'||to_char(139941401949707953 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70963429018421249 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'Arabic ISO-8859-6', p_lov_return_value=>'AR8ISO8859P6', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70963607302421249 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'Arabic Windows 1256', p_lov_return_value=>'AR8MSWIN1256', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70963801762421249 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>30, p_lov_disp_value=>'Chinese Big5', p_lov_return_value=>'ZHT16MSWIN950', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70964002767421250 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>40, p_lov_disp_value=>'Chinese GBK', p_lov_return_value=>'ZHS16GBK', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70964217909421250 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>50, p_lov_disp_value=>'Cyrilic ISO-8859-5', p_lov_return_value=>'CL8ISO8859P5', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70964409183421250 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>60, p_lov_disp_value=>'Cyrilic KOI8-R', p_lov_return_value=>'CL8KOI8R', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70964604460421250 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>70, p_lov_disp_value=>'Cyrilic KOI8-U', p_lov_return_value=>'CL8KOI8U', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70964804920421250 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>80, p_lov_disp_value=>'Cyrilic Windows 1251', p_lov_return_value=>'CL8MSWIN1251', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70965031359421250 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>90, p_lov_disp_value=>'Eastern European ISO-8859-2', p_lov_return_value=>'EE8ISO8859P2', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70965231606421250 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>100, p_lov_disp_value=>'Eastern European Windows 1250', p_lov_return_value=>'EE8MSWIN1250', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70965424117421250 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>110, p_lov_disp_value=>'Greek ISO-8859-7', p_lov_return_value=>'EL8ISO8859P7', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70965603027421250 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>120, p_lov_disp_value=>'Greek Windows 1253', p_lov_return_value=>'EL8MSWIN1253', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70965818420421250 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>130, p_lov_disp_value=>'Hebrew ISO-8859-8-i', p_lov_return_value=>'IW8ISO8859P8', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70966015024421250 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>140, p_lov_disp_value=>'Hebrew Windows 1255', p_lov_return_value=>'IW8MSWIN1255', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70966219264421250 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>150, p_lov_disp_value=>'Japanese EUC', p_lov_return_value=>'JA16EUC', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70966421516421251 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>160, p_lov_disp_value=>'Japanese Shift JIS', p_lov_return_value=>'JA16SJIS', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70966607691421251 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>170, p_lov_disp_value=>'Korean EUC', p_lov_return_value=>'KO16MSWIN949', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70966823352421251 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>180, p_lov_disp_value=>'Northern European ISO-8859-4', p_lov_return_value=>'NEE8ISO8859P4', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70967023086421251 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>190, p_lov_disp_value=>'Northern European Windows 1257', p_lov_return_value=>'BLT8MSWIN1257', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70967219758421251 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>200, p_lov_disp_value=>'Southern European ISO-8859-3', p_lov_return_value=>'SE8ISO8859P3', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70967416340421251 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>210, p_lov_disp_value=>'Thai TIS-620', p_lov_return_value=>'TH8TISASCII', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70967611593421251 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>220, p_lov_disp_value=>'Turkish ISO-8859-9', p_lov_return_value=>'WE8ISO8859P9', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70967827650421251 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>230, p_lov_disp_value=>'Turkish Windows 1254', p_lov_return_value=>'TR8MSWIN1254', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70968000086421251 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>240, p_lov_disp_value=>'Unicode UTF-8', p_lov_return_value=>'AL32UTF8', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70968201422421251 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>242, p_lov_disp_value=>'Unicode UTF-16 Big Endian', p_lov_return_value=>'AL16UTF16', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70968400569421251 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>244, p_lov_disp_value=>'Unicode UTF-16 Little Endian', p_lov_return_value=>'AL16UTF16LE', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70968614356421251 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>248, p_lov_disp_value=>'US-ASCII', p_lov_return_value=>'US7ASCII', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70968802200421251 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>250, p_lov_disp_value=>'Vietnamese Windows 1258', p_lov_return_value=>'VN8MSWIN1258', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70969016331421252 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>260, p_lov_disp_value=>'Western European ISO-8859-1', p_lov_return_value=>'WE8ISO8859P1', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>70969214663421252 + wwv_flow_api.g_id_offset, p_lov_id=>139941401949707953 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>270, p_lov_disp_value=>'Western European Windows 1252', p_lov_return_value=>'WE8MSWIN1252', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/include_col_names_y begin wwv_flow_api.create_list_of_values ( p_id => 87945815476789819 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'INCLUDE.COL.NAMES.Y', p_lov_query=> '.'||to_char(87945815476789819 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87946002718789820 + wwv_flow_api.g_id_offset, p_lov_id=>87945815476789819 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'Include Column Names', p_lov_return_value=>'Y', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/iscolumn_name_text begin wwv_flow_api.create_list_of_values ( p_id => 87953325959849588 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'ISCOLUMN.NAME.TEXT', p_lov_query=> 'select ''''||'||chr(10)|| 'wwv_flow_lang.system_message(''F4300_INSTRUCT_TEXT'')||'''' d, ''Y'' r from dual'); null; end; / --application/shared_components/user_interface/lov/list_schema_owners begin wwv_flow_api.create_list_of_values ( p_id => 182776719411 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'LIST_SCHEMA_OWNERS', p_lov_query=> 'select htf.escape_sc(c.schema) d, c.schema v'||chr(10)|| 'from wwv_flow_company_schemas c,'||chr(10)|| ' wwv_flow_fnd_user u'||chr(10)|| 'where c.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.user_name = :flow_user and'||chr(10)|| ' (u.ALLOW_ACCESS_TO_SCHEMAS is null or'||chr(10)|| ' instr('':''||u.ALLOW_ACCESS_TO_SCHEMAS||'':'','':''||c.schema||'':'')>0)'||chr(10)|| 'order by 1'||chr(10)|| ''); null; end; / --application/shared_components/user_interface/lov/load_option begin wwv_flow_api.create_list_of_values ( p_id => 87921416882551159 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'LOAD.OPTION', p_lov_query=> '.'||to_char(87921416882551159 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87921609839551159 + wwv_flow_api.g_id_offset, p_lov_id=>87921416882551159 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'Upload file (comma separated or tab delimited)', p_lov_return_value=>'UPLOAD', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87921801389551160 + wwv_flow_api.g_id_offset, p_lov_id=>87921416882551159 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'Copy and paste', p_lov_return_value=>'PASTE', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/load_data_types begin wwv_flow_api.create_list_of_values ( p_id => 20828314943711235 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'LOAD_DATA_TYPES', p_lov_query=> '.'||to_char(20828314943711235 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>20828624229711248 + wwv_flow_api.g_id_offset, p_lov_id=>20828314943711235 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>1, p_lov_disp_value=>'NUMBER', p_lov_return_value=>'NUMBER', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>20828808097711250 + wwv_flow_api.g_id_offset, p_lov_id=>20828314943711235 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>2, p_lov_disp_value=>'VARCHAR2', p_lov_return_value=>'VARCHAR2', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>20829026553711250 + wwv_flow_api.g_id_offset, p_lov_id=>20828314943711235 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>3, p_lov_disp_value=>'DATE', p_lov_return_value=>'DATE', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>20829212946711250 + wwv_flow_api.g_id_offset, p_lov_id=>20828314943711235 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>4, p_lov_disp_value=>'CLOB', p_lov_return_value=>'CLOB', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>20829421949711250 + wwv_flow_api.g_id_offset, p_lov_id=>20828314943711235 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>5, p_lov_disp_value=>'BINARY_FLOAT', p_lov_return_value=>'BINARY_FLOAT', p_lov_disp_cond_type=>'FUNCTION_BODY', p_lov_disp_cond=> 'return wwv_flow_utilities.db_version_is_at_least(''10.1'');', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>20829612125711251 + wwv_flow_api.g_id_offset, p_lov_id=>20828314943711235 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>6, p_lov_disp_value=>'BINARY_DOUBLE', p_lov_return_value=>'BINARY_DOUBLE', p_lov_disp_cond_type=>'FUNCTION_BODY', p_lov_disp_cond=> 'return wwv_flow_utilities.db_version_is_at_least(''10.1'');', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/p16_tables begin wwv_flow_api.create_list_of_values ( p_id => 162716910286446218 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'P16_TABLES', p_lov_query=> 'select table_name a, table_name b'||chr(10)|| 'from sys.dba_tables'||chr(10)|| 'where owner=:F4300_P14_TARGET_SCHEMA'||chr(10)|| 'and table_name not like ''BIN$%'''||chr(10)|| 'order by 1'); null; end; / --application/shared_components/user_interface/lov/p2_load begin wwv_flow_api.create_list_of_values ( p_id => 236956028332134846 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'P2_LOAD', p_lov_query=> '.'||to_char(236956028332134846 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>236956315568134853 + wwv_flow_api.g_id_offset, p_lov_id=>236956028332134846 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>1, p_lov_disp_value=>'My Import', p_lov_return_value=>'MY', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>236956532195134859 + wwv_flow_api.g_id_offset, p_lov_id=>236956028332134846 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>2, p_lov_disp_value=>'All Import', p_lov_return_value=>'ALL', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/pk_types begin wwv_flow_api.create_list_of_values ( p_id => 29232624018252340 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'PK_TYPES', p_reference_id=> 20561306137429854, p_lov_query=> '.'||to_char(29232624018252340 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>51627621271152564 + wwv_flow_api.g_id_offset, p_lov_id=>29232624018252340 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>2, p_lov_disp_value=>'Generated from a new sequence', p_lov_return_value=>'NEW_SEQUENCE', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>51627831065152564 + wwv_flow_api.g_id_offset, p_lov_id=>29232624018252340 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>3, p_lov_disp_value=>'Generated from an existing sequence', p_lov_return_value=>'EXISTING_SEQUENCE', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>51628012394152565 + wwv_flow_api.g_id_offset, p_lov_id=>29232624018252340 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>5, p_lov_disp_value=>'Not generated', p_lov_return_value=>'NOT_GENERATED', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/preserve_case_y begin wwv_flow_api.create_list_of_values ( p_id => 87931511182663028 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'PRESERVE.CASE.Y', p_lov_query=> '.'||to_char(87931511182663028 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87931730659663028 + wwv_flow_api.g_id_offset, p_lov_id=>87931511182663028 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'Preserve Case', p_lov_return_value=>'Y', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/restrict_load_files begin wwv_flow_api.create_list_of_values ( p_id => 87918702852509211 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'RESTRICT.LOAD.FILES', p_lov_query=> '.'||to_char(87918702852509211 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87918901897509212 + wwv_flow_api.g_id_offset, p_lov_id=>87918702852509211 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'My Import Files', p_lov_return_value=>'MY', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87919109206509212 + wwv_flow_api.g_id_offset, p_lov_id=>87918702852509211 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'All Import Files', p_lov_return_value=>'ALL', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/table_option begin wwv_flow_api.create_list_of_values ( p_id => 87922429003554589 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'TABLE.OPTION', p_lov_query=> '.'||to_char(87922429003554589 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87922602291554590 + wwv_flow_api.g_id_offset, p_lov_id=>87922429003554589 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'Existing table', p_lov_return_value=>'EXIST', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87922820756554590 + wwv_flow_api.g_id_offset, p_lov_id=>87922429003554589 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'New table', p_lov_return_value=>'NEW', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/use_existing_col begin wwv_flow_api.create_list_of_values ( p_id => 87933423434676001 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'USE.EXISTING.COL', p_lov_query=> '.'||to_char(87933423434676001 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87933602623676001 + wwv_flow_api.g_id_offset, p_lov_id=>87933423434676001 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'Use an existing column', p_lov_return_value=>'EXISTING_KEY', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87933822194676002 + wwv_flow_api.g_id_offset, p_lov_id=>87933423434676001 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'Create new column', p_lov_return_value=>'NEW_KEY', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/yes_no_returns_y_or_n begin wwv_flow_api.create_list_of_values ( p_id => 87930425596657700 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'YES.NO.RETURNS_Y_OR_N', p_lov_query=> '.'||to_char(87930425596657700 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87930609321657701 + wwv_flow_api.g_id_offset, p_lov_id=>87930425596657700 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>10, p_lov_disp_value=>'No', p_lov_return_value=>'N', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>87930802381657701 + wwv_flow_api.g_id_offset, p_lov_id=>87930425596657700 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>20, p_lov_disp_value=>'Yes', p_lov_return_value=>'Y', p_lov_data_comment=> ''); null; end; / --application/shared_components/user_interface/lov/yes_no begin wwv_flow_api.create_list_of_values ( p_id => 182782926995 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_lov_name => 'YES_NO', p_lov_query=> '.'||to_char(182782926995 + wwv_flow_api.g_id_offset)||'.'); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>182785927024 + wwv_flow_api.g_id_offset, p_lov_id=>182782926995 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>1, p_lov_disp_value=>'Yes', p_lov_return_value=>'Y', p_lov_data_comment=> ''); null; end; / begin wwv_flow_api.create_static_lov_data ( p_id=>182787927024 + wwv_flow_api.g_id_offset, p_lov_id=>182782926995 + wwv_flow_api.g_id_offset, p_lov_disp_sequence=>2, p_lov_disp_value=>'No', p_lov_return_value=>'N', p_lov_data_comment=> ''); null; end; / prompt ...Application Trees -- --application/pages/page_groups prompt ...page groups -- begin wwv_flow_api.create_page_group( p_id=>216950505720834051 + wwv_flow_api.g_id_offset, p_flow_id=>wwv_flow.g_flow_id, p_group_name=>'Home / Common / About / Nav', p_group_desc=>''); wwv_flow_api.create_page_group( p_id=>215729525348581243 + wwv_flow_api.g_id_offset, p_flow_id=>wwv_flow.g_flow_id, p_group_name=>'Import Spreadsheet', p_group_desc=>'Allow for a spreadsheet to be uploaded and then converted into a database table.'); wwv_flow_api.create_page_group( p_id=>215731706086585147 + wwv_flow_api.g_id_offset, p_flow_id=>wwv_flow.g_flow_id, p_group_name=>'Plain Text Upload', p_group_desc=>''); wwv_flow_api.create_page_group( p_id=>215731303316584395 + wwv_flow_api.g_id_offset, p_flow_id=>wwv_flow.g_flow_id, p_group_name=>'XML Upload', p_group_desc=>''); null; end; / --application/pages/page_00000 prompt ...PAGE 0: Page Zero -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h := null; ph := null; wwv_flow_api.create_page( p_id => 0, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Page Zero', p_step_title=> '', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 216950505720834051+ wwv_flow_api.g_id_offset, p_help_text => '', p_html_page_header => '', p_step_template => 7505408382227958+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'CBCHO', p_last_upd_yyyymmddhh24miss => '20071120070310', p_page_is_public_y_n=> 'N', p_page_comment => ''); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'1452315428006354'; wwv_flow_api.create_page_plug ( p_id=> 1456614651025020 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 0, p_plug_name=> 'Application Tabs', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_07', p_plug_source=> s, p_plug_source_type=> 1452315428006354 + wwv_flow_api.g_id_offset, p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin null; end; / begin null; end; / begin --------------------------------------- -- ...updatable report columns for page 0 -- begin null; end; null; end; / --application/pages/page_00001 prompt ...PAGE 1: Data Load/Unload -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt_imprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 1, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Data Load/Unload', p_step_title=> 'Data Load/Unload', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 216950505720834051+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125927', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>1,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'2202106852499122'; wwv_flow_api.create_page_plug ( p_id=> 2209528931524495 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 1, p_plug_name=> 'Data Workshop', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 2202106852499122 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 2211411747528919 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 1, p_plug_name=> 'menu', p_region_name=>'', p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin null; end; / begin null; end; / begin --------------------------------------- -- ...updatable report columns for page 1 -- begin null; end; null; end; / --application/pages/page_00002 prompt ...PAGE 2: Spreadsheet Load Details -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 2, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Spreadsheet Load Details', p_step_title=> 'Spreadsheet Load Details', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 7505408382227958+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125926', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>2,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'
This page displays information about the Spreadsheet import. If any rows failed while importing, this page displays an error message.
'; wwv_flow_api.create_page_plug ( p_id=> 236908207860041215 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 2, p_plug_name=> 'Spreadsheet Load', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 50, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_05', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_no_data_found=>'No failed rows found.', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'select '''' || errm || '''' Error,'||chr(10)|| ' data Data'||chr(10)|| ' from wwv_flow_data_load_bad_log'||chr(10)|| ' where load_id = :P2_LOAD_ID'; wwv_flow_api.create_report_region ( p_id=> 236908624285041216 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 2, p_name=> 'Failed Rows', p_region_name=>'', p_template=> 101735615849237059+ wwv_flow_api.g_id_offset, p_display_sequence=> 30, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_translate_title=> 'Y', p_query_row_template=> 10583525904875984+ wwv_flow_api.g_id_offset, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> '(null)', p_query_break_cols=> '0', p_query_no_data_found=> 'No failed rows found.', p_query_num_rows_type=> 'ROW_RANGES', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_query_asc_image=> 'blue_arrow_down.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'blue_arrow_up.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236909010953041218 + wwv_flow_api.g_id_offset, p_region_id=> 236908624285041216 + 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=> 'ERROR', p_column_display_sequence=> 1, p_column_heading=> 'Error', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236909111520041218 + wwv_flow_api.g_id_offset, p_region_id=> 236908624285041216 + 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=> 'DATA', p_column_display_sequence=> 2, p_column_heading=> 'Data', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 236909231803041218 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 2, p_plug_name=> 'button bar', p_region_name=>'', p_plug_template=> 3918621721760114+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'N', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select CREATED_ON Load_Date, CREATED_BY Loaded_By, DATA_SCHEMA Schema2, DATA_TABLE Table2, SUCCESS_ROWS Rows_Loaded, FAILED_ROWS Rows_Failed from wwv_flow_data_load_unload where id=:P2_LOAD_ID'; wwv_flow_api.create_report_region ( p_id=> 236910023245041222 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 2, p_name=> 'Overview', p_region_name=>'', p_template=> 101735615849237059+ wwv_flow_api.g_id_offset, p_display_sequence=> 25, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_query_row_template=> 3, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> ' - ', p_query_break_cols=> '0', p_query_no_data_found=> 'No data found.', p_query_num_rows_type=> '0', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_query_asc_image=> 'blue_arrow_down.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'blue_arrow_up.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236910621733041225 + wwv_flow_api.g_id_offset, p_region_id=> 236910023245041222 + 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=> 'LOAD_DATE', p_column_display_sequence=> 1, p_column_heading=> 'Import Date', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236910704793041225 + wwv_flow_api.g_id_offset, p_region_id=> 236910023245041222 + 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=> 'LOADED_BY', p_column_display_sequence=> 2, p_column_heading=> 'Imported By', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236910825625041225 + wwv_flow_api.g_id_offset, p_region_id=> 236910023245041222 + 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=> 'SCHEMA2', p_column_display_sequence=> 3, p_column_heading=> 'Schema', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236910911224041225 + wwv_flow_api.g_id_offset, p_region_id=> 236910023245041222 + 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=> 'TABLE2', p_column_display_sequence=> 4, p_column_heading=> 'Table', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236910405016041225 + wwv_flow_api.g_id_offset, p_region_id=> 236910023245041222 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 5, p_form_element_id=> null, p_column_alias=> 'ROWS_LOADED', p_column_display_sequence=> 5, p_column_heading=> 'Rows Imported', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 236910524132041225 + wwv_flow_api.g_id_offset, p_region_id=> 236910023245041222 + 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=> 'ROWS_FAILED', p_column_display_sequence=> 6, p_column_heading=> 'Rows Failed', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 236916722090057358 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 2, p_plug_name=> 'menu', p_region_name=>'', p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 236911018188041226 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 2, p_button_sequence=> 10, p_button_plug_id => 236909231803041218+wwv_flow_api.g_id_offset, p_button_name => 'BACK', p_button_image_alt=> 'Back to Repository', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>236912309292041255 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 2, p_branch_action=> 'f?p=&FLOW_ID.:11:&SESSION.::&DEBUG.:::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_sequence=> 30, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 14-JUL-2004 18:04 by CBCHO'); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>236911408920041236 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 2, p_name=>'P2_LOAD_ID', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_use_cache_before_default=> 'YES', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_is_persistent=> 'Y', p_item_comment => ''); end; / begin --------------------------------------- -- ...updatable report columns for page 2 -- begin null; end; null; end; / --application/pages/page_00004 prompt ...PAGE 4: Unload -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 4, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Unload', p_step_title=> 'Unload', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 216950505720834051+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 7505408382227958+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125926', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>4,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 2219929417559213 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 4, p_plug_name=> 'Data Unload', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 2, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 75585889878824332 + wwv_flow_api.g_id_offset, p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_customized_name=>'Data unloading icons', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Extract data from database schemas online to files on your computer.'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 2225825431570758 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 4, p_plug_name=> 'menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin null; end; / begin null; end; / begin --------------------------------------- -- ...updatable report columns for page 4 -- begin null; end; null; end; / --application/pages/page_00007 prompt ...PAGE 7: Text Data Load Details -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 7, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Text Data Load Details', p_step_title=> 'Text Data Load Details', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 7505408382227958+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125926', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>7,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 3913203962745120 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 7, p_plug_name=> 'button bar', p_region_name=>'', p_plug_template=> 3918621721760114+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'N', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'select '''' || errm || '''' Error,'||chr(10)|| ' data Data'||chr(10)|| ' from wwv_flow_data_load_bad_log'||chr(10)|| ' where load_id = :F4300_P7_LOAD_ID'; wwv_flow_api.create_report_region ( p_id=> 55112340569377996 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 7, p_name=> 'Failed Rows', p_region_name=>'', p_template=> 101735615849237059+ wwv_flow_api.g_id_offset, p_display_sequence=> 30, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_translate_title=> 'Y', p_query_row_template=> 24534016112516813+ wwv_flow_api.g_id_offset, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> '(null)', p_query_break_cols=> '0', p_query_no_data_found=> 'No failed rows found.', p_query_num_rows_type=> 'ROW_RANGES', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_query_asc_image=> 'blue_arrow_down.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'blue_arrow_up.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 26396310164851868 + wwv_flow_api.g_id_offset, p_region_id=> 55112340569377996 + 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=> 'ERROR', p_column_display_sequence=> 1, p_column_heading=> 'Error', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 26396413604851868 + wwv_flow_api.g_id_offset, p_region_id=> 55112340569377996 + 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=> 'DATA', p_column_display_sequence=> 2, p_column_heading=> 'Data', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', p_default_sort_column_sequence=>0, p_disable_sort_column=>'Y', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', 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; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 75398916706711544 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 7, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select CREATED_ON Load_Date, CREATED_BY Loaded_By, DATA_SCHEMA Schema2, DATA_TABLE Table2, SUCCESS_ROWS Rows_Loaded, FAILED_ROWS Rows_Failed from wwv_flow_data_load_unload where id=:F4300_P7_LOAD_ID'; wwv_flow_api.create_report_region ( p_id=> 234740508574260035 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 7, p_name=> 'Overview', p_region_name=>'', p_template=> 101735615849237059+ wwv_flow_api.g_id_offset, p_display_sequence=> 25, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_plug_caching=> 'NOT_CACHED', p_header=> 'This page displays information about text data file import. If any rows failed while importing, this page displays an error message.
', p_customized=> '0', p_translate_title=> 'Y', p_query_row_template=> 3, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> ' - ', p_query_break_cols=> '0', p_query_no_data_found=> 'No data found.', p_query_num_rows_type=> '0', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_sort_null=> 'F', p_query_asc_image=> 'blue_arrow_down.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'blue_arrow_up.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234741120589260051 + wwv_flow_api.g_id_offset, p_region_id=> 234740508574260035 + 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=> 'LOAD_DATE', p_column_display_sequence=> 1, p_column_heading=> 'Import Date', p_column_format=> '&DATE_TIME_FORMAT.', 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=> 234741209381260051 + wwv_flow_api.g_id_offset, p_region_id=> 234740508574260035 + 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=> 'LOADED_BY', p_column_display_sequence=> 2, p_column_heading=> 'Imported By', 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=>'ESCAPE_SC', 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=> 234741308348260051 + wwv_flow_api.g_id_offset, p_region_id=> 234740508574260035 + 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=> 'SCHEMA2', p_column_display_sequence=> 3, p_column_heading=> 'Schema', 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=>'ESCAPE_SC', 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=> 234741425535260051 + wwv_flow_api.g_id_offset, p_region_id=> 234740508574260035 + 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=> 'TABLE2', p_column_display_sequence=> 4, p_column_heading=> 'Table', 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=>'ESCAPE_SC', 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=> 234741507868260052 + wwv_flow_api.g_id_offset, p_region_id=> 234740508574260035 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 5, p_form_element_id=> null, p_column_alias=> 'ROWS_LOADED', p_column_display_sequence=> 5, p_column_heading=> 'Rows Imported', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234741628809260052 + wwv_flow_api.g_id_offset, p_region_id=> 234740508574260035 + 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=> 'ROWS_FAILED', p_column_display_sequence=> 6, p_column_heading=> 'Rows Failed', 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_pk_col_source=> s, p_column_comment=>''); end; / begin wwv_flow_api.create_page_button( p_id => 192104604688817535 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 7, p_button_sequence=> 10, p_button_plug_id => 3913203962745120+wwv_flow_api.g_id_offset, p_button_name => 'BACK', p_button_image_alt=> 'Back to Repository', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>234998201152447134 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 7, p_branch_action=> 'f?p=&FLOW_ID.:8:&SESSION.::&DEBUG.:::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_sequence=> 30, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 14-JUL-2004 18:04 by CBCHO'); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>27172013799279694 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 7, p_name=>'F4300_P7_LOAD_ID', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_use_cache_before_default=> 'YES', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>234980910062392922 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 7, p_name=>'P7_PREV_PAGE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 3913203962745120+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> null, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'LEFT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_item_comment => ''); end; / begin --------------------------------------- -- ...updatable report columns for page 7 -- begin null; end; null; end; / --application/pages/page_00008 prompt ...PAGE 8: Text Data Load Repository -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_imprt_rep.htm'; ph := null; wwv_flow_api.create_page( p_id => 8, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Text Data Load Repository', p_step_title=> 'Text Data Load Repository', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 7505408382227958+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125929', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>8,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 3921012881766600 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 8, p_plug_name=> 'Button Bar', p_region_name=>'', p_plug_template=> 108205605860896611+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 5, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'N', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6836912352738319 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 8, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'declare'||chr(10)|| ' q varchar2(4000); '||chr(10)|| 'begin '||chr(10)|| ' q:= q || ''select '';'||chr(10)|| ' q:= q || '''''''''' cb,'';'||chr(10)|| ' q:= q || ''htf.anchor(''''f?p=4300:2:''||:flow_session||''::::P2_LOAD_ID:'''' || dat.id, '';'||chr(10)|| ' q:= q || '' htf.img (''''#IMAGE_PREFIX#24find.gif'''', NULL, NULL'; s:=s||', NULL,''''border="0" alt="''||wwv_flow_lang.system_message(''DETAILS_FOR_ALT_TAG'')||''" height="24" width="24"'''')) "Details",'';'||chr(10)|| ' q:= q || '' dat.created_by "Created By", '';'||chr(10)|| ' q:= q || '' dat.created_on "Created on", '';'||chr(10)|| ' q:= q || '' decode (data_type, ''''EXCEL IMPORT'''', wwv_flow_lang.system_message(''''F4300.SPREADSHEET_IMPORT'''')) "Type", '';'||chr(10)|| ' q:= q || ''data_Schema "Schema", '';'||chr(10)|| ''||chr(10)|| 'q := q||''data_table "Table'; s:=s||'", '';'||chr(10)|| ''||chr(10)|| ' q:= q || '' success_rows "Succeeded",'';'||chr(10)|| ' q:= q || '' decode(failed_rows,0,''''0'''',htf.anchor(''''f?p=4300:2:''||:flow_session||''::::P2_LOAD_ID:'''' || dat.id,'';'||chr(10)|| ' q:= q || '' failed_rows)) "Failed"'';'||chr(10)|| ' q:= q || '' from wwv_flow_data_load_unload dat, sys.dba_objects o ''; '||chr(10)|| ' q:= q || '' where o.owner = dat.data_schema '';'||chr(10)|| ' q:= q || '' and o.object_name = dat.data_table '';'||chr(10)|| ' q:= q || '' and o.object'; s:=s||'_type = ''''TABLE'''' '';'||chr(10)|| ' q:= q || '' and dat.security_group_id =:FLOW_SECURITY_GROUP_ID '';'||chr(10)|| ' q:= q || '' and data_type = ''''EXCEL IMPORT'''''';'||chr(10)|| ''||chr(10)|| ' if (:F4300_P8_RESTRICT_BY = ''MY'' or :F4300_P8_RESTRICT_BY is NULL) then'||chr(10)|| ' q:= q || '' and dat.created_by = :FLOW_USER '';'||chr(10)|| ' end if; '||chr(10)|| 'return q;'||chr(10)|| 'end;'; wwv_flow_api.create_report_region ( p_id=> 24539117171531389 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 8, p_name=> 'Spreadsheet Loads', p_region_name=>'', p_template=> 101735615849237059+ wwv_flow_api.g_id_offset, p_display_sequence=> 50, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'FUNCTION_RETURNING_SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_display_condition_type=> 'NEVER', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_translate_title=> 'Y', p_query_row_template=> 24534016112516813+ wwv_flow_api.g_id_offset, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> ' - ', p_query_break_cols=> '0', p_query_no_data_found=> 'No data found.', p_query_num_rows_type=> 'ROW_RANGES', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_query_asc_image=> 'arrow_down_gray_dark.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'arrow_up_gray_dark.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 24539318125531393 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389 + 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=> 'CB', p_column_display_sequence=> 1, p_column_heading=> ' ', 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=> 'Y', 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=> 24539430463531393 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389 + 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=> 'Details', p_column_display_sequence=> 2, p_column_heading=> 'Details', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 24539527121531393 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389 + 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=> 'Created By', p_column_display_sequence=> 3, p_column_heading=> 'Imported By', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', 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=> 24539629611531393 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389 + 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=> 'Created on', p_column_display_sequence=> 4, p_column_heading=> 'Imported On', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>1, p_default_sort_dir=>'desc', p_disable_sort_column=>'N', 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=> 24539722210531394 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 5, p_form_element_id=> null, p_column_alias=> 'Type', p_column_display_sequence=> 5, p_column_heading=> 'Type', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 24539810609531394 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389 + 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=> 'Schema', p_column_display_sequence=> 6, p_column_heading=> 'Schema', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', 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=> 24539901035531394 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389 + 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=> 'Table', p_column_display_sequence=> 7, p_column_heading=> 'Table', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', 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=> 24540002599531394 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 8, p_form_element_id=> null, p_column_alias=> 'Succeeded', p_column_display_sequence=> 8, p_column_heading=> 'Succeeded', p_column_alignment=>'RIGHT', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 24540122211531394 + wwv_flow_api.g_id_offset, p_region_id=> 24539117171531389 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 9, p_form_element_id=> null, p_column_alias=> 'Failed', p_column_display_sequence=> 9, p_column_heading=> 'Failed', p_column_alignment=>'RIGHT', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'This page displays the status of loaded Text data.
'||chr(10)|| 'To access the loaded file, select the file name.
'||chr(10)|| 'To remove a status entry, select it and click Delete Checked.
'; wwv_flow_api.create_page_plug ( p_id=> 220725321769721592 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 8, p_plug_name=> 'Repository', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 60, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'3648913903408259'; wwv_flow_api.create_page_plug ( p_id=> 220741417024852608 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 8, p_plug_name=> 'Tasks', p_region_name=>'', p_plug_template=> 3477413584526840+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 70, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 3648913903408259 + wwv_flow_api.g_id_offset, p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'declare'||chr(10)|| ' q varchar2(4000);'||chr(10)|| 'begin'||chr(10)|| ' q := ''select '';'||chr(10)|| ' q:= q || '''''''''' cb,'';'||chr(10)|| ' q:= q || ''htf.anchor(''''f?p=4300:7:''||:flow_session||''::::F4300_P7_LOAD_ID:'''' || dat.id, '';'||chr(10)|| ' q:= q || '' htf.img (''''#IMAGE_PREFIX#24find.gif'''', NULL, NULL, NULL,''''border="0" al'; s:=s||'t="''||wwv_flow_lang.system_message(''F4500.FIND'')||''" height="24" width="24"'''')) "Details",'';'||chr(10)|| ' q:= q || '' htf.anchor (''''wwv_flow_file_mgr.get_file?p_id='''' || to_char(f.id), f.filename) "File", '';'||chr(10)|| ' q:= q || '' dat.created_by "Created By", '';'||chr(10)|| ' q:= q || '' dat.created_on "Created on", '';'||chr(10)|| ' q:= q || '' decode(data_type,''''ASCII IMPORT'''',wwv_flow_lang.system_message(''''F4300_TEXT_IMPORT'''')) "Type", '';'||chr(10)|| ' '; s:=s||'q:= q || ''data_Schema "Schema", '';'||chr(10)|| ' q:= q || ''data_table "Table", '';'||chr(10)|| ' q:= q || '' nvl(dbms_lob.getlength (f.blob_content),0) "Bytes",'';'||chr(10)|| ' q:= q || '' success_rows "Succeeded",''; '||chr(10)|| ' q:= q || '' decode(failed_rows,0,''''0'''',htf.anchor(''''f?p=4300:7:''||:flow_session||''::::F4300_P7_LOAD_ID:'''' || dat.id,'';'||chr(10)|| ' q:= q || '' failed_rows)) "Failed"'';'||chr(10)|| ' q:= q || '' from wwv_flow_file_objects$ f, wwv_flow_data_'; s:=s||'load_unload dat '';'||chr(10)|| ' q:= q || '' where f.id=dat.data_id'' ;'||chr(10)|| ' q:= q || '' and dat.security_group_id =:FLOW_SECURITY_GROUP_ID '';'||chr(10)|| ''||chr(10)|| ' if (:F4300_P8_RESTRICT_BY = ''MY'' or :F4300_P8_RESTRICT_BY is NULL) then'||chr(10)|| ' q:= q || '' and dat.created_by = :FLOW_USER '';'||chr(10)|| ' end if; '||chr(10)|| 'return q;'||chr(10)|| 'end;'; wwv_flow_api.create_report_region ( p_id=> 234960616202337996 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 8, p_name=> 'Repository', p_region_name=>'', p_template=> 101735615849237059+ wwv_flow_api.g_id_offset, p_display_sequence=> 40, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'FUNCTION_RETURNING_SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_translate_title=> 'Y', p_query_row_template=> 24534016112516813+ wwv_flow_api.g_id_offset, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> ' - ', p_query_break_cols=> '0', p_query_no_data_found=> 'No files found', p_query_num_rows_type=> 'ROW_RANGES', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_query_asc_image=> 'arrow_down_gray_dark.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'arrow_up_gray_dark.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234961216430338008 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996 + 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=> 'CB', p_column_display_sequence=> 1, p_column_heading=> ' ', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234961308847338008 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996 + 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=> 'Details', p_column_display_sequence=> 2, p_column_heading=> 'Details', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234961403149338008 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996 + 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=> 'File', p_column_display_sequence=> 3, p_column_heading=> 'File', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234961531529338008 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996 + 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=> 'Created By', p_column_display_sequence=> 4, p_column_heading=> 'Imported By', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', 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=> 234961610894338008 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 5, p_form_element_id=> null, p_column_alias=> 'Created on', p_column_display_sequence=> 5, p_column_heading=> 'Imported On', p_column_format=> 'SINCE', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>1, p_default_sort_dir=>'desc', p_disable_sort_column=>'N', 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=> 234961731890338010 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996 + 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=> 'Type', p_column_display_sequence=> 6, p_column_heading=> 'Type', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234961804936338010 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996 + 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=> 'Schema', p_column_display_sequence=> 7, p_column_heading=> 'Schema', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', 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=> 234961924524338011 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 8, p_form_element_id=> null, p_column_alias=> 'Table', p_column_display_sequence=> 8, p_column_heading=> 'Table', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', p_sum_column=> 'N', p_hidden_column=> 'N', p_display_as=>'ESCAPE_SC', 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=> 234962026814338011 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 9, p_form_element_id=> null, p_column_alias=> 'Bytes', p_column_display_sequence=> 9, p_column_heading=> 'Bytes', p_column_format=> '999G999G999G999G990', p_column_alignment=>'RIGHT', 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=> 234962102068338011 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 10, p_form_element_id=> null, p_column_alias=> 'Succeeded', p_column_display_sequence=> 10, p_column_heading=> 'Succeeded', p_column_alignment=>'RIGHT', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234962213306338011 + wwv_flow_api.g_id_offset, p_region_id=> 234960616202337996 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 11, p_form_element_id=> null, p_column_alias=> 'Failed', p_column_display_sequence=> 11, p_column_heading=> 'Failed', p_column_alignment=>'RIGHT', 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_pk_col_source=> s, p_column_comment=>''); end; / begin wwv_flow_api.create_page_button( p_id => 130487609243007078 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 8, p_button_sequence=> 30, p_button_plug_id => 3921012881766600+wwv_flow_api.g_id_offset, p_button_name => 'Delete', p_button_image_alt=> 'Delete Checked', p_button_position=> 'REGION_TEMPLATE_DELETE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_condition=> 'select 1'||chr(10)|| 'from wwv_flow_file_objects$ f, wwv_flow_data_load_unload dat'||chr(10)|| 'where f.id=dat.data_id'||chr(10)|| 'and dat.security_group_id =:FLOW_SECURITY_GROUP_ID', p_button_condition_type=> 'EXISTS', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>130488219172007162 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 8, p_branch_action=> '8', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>51804488943808398 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 8, p_name=>'F4300_P8_GO', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 3921012881766600+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default => 'GO', p_prompt=>'Go', p_source=>'GO', p_source_type=> 'STATIC', p_display_as=> 'BUTTON', p_lov_columns=> null, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'LEFT', p_field_alignment => 'LEFT', p_is_persistent=> 'N', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Specify to show your files or all files'; wwv_flow_api.create_page_item( p_id=>51821394189864043 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 8, p_name=>'F4300_P8_RESTRICT_BY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 3921012881766600+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Show', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_named_lov=> 'RESTRICT.LOAD.FILES', p_lov => '.'||to_char(87918702852509211 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 346584010124457412+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 165133620695131261 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 8, p_validation_name => 'SelectAtLeastOne', p_validation_sequence=> 10, p_validation => 'wwv_flow.g_f01.count > 0', p_validation_type => 'PLSQL_EXPRESSION', p_error_message => 'Must select at least one file to delete.', p_when_button_pressed=> 130487609243007078 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'reset_pagination'; wwv_flow_api.create_page_process( p_id => 51823819555198806 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 8, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'RESET_PAGINATION', p_process_name=> 'rest pagination', p_process_sql_clob => p, p_process_error_message=> '', p_process_when=>'GO', p_process_when_type=>'REQUEST_EQUALS_CONDITION', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' delete from wwv_flow_file_objects$'||chr(10)|| ' where id = wwv_flow.g_f01(i)'||chr(10)|| ' and security_group_id = :flow_security_group_id;'||chr(10)|| ''||chr(10)|| ' delete from wwv_flow_data_load_unload'||chr(10)|| ' where data_id = wwv_flow.g_f01(i)'||chr(10)|| ' and security_group_id = :flow_security_group_id;'||chr(10)|| 'end loop;'; wwv_flow_api.create_page_process( p_id => 130807727310131197 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 8, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'delete file', p_process_sql_clob => p, p_process_error_message=> 'Error deleting file(s).', p_process_when_button_id=>130487609243007078 + wwv_flow_api.g_id_offset, p_process_when=>'wwv_flow.g_f01.count > 0', p_process_when_type=>'PLSQL_EXPRESSION', p_process_success_message=> 'File(s) deleted.', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 8 -- begin null; end; null; end; / --application/pages/page_00009 prompt ...PAGE 9: Load -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_imprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 9, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load', p_step_title=> 'Load', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 216950505720834051+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 7505408382227958+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125928', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>9,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6680925060642280 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 9, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 51830015797676143 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 9, p_plug_name=> 'Data Load', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 74707671328250039 + wwv_flow_api.g_id_offset, p_translate_title=> 'Y', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_customized_name=>'Data Loading Icons', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Load data from your computer from various file formats into your online database.'); end; / begin null; end; / begin null; end; / begin --------------------------------------- -- ...updatable report columns for page 9 -- begin null; end; null; end; / --application/pages/page_00011 prompt ...PAGE 11: Spreadsheet Repository -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 11, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Spreadsheet Repository', p_step_title=> 'Spreadsheet Repository', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 7505408382227958+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125926', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>11,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'3648913903408259'; wwv_flow_api.create_page_plug ( p_id=> 3655019491438205 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 11, p_plug_name=> 'Tasks', p_region_name=>'', p_plug_template=> 3477413584526840+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 3648913903408259 + wwv_flow_api.g_id_offset, p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 3925626518780012 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 11, p_plug_name=> 'button bar', p_region_name=>'', p_plug_template=> 108205605860896611+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 5, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'N', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 9390411712273861 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 11, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'This page displays the status of imported Spreadsheet data.
'||chr(10)|| 'To remove a status entry, select it and click Delete Checked.
'; wwv_flow_api.create_page_plug ( p_id=> 114705422835023938 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 11, p_plug_name=> 'Spreadsheet Repository', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'declare'||chr(10)|| ' q varchar2(4000); '||chr(10)|| 'begin '||chr(10)|| ' q:= q || ''select '';'||chr(10)|| ' q:= q || '''''''''' cb,'';'||chr(10)|| ' q:= q || ''htf.anchor(''''f?p=4300:2:''||:flow_session||''::::P2_LOAD_ID:'''' || dat.id, '';'||chr(10)|| ' q:= q || '' htf.img (''''#IMAGE_PREFIX#24find.gif'''', NULL, NULL'; s:=s||', NULL,''''border="0" alt="''||wwv_flow_lang.system_message(''DETAILS_FOR_ALT_TAG'')||''" title="''||wwv_flow_lang.system_message(''DETAILS_FOR_ALT_TAG'')||''" height="24" width="24"'''')) "Details",'';'||chr(10)|| ' q:= q || '' dat.created_by "Created By", '';'||chr(10)|| ' q:= q || '' dat.created_on "Created on", '';'||chr(10)|| ' q:= q || '' decode (data_type, ''''EXCEL IMPORT'''', wwv_flow_lang.system_message(''''F4300.SPREADSHEET_IMPORT'''')) "Type", '''; s:=s||';'||chr(10)|| ' q:= q || ''data_Schema "Schema", '';'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' q:= q || ''data_table "TABLE", ''; '||chr(10)|| ' q:= q || '' success_rows "Succeeded",'';'||chr(10)|| ' q:= q || '' decode(failed_rows,0,''''0'''',htf.anchor(''''f?p=4300:2:''||:flow_session||''::::P2_LOAD_ID:'''' || dat.id,'';'||chr(10)|| ' q:= q || '' failed_rows)) "Failed", '';'||chr(10)|| ' q:= q || '' o.object_id object_id, o.owner object_owner '';'||chr(10)|| ' q:= q || '' from wwv_flow_data_load_unload dat, sys.dba_object'; s:=s||'s o ''; '||chr(10)|| ' q:= q || '' where o.owner = dat.data_schema '';'||chr(10)|| ' q:= q || '' and o.object_name = dat.data_table '';'||chr(10)|| ' q:= q || '' and o.object_type = ''''TABLE'''' '';'||chr(10)|| ' q:= q || '' and dat.security_group_id =:FLOW_SECURITY_GROUP_ID '';'||chr(10)|| ' q:= q || '' and data_type = ''''EXCEL IMPORT'''''';'||chr(10)|| ''||chr(10)|| ' if (:F4300_P11_RESTRICT_BY = ''MY'' or :F4300_P11_RESTRICT_BY is NULL) then'||chr(10)|| ' q:= q || '' and dat.created_by = :FLOW_USER '';'||chr(10)|| ' '; s:=s||' end if; '||chr(10)|| 'return q;'||chr(10)|| 'end;'; wwv_flow_api.create_report_region ( p_id=> 234717428566209000 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 11, p_name=> 'Loads', p_region_name=>'', p_template=> 0+ wwv_flow_api.g_id_offset, p_display_sequence=> 40, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'FUNCTION_RETURNING_SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_translate_title=> 'Y', p_query_row_template=> 10583525904875984+ wwv_flow_api.g_id_offset, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '15', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> ' - ', p_query_break_cols=> '0', p_query_no_data_found=> 'No data found.', p_query_num_rows_type=> 'ROW_RANGES', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_csv_output=> 'N', p_query_asc_image=> 'arrow_down_gray_dark.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'arrow_up_gray_dark.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234718032272209012 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000 + 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=> 'CB', p_column_display_sequence=> 1, p_column_heading=> ' ', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234718112718209012 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000 + 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=> 'Details', p_column_display_sequence=> 2, p_column_heading=> 'Details', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234718206872209012 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000 + 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=> 'Created By', p_column_display_sequence=> 3, p_column_heading=> 'Imported By', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', 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=> 234718310926209013 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000 + 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=> 'Created on', p_column_display_sequence=> 4, p_column_heading=> 'Imported On', p_column_format=> 'SINCE', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>1, p_default_sort_dir=>'desc', p_disable_sort_column=>'N', 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=> 234718429023209013 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 5, p_form_element_id=> null, p_column_alias=> 'Type', p_column_display_sequence=> 5, p_column_heading=> 'Type', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 234718526244209013 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000 + 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=> 'Schema', p_column_display_sequence=> 6, p_column_heading=> 'Schema', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', 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=> 234718631100209013 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000 + 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=> 'TABLE', p_column_display_sequence=> 7, p_column_heading=> 'Table', p_column_link=>'f?p=4500:1001:&SESSION.:FOCUS:::OB_OBJECT_ID,OB_CURRENT_TYPE,OB_SCHEMA:#OBJECT_ID#,TABLE,#OBJECT_OWNER#', p_column_linktext=>'#TABLE#', p_column_alignment=>'LEFT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', 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=> 234718712148209013 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 8, p_form_element_id=> null, p_column_alias=> 'Succeeded', p_column_display_sequence=> 8, p_column_heading=> 'Succeeded', p_column_alignment=>'RIGHT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', 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=> 234718804458209013 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 9, p_form_element_id=> null, p_column_alias=> 'Failed', p_column_display_sequence=> 9, p_column_heading=> 'Failed', p_column_alignment=>'RIGHT', p_heading_alignment=>'CENTER', p_default_sort_column_sequence=>0, p_disable_sort_column=>'N', 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=> 268495509916252852 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 10, p_form_element_id=> null, p_column_alias=> 'OBJECT_ID', p_column_display_sequence=> 10, p_column_heading=> 'Object', 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=> 'Y', 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=> 268502322084284781 + wwv_flow_api.g_id_offset, p_region_id=> 234717428566209000 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_query_column_id=> 11, p_form_element_id=> null, p_column_alias=> 'OBJECT_OWNER', p_column_display_sequence=> 11, p_column_heading=> 'Object Owner', 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=> 'Y', p_display_as=>'WITHOUT_MODIFICATION', p_pk_col_source=> s, p_column_comment=>''); end; / begin wwv_flow_api.create_page_button( p_id => 192155317097767347 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 11, p_button_sequence=> 10, p_button_plug_id => 3925626518780012+wwv_flow_api.g_id_offset, p_button_name => 'DELETE', p_button_image_alt=> 'Delete Checked', p_button_position=> 'REGION_TEMPLATE_DELETE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_condition=> 'select 1'||chr(10)|| 'from wwv_flow_data_load_unload dat, sys.dba_objects o '||chr(10)|| 'where o.owner = dat.data_schema'||chr(10)|| 'and o.object_name = dat.data_table'||chr(10)|| 'and o.object_type = ''TABLE'''||chr(10)|| 'and dat.security_group_id =:FLOW_SECURITY_GROUP_ID'||chr(10)|| 'and data_type = ''EXCEL IMPORT''', p_button_condition_type=> 'EXISTS', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>114703320184023921 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 11, p_branch_action=> '11', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>114704228365023929 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 11, p_name=>'F4300_P11_GO', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 3925626518780012+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default => 'GO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Go', p_source=>'GO', p_source_type=> 'STATIC', p_display_as=> 'BUTTON', p_lov_columns=> null, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'LEFT', p_field_alignment => 'LEFT', p_is_persistent=> 'N', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Specify to show your Spreadsheet import or all Spreadsheet imports.'; wwv_flow_api.create_page_item( p_id=>114704528502023930 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 11, p_name=>'F4300_P11_RESTRICT_BY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 3925626518780012+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Show', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_named_lov=> 'RESTRICT.LOAD.FILES', p_lov => '.'||to_char(87918702852509211 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 346584010124457412+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 165128603595116797 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 11, p_validation_name => 'SelectAtLeastOne', p_validation_sequence=> 10, p_validation => 'wwv_flow.g_f01.count > 0', p_validation_type => 'PLSQL_EXPRESSION', p_error_message => 'Must select at least one file to delete.', p_when_button_pressed=> 192155317097767347 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'reset_pagination'; wwv_flow_api.create_page_process( p_id => 114704811615023932 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 11, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'RESET_PAGINATION', p_process_name=> 'rest pagination', p_process_sql_clob => p, p_process_error_message=> '', p_process_when=>'GO', p_process_when_type=>'REQUEST_EQUALS_CONDITION', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'forall i in 1..wwv_flow.g_f01.count'||chr(10)|| ' delete from wwv_flow_data_load_unload'||chr(10)|| ' where id = wwv_flow.g_f01(i)'||chr(10)|| ' and security_group_id = :flow_security_group_id;'||chr(10)|| 'commit;'; wwv_flow_api.create_page_process( p_id => 192159607728774014 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 11, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'delete load_unload detail', p_process_sql_clob => p, p_process_error_message=> 'Error deleting.', p_process_when_button_id=>192155317097767347 + wwv_flow_api.g_id_offset, p_process_success_message=> 'Spreadsheet data load detail(s) deleted.', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 11 -- begin null; end; null; end; / --application/pages/page_00014 prompt ...PAGE 14: Load XML Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_imprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 14, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load XML Data', p_step_title=> 'Load XML Data', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731303316584395+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125928', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>14,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6686730517662783 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 14, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 184012102771654838 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 14, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 184273927814400294 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 184012414812654843 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 14, p_plug_name=> 'Load XML Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select the database schema that owns the table you would like load data into.
'; wwv_flow_api.create_page_plug ( p_id=> 220809403283406944 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 14, p_plug_name=> 'Load XML Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:18'); end; / begin wwv_flow_api.create_page_button( p_id => 184013324637654861 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 14, p_button_sequence=> 10, p_button_plug_id => 184012414812654843+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 184013029848654860 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 14, p_button_sequence=> 20, p_button_plug_id => 184012414812654843+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>184013925361654916 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 14, p_branch_action=> '16', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>184013029848654860+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Select the database schema that owns the table you would like load data into.'; wwv_flow_api.create_page_item( p_id=>184013614902654876 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 14, p_name=>'F4300_P14_TARGET_SCHEMA', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 184012414812654843+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'LIST_SCHEMA_OWNERS', p_lov => 'select htf.escape_sc(c.schema) d, c.schema v'||chr(10)|| 'from wwv_flow_company_schemas c,'||chr(10)|| ' wwv_flow_fnd_user u'||chr(10)|| 'where c.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.user_name = :flow_user and'||chr(10)|| ' (u.ALLOW_ACCESS_TO_SCHEMAS is null or'||chr(10)|| ' instr('':''||u.ALLOW_ACCESS_TO_SCHEMAS||'':'','':''||c.schema||'':'')>0)'||chr(10)|| 'order by 1'||chr(10)|| '', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- Select Schema - ', p_lov_null_value=> '', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 184014831290654966 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 14, p_computation_sequence => 10, p_computation_item=> 'F4300_LAST_VIEW', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'STATIC_ASSIGNMENT', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> '14', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 184015120393654977 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 14, p_validation_name => 'owner req', p_validation_sequence=> 10, p_validation => 'F4300_P14_TARGET_SCHEMA', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Schema owner must be specified.', p_associated_item=> 184013614902654876 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin --------------------------------------- -- ...updatable report columns for page 14 -- begin null; end; null; end; / --application/pages/page_00016 prompt ...PAGE 16: Load XML Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 16, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load XML Data', p_step_title=> 'Load XML Data', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731303316584395+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'SSPADAFO', p_last_upd_yyyymmddhh24miss => '20081110150351', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>16,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 75401014067720212 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 16, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 184017914613657018 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 16, p_plug_name=> 'Load XML Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 184019711689657038 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 16, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 184273927814400294 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select the database table you would like load data into.
'; wwv_flow_api.create_page_plug ( p_id=> 220811421637412285 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 16, p_plug_name=> 'Load XML Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 184018802177657027 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 16, p_button_sequence=> 10, p_button_plug_id => 184017914613657018+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 184018530878657026 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 16, p_button_sequence=> 10, p_button_plug_id => 184017914613657018+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 184018203910657023 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 16, p_button_sequence=> 1, p_button_plug_id => 184017914613657018+wwv_flow_api.g_id_offset, p_button_name => 'PREV', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>184020011177657040 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 16, p_branch_action=> '17', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>184020313577657044 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 16, p_branch_action=> '14', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>184018203910657023+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 06-MAR-2001 16:15 by FLOWS'); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>77511523486965113 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 16, p_name=>'P16_CASE_SENSITIVE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 184017914613657018+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'CASE.SENSITIVE.Y', p_lov => '.'||to_char(87923517360560740 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Select the database table you would like load data into. By default, all table names are converted to upper case. Select Preserve Case override this default behavior.'; wwv_flow_api.create_page_item( p_id=>184019113402657028 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 16, p_name=>'F4300_P16_TARGET_TABLE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 184017914613657018+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Table', p_source_type=> 'STATIC', p_display_as=> 'POPUP', p_named_lov=> 'P16_TABLES', p_lov => 'select table_name a, table_name b'||chr(10)|| 'from sys.dba_tables'||chr(10)|| 'where owner=:F4300_P14_TARGET_SCHEMA'||chr(10)|| 'and table_name not like ''BIN$%'''||chr(10)|| 'order by 1', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Name of the schema to choose a table from'; wwv_flow_api.create_page_item( p_id=>184968013620011483 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 16, p_name=>'F4300_P16_SCHEMA', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 5, p_item_plug_id => 184017914613657018+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema:', p_source=>'F4300_P14_TARGET_SCHEMA', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 77516011281980481 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 16, p_computation_sequence => 10, p_computation_item=> 'F4300_P16_TARGET_TABLE', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'upper(:F4300_P16_TARGET_TABLE)', p_compute_when => 'P16_CASE_SENSITIVE', p_compute_when_type=>'ITEM_IS_NULL'); null; end; / begin wwv_flow_api.create_page_validation( p_id => 77513614613972038 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 16, p_validation_name => 'table exists', p_validation_sequence=> 10, p_validation => 'select 1'||chr(10)|| 'from sys.dba_objects'||chr(10)|| 'where owner = :F4300_P14_TARGET_SCHEMA'||chr(10)|| 'and object_name = :F4300_P16_TARGET_TABLE'||chr(10)|| 'and object_type in (''TABLE'')', p_validation_type => 'EXISTS', p_error_message => 'Table does not exist.', p_validation_condition=> 'F4300_P16_TARGET_TABLE', p_validation_condition_type=> 'ITEM_IS_NOT_NULL', p_when_button_pressed=> 184018530878657026 + wwv_flow_api.g_id_offset, p_associated_item=> 184019113402657028 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 184020605388657045 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 16, p_validation_name => 'table required', p_validation_sequence=> 10, p_validation => 'F4300_P16_TARGET_TABLE', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Table must be specified.', p_associated_item=> 184019113402657028 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P14_TARGET_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 69930004303898689 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 16, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> 'Invalid Schema', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 16 -- begin null; end; null; end; / --application/pages/page_00017 prompt ...PAGE 17: Load XML Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 17, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load XML Data', p_step_title=> 'Load XML Data', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731303316584395+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125926', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>17,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 75402620647722110 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 17, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 184023412772659950 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 17, p_plug_name=> 'Load XML Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 184025503752659961 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 17, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 184273927814400294 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Locate the XML document to be uploaded.
'||chr(10)|| ''; wwv_flow_api.create_page_plug ( p_id=> 220812507916417794 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 17, p_plug_name=> 'Load XML Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:17'); end; / begin wwv_flow_api.create_page_button( p_id => 184024300234659954 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 17, p_button_sequence=> 10, p_button_plug_id => 184023412772659950+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 184024014061659952 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 17, p_button_sequence=> 10, p_button_plug_id => 184023412772659950+wwv_flow_api.g_id_offset, p_button_name => 'LOAD', p_button_image_alt=> 'Load Data', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 184023723336659951 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 17, p_button_sequence=> 1, p_button_plug_id => 184023412772659950+wwv_flow_api.g_id_offset, p_button_name => 'PREV', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>184025801444659963 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 17, p_branch_action=> '9', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>184024014061659952+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>184026128584659964 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 17, p_branch_action=> '16', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>184023723336659951+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 06-MAR-2001 16:15 by FLOWS'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Click Browse to locate the XML file you wish to upload.'; wwv_flow_api.create_page_item( p_id=>184024932604659957 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 17, p_name=>'F4300_P17_FILE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 184023412772659950+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'File', p_source_type=> 'STATIC', p_display_as=> 'FILE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 60, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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=>':F4300_P17_FILE is NULL', p_display_when_type=>'FLOW_ITEM_IS_NULL', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Name of the schema for the table'; wwv_flow_api.create_page_item( p_id=>184976328920019627 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 17, p_name=>'F4300_P17_SCHEMA', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 184023412772659950+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema:', p_source=>'F4300_P14_TARGET_SCHEMA', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Name of the table to upload data into'; wwv_flow_api.create_page_item( p_id=>184979620725023347 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 17, p_name=>'F4300_P17_TABLE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 184023412772659950+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Table Name:', p_source=>'F4300_P16_TARGET_TABLE', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 184026427466659965 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 17, p_validation_name => 'file required', p_validation_sequence=> 10, p_validation => 'F4300_P17_FILE', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'File name must be specified.', p_associated_item=> 184024932604659957 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 288726628477940731 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 17, p_validation_name => 'file not 0 byte', p_validation_sequence=> 20, p_validation => 'declare'||chr(10)|| ' l_doc_size number := 0;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select doc_size '||chr(10)|| ' from wwv_flow_file_objects$'||chr(10)|| ' where name = :F4300_P17_FILE)'||chr(10)|| ' loop'||chr(10)|| ' l_doc_size := c1.doc_size;'||chr(10)|| ' end loop;'||chr(10)|| ' if l_doc_size = 0 then'||chr(10)|| ' return false;'||chr(10)|| ' end if;'||chr(10)|| ' return true;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'The uploaded file is invalid or does not have any content. Please upload the valid file.', p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare'||chr(10)|| ' l_blob blob;'||chr(10)|| ' l_clob clob;'||chr(10)|| ' l_sql varchar2(32767) := null;'||chr(10)|| ' n wwv_flow_global.vc_arr2;'||chr(10)|| ' r wwv_flow_global.vc_arr2;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select blob_content'||chr(10)|| ' from wwv_flow_file_objects$'||chr(10)|| ' where name = :F4300_P17_FILE) loop'||chr(10)|| ' l_blob := c1.blob_content;'||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ' declare'||chr(10)|| ' l_dest_offset number := 1;'||chr(10)|| ' l_src_offset number := 1;'||chr(10)|| ' l_lang_'; p:=p||'context number := dbms_lob.default_lang_ctx;'||chr(10)|| ' l_warning number;'||chr(10)|| ' begin '||chr(10)|| ' dbms_lob.createtemporary ( l_clob, FALSE, dbms_lob.SESSION );'||chr(10)|| ' dbms_lob.open( l_blob, dbms_lob.lob_readonly );'||chr(10)|| ''||chr(10)|| ' dbms_lob.convertToCLOB('||chr(10)|| ' dest_lob => l_clob,'||chr(10)|| ' src_blob => l_blob,'||chr(10)|| ' amount => dbms_lob.lobmaxsize,'||chr(10)|| ' dest_offset => l_dest_offset,'||chr(10)|| ' src_offs'; p:=p||'et => l_src_offset,'||chr(10)|| ' blob_csid => nls_charset_id(''AL32UTF8''),'||chr(10)|| ' lang_context => l_lang_context,'||chr(10)|| ' warning => l_warning );'||chr(10)|| ''||chr(10)|| ' dbms_lob.close( l_blob );'||chr(10)|| ' end;'||chr(10)|| ''||chr(10)|| ' wwv_flow_utilities.g_xml_clob := l_clob;'||chr(10)|| ' '||chr(10)|| ' l_sql := ''declare '';'||chr(10)|| ' l_sql := l_sql||''insCtx DBMS_XMLSave.ctxType; '';'||chr(10)|| ' l_sql := l_sql||''rows number; '';'||chr(10)|| ' l_sql := l_sql||''begin '';'||chr(10)|| ' l_sql := l_sql||''insCt'; p:=p||'x := DBMS_XMLSave.newContext(''''''||:F4300_P14_TARGET_SCHEMA;'||chr(10)|| ' l_sql := l_sql||''.''||:F4300_P16_TARGET_TABLE||''''''); '';'||chr(10)|| ' l_sql := l_sql||''DBMS_XMLSave.setDateFormat(insCtx,''''yyyy-MM-dd''''''''T''''''''HH:mm:ss.SSS''''); ''; '||chr(10)|| ' l_sql := l_sql||''rows := DBMS_XMLSave.insertXML(insCtx,wwv_flow_utilities.g_xml_clob); '';'||chr(10)|| ' l_sql := l_sql||''DBMS_XMLSave.closeContext(insCtx); '';'||chr(10)|| ' l_sql := l_sql||''end;'';'||chr(10)|| ' '||chr(10)|| ' wwv_flo'; p:=p||'w_f4000_util.run_block'||chr(10)|| ' ( p_sql => l_sql,'||chr(10)|| ' p_user => :F4300_P14_TARGET_SCHEMA);'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 7873510163151423 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 17, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'create_load_xml', p_process_sql_clob => p, p_process_error_message=> 'Error loading XML.', p_process_when_button_id=>184024014061659952 + wwv_flow_api.g_id_offset, p_process_when=>'not wwv_flow_utilities.db_version_is_at_least(''10.1'')', p_process_when_type=>'PLSQL_EXPRESSION', p_process_success_message=> 'XML loaded.', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare'||chr(10)|| ' l_blob blob;'||chr(10)|| ' l_clob clob;'||chr(10)|| ' l_sql varchar2(32767) := null;'||chr(10)|| ' n wwv_flow_global.vc_arr2;'||chr(10)|| ' r wwv_flow_global.vc_arr2;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select blob_content'||chr(10)|| ' from wwv_flow_file_objects$'||chr(10)|| ' where name = :F4300_P17_FILE) loop'||chr(10)|| ' l_blob := c1.blob_content;'||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ' declare'||chr(10)|| ' l_dest_offset number := 1;'||chr(10)|| ' l_src_offset number := 1;'||chr(10)|| ' l_lang_'; p:=p||'context number := dbms_lob.default_lang_ctx;'||chr(10)|| ' l_warning number;'||chr(10)|| ' begin '||chr(10)|| ' dbms_lob.createtemporary ( l_clob, FALSE, dbms_lob.SESSION );'||chr(10)|| ' dbms_lob.open( l_blob, dbms_lob.lob_readonly );'||chr(10)|| ''||chr(10)|| ' dbms_lob.convertToCLOB('||chr(10)|| ' dest_lob => l_clob,'||chr(10)|| ' src_blob => l_blob,'||chr(10)|| ' amount => dbms_lob.lobmaxsize,'||chr(10)|| ' dest_offset => l_dest_offset,'||chr(10)|| ' src_offs'; p:=p||'et => l_src_offset,'||chr(10)|| ' blob_csid => nls_charset_id(''AL32UTF8''),'||chr(10)|| ' lang_context => l_lang_context,'||chr(10)|| ' warning => l_warning );'||chr(10)|| ''||chr(10)|| ' dbms_lob.close( l_blob );'||chr(10)|| ' end;'||chr(10)|| ''||chr(10)|| ' wwv_flow_utilities.g_xml_clob := l_clob;'||chr(10)|| ' '||chr(10)|| ' l_sql := ''declare '';'||chr(10)|| ' l_sql := l_sql||''insCtx dbms_xmlstore.ctxType; '';'||chr(10)|| ' l_sql := l_sql||''rows number; '';'||chr(10)|| ' l_sql := l_sql||''l_nls_date_format varchar2('; p:=p||'255) := null; '';'||chr(10)|| ' l_sql := l_sql||''l_nls_timestamp_format varchar2(255) := null; '';'||chr(10)|| ' l_sql := l_sql||''c_nls_date_format varchar2(255) := ''''rrrr-MM-dd"T"HH24:mi:ss."000"''''; ''; '||chr(10)|| ' l_sql := l_sql||''c_nls_timestamp_format varchar2(255) := ''''rrrr-MM-dd"T"HH24:mi:ss.FF3''''; ''; '||chr(10)|| ' l_sql := l_sql||''begin '';'||chr(10)|| ' l_sql := l_sql||''for c1 in (select parameter, value '';'||chr(10)|| ' l_sql := l_sql||'' from'; p:=p||' nls_session_parameters '';'||chr(10)|| ' l_sql := l_sql||'' where PARAMETER in (''''NLS_DATE_FORMAT'''',''''NLS_TIMESTAMP_FORMAT'''')) loop '';'||chr(10)|| ' l_sql := l_sql||'' if c1.parameter = ''''NLS_DATE_FORMAT'''' then '';'||chr(10)|| ' l_sql := l_sql||'' l_nls_date_format := c1.value; '';'||chr(10)|| ' l_sql := l_sql||'' elsif c1.parameter = ''''NLS_TIMESTAMP_FORMAT'''' then '';'||chr(10)|| ' l_sql := l_sql||'' l_nls_timestamp_format := c1.value; '';'||chr(10)|| ' l_sql'; p:=p||' := l_sql||'' end if; '';'||chr(10)|| ' l_sql := l_sql||''end loop; '';'||chr(10)|| ' l_sql := l_sql||''dbms_session.set_nls(''''NLS_DATE_FORMAT'''',''''''''''''''''||c_nls_date_format||''''''''''''''''); '';'||chr(10)|| ' l_sql := l_sql||''dbms_session.set_nls(''''NLS_TIMESTAMP_FORMAT'''',''''''''''''''''||c_nls_timestamp_format||''''''''''''''''); '';'||chr(10)|| ' l_sql := l_sql||''insCtx := dbms_xmlstore.newContext(''''''||:F4300_P14_TARGET_SCHEMA;'||chr(10)|| ' l_sql := l_sql||''.''||:F4300_P16_TARGET_TA'; p:=p||'BLE||''''''); ''; '||chr(10)|| ' l_sql := l_sql||''dbms_xmlstore.setRowTag(insCtx,''''ROW''''); '';'||chr(10)|| ' l_sql := l_sql||''rows := dbms_xmlstore.insertXML(insCtx,wwv_flow_utilities.g_xml_clob); '';'||chr(10)|| ' l_sql := l_sql||''dbms_xmlstore.closeContext(insCtx); '';'||chr(10)|| ' l_sql := l_sql||''dbms_session.set_nls(''''NLS_DATE_FORMAT'''',''''''''''''''''||l_nls_date_format||''''''''''''''''); '';'||chr(10)|| ' l_sql := l_sql||''dbms_session.set_nls(''''NLS_TIMESTAMP_FORMAT'''','''''; p:=p||'''''''''''''||l_nls_timestamp_format||''''''''''''''''); '';'||chr(10)|| ' l_sql := l_sql||''end;'';'||chr(10)|| ' '||chr(10)|| ' wwv_flow_f4000_util.run_block'||chr(10)|| ' ( p_sql => l_sql,'||chr(10)|| ' p_user => :F4300_P14_TARGET_SCHEMA);'||chr(10)|| '/*exception when others then'||chr(10)|| ' wwv_flow.show_error_message(p_message => '||chr(10)|| ' wwv_flow_lang.system_message(p_name=>''XML_LOAD_ERROR''), '||chr(10)|| ' p_footer => null); '||chr(10)|| '*/'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 184026726681659973 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 17, p_process_sequence=> 20, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> '10.1 or greater: create_load_xml', p_process_sql_clob => p, p_process_error_message=> 'Error loading XML.', p_process_when_button_id=>184024014061659952 + wwv_flow_api.g_id_offset, p_process_when=>'wwv_flow_utilities.db_version_is_at_least(''10.1'')', p_process_when_type=>'PLSQL_EXPRESSION', p_process_success_message=> 'XML loaded.', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P14_TARGET_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 69932630276906146 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 17, p_process_sequence=> 30, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> 'Invalid Schema', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 17 -- begin null; end; null; end; / --application/pages/page_00018 prompt ...PAGE 18: Load Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_imprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 18, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load Data', p_step_title=> 'Load Data', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'JOEL', p_last_upd_yyyymmddhh24miss => '20080930135448', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>18,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 2157120477803132 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 18, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_header=> 'The file to be uploaded must be text-based. To upload a .XLS file, first save it as CSV. '||chr(10)|| '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:17'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'List: Plain Text Data Import'; wwv_flow_api.create_page_plug ( p_id=> 3939910944851245 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 18, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 3931814922814551 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6827802000688027 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 18, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 21283612328451431 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 18, p_plug_name=> 'Globalization', p_region_name=>'', p_plug_template=> 21175625245088699+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 2158019343803135 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 18, p_button_sequence=> 10, p_button_plug_id => 2157120477803132+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2158311458803135 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 18, p_button_sequence=> 30, p_button_plug_id => 2157120477803132+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2158218927803135 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 18, p_button_sequence=> 20, p_button_plug_id => 2157120477803132+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>2586909632661028 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18, p_branch_action=> '18', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_branch_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_branch_condition=> 'F4300_P18_REUPLOAD', p_branch_condition_text=>'Y', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 24-SEP-2002 09:16 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>2159723337803140 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18, p_branch_action=> '19', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2158311458803135+ wwv_flow_api.g_id_offset, p_branch_sequence=> 20, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); wwv_flow_api.create_page_branch( p_id=>2158707886803137 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18, p_branch_action=> '9', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2158019343803135+ wwv_flow_api.g_id_offset, p_branch_sequence=> 1, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); wwv_flow_api.create_page_branch( p_id=>2159221254803139 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18, p_branch_action=> '230', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2158218927803135+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Click Browse to locate the file to be uploaded.'; wwv_flow_api.create_page_item( p_id=>2157814244803134 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18, p_name=>'F4300_P13_FILE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 2157120477803132+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Text File', p_source_type=> 'STATIC', p_display_as=> 'FILE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 60, p_cMaxlength=> 2000, p_cHeight=> 1, 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=>'F4300_P13_FILE', p_display_when_type=>'ITEM_IS_NULL', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'N', p_help_text => h, p_item_comment => 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Select this box if your data contains column names in the first row.
'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Name Salary Commission'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Clark 1000 10'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Scott 2000 20'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''; wwv_flow_api.create_page_item( p_id=>2243727316068250 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18, p_name=>'F4300_P13_IS_COLUMN_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 2157120477803132+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'Y', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'ISCOLUMN.NAME.TEXT', p_lov => 'select ''''||'||chr(10)|| 'wwv_flow_lang.system_message(''F4300_INSTRUCT_TEXT'')||'''' d, ''Y'' r from dual', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', 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_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Identify a column separator character. Use
\t
for tab separators.';
wwv_flow_api.create_page_item(
p_id=>2329615063755442 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id=> 18,
p_name=>'F4300_P13_SEPARATOR',
p_data_type=> 'VARCHAR',
p_accept_processing=> 'REPLACE_EXISTING',
p_item_sequence=> 30,
p_item_plug_id => 2157120477803132+wwv_flow_api.g_id_offset,
p_use_cache_before_default=> 'YES',
p_item_default => ',',
p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS',
p_prompt=>'Separator: (\t for tab)',
p_source_type=> 'ALWAYS_NULL',
p_display_as=> 'TEXT',
p_lov_columns=> 1,
p_lov_display_null=> 'NO',
p_lov_translated=> 'N',
p_cSize=> 2,
p_cMaxlength=> 2,
p_cHeight=> 1,
p_cAttributes=> 'nowrap="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_field_template => 103910729134154335+wwv_flow_api.g_id_offset,
p_is_persistent=> 'Y',
p_lov_display_extra=>'NO',
p_protection_level => 'N',
p_escape_on_http_input => 'Y',
p_help_text => h,
p_item_comment => '');
end;
/
declare
h varchar2(32767) := null;
begin
h := null;
h:=h||'Name of the file to upload';
wwv_flow_api.create_page_item(
p_id=>2583912702633467 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id=> 18,
p_name=>'F4300_P18_FILE_NAME',
p_data_type=> 'VARCHAR',
p_accept_processing=> 'REPLACE_EXISTING',
p_item_sequence=> 20,
p_item_plug_id => 2157120477803132+wwv_flow_api.g_id_offset,
p_use_cache_before_default=> 'YES',
p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS',
p_prompt=>'File Name:',
p_source=>'substr(:F4300_P13_FILE,instr(:F4300_P13_FILE,''/'')+1)',
p_source_type=> 'FUNCTION',
p_display_as=> 'DISPLAY_ONLY_HTML',
p_lov_columns=> 1,
p_lov_display_null=> 'NO',
p_lov_translated=> 'N',
p_cSize=> 30,
p_cMaxlength=> 2000,
p_cHeight=> 1,
p_cAttributes=> 'nowrap="nowrap"',
p_tag_attributes => 'class="fielddatabold"',
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=>'F4300_P13_FILE',
p_display_when_type=>'ITEM_IS_NOT_NULL',
p_field_template => 103909823939152778+wwv_flow_api.g_id_offset,
p_is_persistent=> 'Y',
p_lov_display_extra=>'NO',
p_protection_level => 'N',
p_escape_on_http_input => 'Y',
p_help_text => h,
p_item_comment => '');
end;
/
declare
h varchar2(32767) := null;
begin
h := null;
h:=h||'Specify to reupload the file ';
wwv_flow_api.create_page_item(
p_id=>2586326817656557 + wwv_flow_api.g_id_offset,
p_flow_id=> wwv_flow.g_flow_id,
p_flow_step_id=> 18,
p_name=>'F4300_P18_REUPLOAD',
p_data_type=> 'VARCHAR',
p_accept_processing=> 'REPLACE_EXISTING',
p_item_sequence=> 25,
p_item_plug_id => 2157120477803132+wwv_flow_api.g_id_offset,
p_use_cache_before_default=> 'NO',
p_item_default => 'N',
p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS',
p_prompt=>'Reupload File',
p_display_as=> 'COMBOBOX_WITH_SUBMIT',
p_named_lov=> 'YES.NO.RETURNS_Y_OR_N',
p_lov => '.'||to_char(87930425596657700 + wwv_flow_api.g_id_offset)||'.',
p_lov_columns=> 1,
p_lov_display_null=> 'NO',
p_lov_translated=> 'N',
p_cSize=> 30,
p_cMaxlength=> 2000,
p_cHeight=> 1,
p_cAttributes=> 'nowrap="nowrap"',
p_tag_attributes2=> 'class="fielddata"',
p_begin_on_new_line => 'NO',
p_begin_on_new_field=> 'YES',
p_colspan => 1,
p_rowspan => 1,
p_label_alignment => 'RIGHT',
p_field_alignment => 'LEFT',
p_display_when=>'F4300_P13_FILE',
p_display_when_type=>'ITEM_IS_NOT_NULL',
p_field_template => 103909823939152778+wwv_flow_api.g_id_offset,
p_is_persistent=> 'Y',
p_lov_display_extra=>'NO',
p_help_text => h,
p_item_comment => '');
end;
/
declare
h varchar2(32767) := null;
begin
h := null;
h:=h||'If your data contains international currency symbol, enter it here.
'||chr(10)|| 'For example, if your data has "€1,234.56" or "¥1,234.56", enter "€" or "¥". Otherwise the data will not load correctly.
'; wwv_flow_api.create_page_item( p_id=>21284319254453394 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 18, p_name=>'P18_CURRENCY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 50, p_item_plug_id => 21283612328451431+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'declare'||chr(10)|| ' l_return_val varchar2(30) := ''$'';'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select value'||chr(10)|| ' from nls_session_parameters'||chr(10)|| ' where parameter = ''NLS_CURRENCY'') loop'||chr(10)|| ' l_return_val := c1.value;'||chr(10)|| ' exit;'||chr(10)|| ' end loop;'||chr(10)|| ' --'||chr(10)|| ' return l_return_val;'||chr(10)|| 'end;', p_item_default_type => 'PLSQL_FUNCTION_BODY', p_prompt=>'Currency Symbol', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 1, p_cMaxlength=> 1, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'A group separator is a character that separates integer groups, for example to show thousands and millions.
'||chr(10)|| 'Any character can be the group separator. The character specified must be single-byte, and the group separator must be different from any other decimal character. The character can be a space, but cannot be a numeric character or any of the following:
'||chr(10)|| 'The decimal character separates the integer and decimal parts of a number.
'||chr(10)|| 'Any character can be the decimal character. The character specified must be single-byte, and the decimal character must be different from group separator. The character can be a space, but cannot be any numeric character or any of the following characters:
'||chr(10)|| 'This page previews how your new table will look. Enter a table name, change column names or data types, and specify which columns to include.
'; wwv_flow_api.create_page_plug ( p_id=> 221480323469295765 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 19, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 2161222197803145 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19, p_button_sequence=> 10, p_button_plug_id => 2160319726803142+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2161511969803145 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19, p_button_sequence=> 30, p_button_plug_id => 2160319726803142+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2161401612803145 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19, p_button_sequence=> 20, p_button_plug_id => 2160319726803142+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>2162930496803151 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19, p_branch_action=> '21', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2161511969803145+ wwv_flow_api.g_id_offset, p_branch_sequence=> 20, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); wwv_flow_api.create_page_branch( p_id=>2161926887803146 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19, p_branch_action=> '9', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2161222197803145+ wwv_flow_api.g_id_offset, p_branch_sequence=> 1, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); wwv_flow_api.create_page_branch( p_id=>2162430587803150 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19, p_branch_action=> '18', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2161401612803145+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Choose the database schema you would like to create and load data into.'; wwv_flow_api.create_page_item( p_id=>2161012050803145 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19, p_name=>'F4300_P13_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 2160319726803142+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'CREATE_TABLE_SCHEMAS', p_lov => 'declare'||chr(10)|| ' q varchar2(32767) := null;'||chr(10)|| 'begin'||chr(10)|| ' q:=q||''select htf.escape_sc(c.schema) d, c.schema v '';'||chr(10)|| ' q:=q||''from wwv_flow_company_schemas c, '';'||chr(10)|| ' q:=q||'' wwv_flow_fnd_user u '';'||chr(10)|| ' q:=q||''where c.security_group_id = :flow_security_group_id and '';'||chr(10)|| ' q:=q||'' u.security_group_id = :flow_security_group_id and '';'||chr(10)|| ' q:=q||'' u.user_name = :flow_user and '';'||chr(10)|| ' q:=q||'' (u.ALLOW_ACCESS_TO_SCHEMAS is null or '';'||chr(10)|| ' q:=q||'' instr('''':''''||u.ALLOW_ACCESS_TO_SCHEMAS||'''':'''','''':''''||c.schema||'''':'''')>0) '';'||chr(10)|| ' if wwv_flow_global.g_xe then'||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs '';'||chr(10)|| ' q:=q||'' where privilege = ''''CREATE TABLE'''' '';'||chr(10)|| ' q:=q||'' and grantee = c.schema '';'||chr(10)|| ' q:=q||'' union all '';'||chr(10)|| ' q:=q||'' select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs s, sys.dba_role_privs r '';'||chr(10)|| ' q:=q||'' where r.granted_role=s.grantee '';'||chr(10)|| ' q:=q||'' and r.grantee = c.schema '';'||chr(10)|| ' q:=q||'' and s.privilege = ''''CREATE TABLE'''') '';'||chr(10)|| ' else'||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs '';'||chr(10)|| ' q:=q||'' where privilege = ''''CREATE TABLE'''' '';'||chr(10)|| ' q:=q||'' and grantee = c.schema) '';'||chr(10)|| ' end if; '||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_users '';'||chr(10)|| ' q:=q||'' where username = c.schema) '';'||chr(10)|| ' q:=q||''order by 1 '';'||chr(10)|| ' '||chr(10)|| ' return q;'||chr(10)|| 'end;', p_lov_columns=> null, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, 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_read_only_when=>'return wwv_flow_global.g_xe', p_read_only_when_type=>'FUNCTION_BODY', p_read_only_disp_attr=>'class="fielddatabold"', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Identify the table name you would like to create. By default, all table names are converted to upper case. Select Preserve Case override this default behavior.'; wwv_flow_api.create_page_item( p_id=>2267110534176923 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19, p_name=>'F4300_P13_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 2160319726803142+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Table Name', p_source_type=> 'ALWAYS_NULL', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>2269730619182732 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19, p_name=>'F4300_P19_DUMMY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 2160319726803142+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_prompt=>'Dummy', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="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_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>77772602360009347 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19, p_name=>'P19_PRESERVE_CASE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 25, p_item_plug_id => 2160319726803142+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'PRESERVE.CASE.Y', p_lov => '.'||to_char(87931511182663028 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 77778717729023209 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19, p_computation_sequence => 5, p_computation_item=> 'F4300_P13_TABLE_NAME', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'upper(replace(wwv_flow_utilities.remove_spaces(:F4300_P13_TABLE_NAME),chr(32),''_''))', p_compute_when => 'P19_PRESERVE_CASE', p_compute_when_type=>'ITEM_IS_NULL'); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 2611527265139214 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 19, p_computation_sequence => 10, p_computation_item=> 'F4300_P19_DUMMY', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| ' l_col_name varchar2(4000) := null;'||chr(10)|| 'begin'||chr(10)|| 'for i in 1..wwv_flow.g_f06.count loop'||chr(10)|| ' if :P19_PRESERVE_CASE is null then'||chr(10)|| ' l_col_name := upper(wwv_flow_utilities.remove_spaces(wwv_flow.g_f01(i)));'||chr(10)|| ' else'||chr(10)|| ' l_col_name := wwv_flow_utilities.remove_spaces(wwv_flow.g_f01(i));'||chr(10)|| ' end if;'||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f06(i),'||chr(10)|| ' p_attr_number => 1,'||chr(10)|| ' p_attr_value => l_col_name'||chr(10)|| ' );'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f06(i),'||chr(10)|| ' p_attr_number => 2,'||chr(10)|| ' p_attr_value => wwv_flow.g_f02(i)'||chr(10)|| ' );'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f06(i),'||chr(10)|| ' p_attr_number => 4,'||chr(10)|| ' p_attr_value => wwv_flow.g_f04(i)'||chr(10)|| ' );'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f06(i),'||chr(10)|| ' p_attr_number => 5,'||chr(10)|| ' p_attr_value => wwv_flow.g_f05(i)'||chr(10)|| ' );'||chr(10)|| ' '||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f06(i),'||chr(10)|| ' p_attr_number => 6,'||chr(10)|| ' p_attr_value => wwv_flow.g_f07(i)'||chr(10)|| ' ); '||chr(10)|| 'end loop;'||chr(10)|| ''||chr(10)|| 'return ''true'';'||chr(10)|| ''||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2615902509169951 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19, p_validation_name => 'column name not null, not > 30', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| 'begin'||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f04(i) = ''Y'' '||chr(10)|| ' then'||chr(10)|| ' if wwv_flow.g_f01(i) is not null then'||chr(10)|| ' if length(wwv_flow.g_f01(i)) > 30 then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.COL_NAMES_NOT_LONGER_THAN_30'');'||chr(10)|| ' end if;'||chr(10)|| ' else'||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.COL_NAMES_NOT_NULL'');'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => 'Column Name Error.', p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2617025019176456 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19, p_validation_name => 'table name not > 30', p_validation_sequence=> 20, p_validation => 'declare'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| 'if length(:F4300_P13_TABLE_NAME) > 30 then'||chr(10)|| ''||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.TABLE_NAMES_NOT_LONGER_THAN_30'');'||chr(10)|| ''||chr(10)|| 'end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => 'Table name too long.', p_associated_item=> 2267110534176923 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2617811990182089 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19, p_validation_name => 'at least one upload selected', p_validation_sequence=> 30, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ' l_no_count number := 0;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f04.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f04(i) = ''N'' then'||chr(10)|| ''||chr(10)|| ' l_no_count := l_no_count + 1;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_no_count = wwv_flow.g_f04.count then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'At least one column must be specified to include in new table. ', p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2618831730187776 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19, p_validation_name => 'cannot have same table name', p_validation_sequence=> 40, p_validation => 'declare'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| 'if wwv_flow_load_excel_data.table_exists('||chr(10)|| ''||chr(10)|| ' p_schema => :F4300_P13_OWNER,'||chr(10)|| ''||chr(10)|| ' p_table_name => wwv_flow_utilities.remove_spaces(:F4300_P13_TABLE_NAME)'||chr(10)|| ''||chr(10)|| ' ) then'||chr(10)|| ''||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.F4500.TABLE_ALREADY_EXISTS'');'||chr(10)|| ''||chr(10)|| 'end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => 'Name is already used by an existing object.', p_associated_item=> 2267110534176923 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2620211429191428 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19, p_validation_name => 'table name not null', p_validation_sequence=> 50, p_validation => 'F4300_P13_TABLE_NAME', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Table name must be specifeid.', p_associated_item=> 2267110534176923 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2622018486202935 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19, p_validation_name => 'column length not zero or null', p_validation_sequence=> 70, p_validation => 'declare'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f05.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f05(i) is not null then'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f05(i) = 0 then'||chr(10)|| ''||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.COL_LENGTH_NOT_ZERO'');'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.COL_LENGTH_NOT_NULL'');'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => 'Error in Column Length.', p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 290889128494860177 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19, p_validation_name => 'reserved name', p_validation_sequence=> 80, p_validation => 'if wwv_flow_sw_util.is_database_reserved_word(p_word=>:F4300_P13_TABLE_NAME) then'||chr(10)|| ' return false;'||chr(10)|| 'else'||chr(10)|| ' return true;'||chr(10)|| 'end if;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'The identified table name is an Oracle reserved word. Please choose another name.', p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 291061510906810726 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19, p_validation_name => 'column name reserved word', p_validation_sequence=> 90, p_validation => 'for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' if wwv_flow_sw_util.is_database_reserved_word(p_word=>upper(wwv_flow.g_f01(i))) then'||chr(10)|| ' return false;'||chr(10)|| ' end if;'||chr(10)|| 'end loop;'||chr(10)|| 'return true;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'The identified column name is an Oracle reserved word. Please choose another name.', p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 25617203076189584 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 19, p_validation_name => 'F4300_P13_OWNER', p_validation_sequence=> 100, p_validation => 'F4300_P13_OWNER', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Schema must be specified.', p_when_button_pressed=> 2161511969803145 + wwv_flow_api.g_id_offset, p_associated_item=> 2161012050803145 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'if :F4300_P13_OWNER is not null then'||chr(10)|| 'wwv_flow_sw_api.check_priv(:F4300_P13_OWNER);'||chr(10)|| 'end if;'; wwv_flow_api.create_page_process( p_id => 70050317817678488 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 19, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> 'Invalid Schema', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 19 -- begin null; end; null; end; / --application/pages/page_00021 prompt ...PAGE 21: Load Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph:=ph||''; wwv_flow_api.create_page( p_id => 21, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load Data', p_step_title=> 'Load Data', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => ' ', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125926', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>21,p_text=>h); wwv_flow_api.set_html_page_header(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>21,p_text=>ph); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 2163507507803153 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 21, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_footer=> '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:17'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'List: Plain Text Data Import'; wwv_flow_api.create_page_plug ( p_id=> 3941420987854137 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 21, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 3931814922814551 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6830404555698181 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 21, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Use this page to identify the primary key of the table. If no single column in your data set is appropriate as a primary key then identify a new column as the primary key. A primary key is used to uniquely identify a row in a table.
'; wwv_flow_api.create_page_plug ( p_id=> 221484502607308603 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 21, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 2164426793803154 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21, p_button_sequence=> 10, p_button_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:9:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2164724759803154 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21, p_button_sequence=> 30, p_button_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_button_name => 'FINISH', p_button_image_alt=> 'Load Data', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2164626737803154 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21, p_button_sequence=> 20, p_button_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>2166126845803162 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_branch_action=> '8', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2164724759803154+ wwv_flow_api.g_id_offset, p_branch_sequence=> 20, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); wwv_flow_api.create_page_branch( p_id=>29899701983651170 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_branch_action=> '21', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 30, p_branch_condition_type=> 'REQUEST_EQUALS_CONDITION', p_branch_condition=> 'P13_PK_TYPE', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 05-FEB-2003 11:30 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>52491202943423441 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_branch_action=> 'f?p=&FLOW_ID.:21:&SESSION.::&DEBUG.:::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_sequence=> 99, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 02-JUN-2003 11:08 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>2165605436803157 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_branch_action=> '19', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2164626737803154+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Schema that owns the table you would like to load data into.'; wwv_flow_api.create_page_item( p_id=>2164212316803154 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_name=>'F4300_P21_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema:', p_source=>'F4300_P13_OWNER', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_AND_SAVE', p_lov_columns=> null, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_tag_attributes => 'class="fielddatabold"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Name of the table to load data into'; wwv_flow_api.create_page_item( p_id=>2290019463274070 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_name=>'F4300_P21_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Table Name:', p_source=>'F4300_P13_TABLE_NAME', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Specify which column is the primary key of your table. A primary key is a column which uniquely identifies a row. Oracle does not require that your table have a primary key, however this wizard requires you identify a primary key.'; wwv_flow_api.create_page_item( p_id=>29865802488537862 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_name=>'P13_PK1', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Primary Key', p_source_type=> 'ALWAYS_NULL', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(c001)||''(''||c002||'')'' a, c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''CSV_IMPORT'' and c001 is not null'||chr(10)|| ' order by seq_id'||chr(10)|| '', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- Select Primary Key -', p_lov_null_value=> '0', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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=>'P13_PK1_OPTION', p_display_when2=>'EXISTING_KEY', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Name the primary key constraint name.'; wwv_flow_api.create_page_item( p_id=>29868930193545840 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_name=>'P13_PK1_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 50, p_item_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'PK Constraint Name', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Choose how you would like to have your primary key computed. Or; choose to not have your primary key''s value set.'; wwv_flow_api.create_page_item( p_id=>29871919935552356 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_name=>'P13_PK_TYPE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 60, p_item_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'NEW_SEQUENCE', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Primary Key Population:', p_source_type=> 'STATIC', p_display_as=> 'RADIOGROUP_WITH_SUBMIT', p_named_lov=> 'PK_TYPES', p_lov => '.'||to_char(29232624018252340 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT-TOP', p_field_alignment => 'LEFT', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Identify the name of an existing database sequence which will be used to populate the primary key value.'; wwv_flow_api.create_page_item( p_id=>29874226299563636 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_name=>'P13_EXISTING_SEQUENCE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 70, p_item_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Sequence', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(sequence_name) d, sequence_name v'||chr(10)|| ' from sys.dba_sequences '||chr(10)|| 'where sequence_owner = :F4300_P13_OWNER'||chr(10)|| 'order by sequence_name', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- Select Sequence -', p_lov_null_value=> '0', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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=>'P13_PK_TYPE', p_display_when2=>'EXISTING_SEQUENCE', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Identify the name of new database sequence which will be created for the purpose of populating this new tables primary key.'; wwv_flow_api.create_page_item( p_id=>29876013271569281 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_name=>'P13_NEW_SEQUENCE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 80, p_item_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Sequence', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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=>'P13_PK_TYPE', p_display_when2=>'NEW_SEQUENCE', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>51746727944629094 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_name=>'P21_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source=>' ', p_source_type=> 'STATIC', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="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_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'You can either select existing column or add new column as primary key.'; wwv_flow_api.create_page_item( p_id=>52479416748399039 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_name=>'P13_PK1_OPTION', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 35, p_item_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'NEW_KEY', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Primary Key From:', p_source_type=> 'STATIC', p_display_as=> 'RADIOGROUP_WITH_SUBMIT', p_named_lov=> 'USE.EXISTING.COL', p_lov => '.'||to_char(87933423434676001 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT-TOP', p_field_alignment => 'LEFT', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Enter the name of new primary key column.'; wwv_flow_api.create_page_item( p_id=>52483906836405605 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_name=>'P13_PK1_2', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 45, p_item_plug_id => 2163507507803153+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'ID', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'New Primary Key Column', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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=>'P13_PK1_OPTION', p_display_when2=>'NEW_KEY', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 29883807645586566 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_computation_sequence => 10, p_computation_item=> 'P13_PK1_NAME', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'wwv_flow_sw_util.generate_pk_name(replace(:F4300_P13_TABLE_NAME,'' '',''_''));', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 29885422537590887 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_computation_sequence => 10, p_computation_item=> 'P13_NEW_SEQUENCE', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'wwv_flow_sw_util.generate_seq_name(replace(:F4300_P13_TABLE_NAME,'' '',''_''));', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 29887722321600349 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_computation_sequence => 10, p_computation_item=> 'P13_PK1', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| 'begin'||chr(10)|| ' for c1 in ('||chr(10)|| ' select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''CSV_IMPORT'''||chr(10)|| ' and upper(c001) = ''ID'''||chr(10)|| ' ) loop'||chr(10)|| ' return c1.c001;'||chr(10)|| ' end loop;'||chr(10)|| ' for c1 in ('||chr(10)|| ' select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''CSV_IMPORT'''||chr(10)|| ' and upper(c001) like ''%ID'''||chr(10)|| ' ) loop'||chr(10)|| ' return c1.c001;'||chr(10)|| ' end loop;'||chr(10)|| 'end;', p_compute_when => 'P13_PK1', p_compute_when_type=>'ITEM_IS_NULL_OR_ZERO'); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 48784624982313991 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 21, p_computation_sequence => 10, p_computation_item=> 'P13_PK1_2', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| ' l_pk varchar2(40) := null;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''CSV_IMPORT'''||chr(10)|| ' and upper(c001) = ''ID'') '||chr(10)|| ' loop'||chr(10)|| ' for i in 1..10 loop'||chr(10)|| ' for c2 in (select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''CSV_IMPORT'''||chr(10)|| ' and upper(c001) = ''ID''||i) '||chr(10)|| ' loop'||chr(10)|| ' l_pk := ''ID'';'||chr(10)|| ' end loop;--c2'||chr(10)|| ' if l_pk is null then'||chr(10)|| ' return ''ID''||i;'||chr(10)|| ' else'||chr(10)|| ' l_pk := null;'||chr(10)|| ' end if;'||chr(10)|| ' end loop;--i'||chr(10)|| ' end loop;--c1'||chr(10)|| ' return ''ID'';'||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29890322799609950 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21, p_validation_name => 'ExSEQUENCE not null', p_validation_sequence=> 10, p_validation => 'P13_EXISTING_SEQUENCE', p_validation_type => 'ITEM_NOT_ZERO', p_error_message => 'Sequence must be specified.', p_validation_condition=> 'P13_PK_TYPE', p_validation_condition2=> 'EXISTING_SEQUENCE', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154 + wwv_flow_api.g_id_offset, p_associated_item=> 29874226299563636 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29894220852618813 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21, p_validation_name => 'PK_NAME available', p_validation_sequence=> 20, p_validation => 'begin'||chr(10)|| ''||chr(10)|| 'if not wwv_flow_builder.is_valid_identifier(''"''||:P13_PK1_NAME||''"'') '||chr(10)|| ' then return '||chr(10)|| ' wwv_flow_lang.system_message(''F4300.NOT_VALID_PK_NAME'',:P13_PK1_NAME);'||chr(10)|| 'end if;'||chr(10)|| ' '||chr(10)|| 'if not wwv_flow_sw_util.is_available_name(:P13_PK1_NAME, :F4300_P21_OWNER ) '||chr(10)|| ' then return '||chr(10)|| ' wwv_flow_lang.system_message(''F4300.F4500.NAME_ALREADY_USED'',:P13_PK1_NAME);'||chr(10)|| ' end if;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => 'Error.', p_when_button_pressed=> 2164724759803154 + wwv_flow_api.g_id_offset, p_associated_item=> 29868930193545840 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29895317520627355 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21, p_validation_name => 'ExistingPK not null', p_validation_sequence=> 30, p_validation => 'P13_PK1', p_validation_type => 'ITEM_NOT_NULL_OR_ZERO', p_error_message => 'Primary key must be specified.', p_validation_condition=> 'P13_PK1_OPTION', p_validation_condition2=> 'EXISTING_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154 + wwv_flow_api.g_id_offset, p_associated_item=> 29865802488537862 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52517420651456956 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21, p_validation_name => 'NewPK not null', p_validation_sequence=> 35, p_validation => 'P13_PK1_2', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Primary key must be specified.', p_validation_condition=> 'P13_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154 + wwv_flow_api.g_id_offset, p_associated_item=> 52483906836405605 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52521315588464886 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21, p_validation_name => 'PK not > 30 chars', p_validation_sequence=> 38, p_validation => 'if length(:P13_PK1_2) > 30 then'||chr(10)|| ' return false;'||chr(10)|| 'end if;'||chr(10)|| 'return true;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'Primary Key column name cannot be longer than 30 characters.', p_validation_condition=> 'P13_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154 + wwv_flow_api.g_id_offset, p_associated_item=> 52483906836405605 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52522413641473849 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21, p_validation_name => 'PK gen option needs to be auto', p_validation_sequence=> 39, p_validation => 'if :P13_PK_TYPE = ''NOT_GENERATED'' then'||chr(10)|| ' return false;'||chr(10)|| 'end if;'||chr(10)|| 'return true;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'Primary Key must be generated from a sequence when creating a new primary key.', p_validation_condition=> 'P13_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154 + wwv_flow_api.g_id_offset, p_associated_item=> 29871919935552356 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29896704837633092 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21, p_validation_name => 'PK_NAME not null', p_validation_sequence=> 40, p_validation => 'P13_PK1_NAME', p_validation_type => 'ITEM_NOT_NULL_OR_ZERO', p_error_message => 'PK name must be specified.', p_when_button_pressed=> 2164724759803154 + wwv_flow_api.g_id_offset, p_associated_item=> 29868930193545840 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29898416743646038 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21, p_validation_name => 'SEQ_NAME available', p_validation_sequence=> 50, p_validation => 'if not wwv_flow_builder.is_valid_identifier(''"''||:P13_NEW_SEQUENCE||''"'') then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.F4500.NOT_VALID_SEQ_NAME'',:P13_NEW_SEQUENCE);'||chr(10)|| 'end if;'||chr(10)|| ' '||chr(10)|| 'if not wwv_flow_sw_util.is_available_name(:P13_NEW_SEQUENCE, :F4300_P21_OWNER) then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.F4500.NAME_ALREADY_USED'',:P13_NEW_SEQUENCE);'||chr(10)|| 'end if;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => 'Error.', p_validation_condition=> 'P13_PK_TYPE', p_validation_condition2=> 'NEW_SEQUENCE', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154 + wwv_flow_api.g_id_offset, p_associated_item=> 29876013271569281 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 48786206675337067 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 21, p_validation_name => 'no duplicate PK', p_validation_sequence=> 60, p_validation => 'declare'||chr(10)|| ' l_cnt pls_integer := 0;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select count(c001) cnt'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''CSV_IMPORT'''||chr(10)|| ' and upper(c001) = upper(:P13_PK1_2))'||chr(10)|| ' loop'||chr(10)|| ' l_cnt := c1.cnt;'||chr(10)|| ' end loop;'||chr(10)|| ' if l_cnt > 0 then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4500.P602.DUP_COL_NAME'',:P13_PK1_2);'||chr(10)|| ' end if;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => 'Error.', p_validation_condition=> 'P13_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 2164724759803154 + wwv_flow_api.g_id_offset, p_associated_item=> 52483906836405605 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare '||chr(10)|| ' l_cnames wwv_flow_global.vc_arr2; '||chr(10)|| ' l_data_type wwv_flow_global.vc_arr2; '||chr(10)|| ' l_upload wwv_flow_global.vc_arr2;'||chr(10)|| ' l_max_length wwv_flow_global.vc_arr2;'||chr(10)|| ' l_seq_name varchar2(255) := null;'||chr(10)|| ' l_pk1 varchar2(255) := :P13_PK1;'||chr(10)|| ' l_pk1_name varchar2(255) := null;'||chr(10)|| ' i pls_integer := 0;'||chr(10)|| 'begin '||chr(10)|| ' if :P13_PK1_OPTION = ''NEW_KEY'' then'||chr(10)|| ' i := i+1;'||chr(10)|| ' l'; p:=p||'_pk1 := replace(wwv_flow_utilities.remove_spaces(:P13_PK1_2),chr(32),''_''); '||chr(10)|| ' if :P19_PRESERVE_CASE is null then'||chr(10)|| ' l_pk1 := upper(l_pk1);'||chr(10)|| ' end if;'||chr(10)|| ' l_cnames(i) := l_pk1;'||chr(10)|| ' l_data_type(i) := ''NUMBER'';'||chr(10)|| ' l_upload(i) := ''Y'';'||chr(10)|| ' l_max_length(i) := 30;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' for c in (select * '||chr(10)|| ' from wwv_flow_collections '||chr(10)|| ' where collection_name=''CSV_I'; p:=p||'MPORT'') loop'||chr(10)|| ' i := i+1; '||chr(10)|| ' l_cnames(i) := c.c001;'||chr(10)|| ' l_data_type(i) := c.c002;'||chr(10)|| ' l_upload(i) := c.c004;'||chr(10)|| ' l_max_length(i) := c.c005; '||chr(10)|| ' end loop; '||chr(10)|| ' '||chr(10)|| ' if :P13_PK_TYPE = ''NEW_SEQUENCE'' then'||chr(10)|| ' l_seq_name := :P13_NEW_SEQUENCE;'||chr(10)|| ' if :P19_PRESERVE_CASE is null then'||chr(10)|| ' l_seq_name := upper(l_seq_name);'||chr(10)|| ' end if;'||chr(10)|| ' elsif :P13_PK_TYPE = ''EXISTING_SEQUENCE'' then'||chr(10)|| ' l_seq_name '; p:=p||':= :P13_EXISTING_SEQUENCE;'||chr(10)|| ' else'||chr(10)|| ' l_seq_name := NULL;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' l_pk1_name := :P13_PK1_NAME;'||chr(10)|| ' if :P19_PRESERVE_CASE is null then'||chr(10)|| ' l_pk1_name := upper(l_pk1_name);'||chr(10)|| ' end if;'||chr(10)|| ' wwv_flow_load_excel_data.create_table ('||chr(10)|| ' p_schema => :F4300_P13_OWNER,'||chr(10)|| ' p_table_name => wwv_flow_utilities.remove_spaces(:F4300_P13_TABLE_NAME),'||chr(10)|| ' p_pk1 => l_pk1,'||chr(10)|| ' p_pk1_name => l_pk1_name,'||chr(10)|| ' '; p:=p||' p_pk1_type => :P13_PK_TYPE,'||chr(10)|| ' p_seq_name => l_seq_name,'||chr(10)|| ' --'||chr(10)|| ' p_cnames => l_cnames,'||chr(10)|| ' p_data_type => l_data_type, '||chr(10)|| ' p_upload => l_upload,'||chr(10)|| ' p_max_length => l_max_length '||chr(10)|| ' ); '||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 2632715940268420 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 21, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'create table', p_process_sql_clob => p, p_process_error_message=> '', p_process_when_button_id=>2164724759803154 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare'||chr(10)|| ' l_file_id number := 0;'||chr(10)|| ' l_first_row_is_col_name boolean := false; '||chr(10)|| ' l_cnames wwv_flow_global.vc_arr2; '||chr(10)|| ' l_upload wwv_flow_global.vc_arr2; '||chr(10)|| ' i number := 0;'||chr(10)|| ' --'||chr(10)|| ' l_data_type wwv_flow_global.vc_arr2;'||chr(10)|| ' l_data_format wwv_flow_global.vc_arr2;'||chr(10)|| ' l_parsed_data_format wwv_flow_global.v'; p:=p||'c_arr2;'||chr(10)|| 'begin'||chr(10)|| ' select id'||chr(10)|| ' into l_file_id'||chr(10)|| ' from wwv_flow_file_objects$'||chr(10)|| ' where name = :F4300_P13_FILE;'||chr(10)|| ' '||chr(10)|| ' for c in (select * '||chr(10)|| ' from wwv_flow_collections '||chr(10)|| ' where collection_name=''CSV_IMPORT'') loop'||chr(10)|| ' i := i + 1;'||chr(10)|| ' l_cnames(i) := c.c001; '||chr(10)|| ' l_upload(i) := c.c004; '||chr(10)|| ' l_data_type(i) := c.c002; '||chr(10)|| ' l_data_format(i) := c.c006;'||chr(10)|| ' l_parsed_data_format(i) := c.c027; '; p:=p||''||chr(10)|| ' end loop; '||chr(10)|| ''||chr(10)|| ' if :F4300_P13_IS_COLUMN_NAME = ''Y'' then'||chr(10)|| ' l_first_row_is_col_name := true;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' wwv_flow_load_data.load_csv_data ('||chr(10)|| ' p_file_id => l_file_id,'||chr(10)|| ' p_cnames => l_cnames,'||chr(10)|| ' p_upload => l_upload,'||chr(10)|| ' p_schema => :F4300_P13_OWNER,'||chr(10)|| ' p_table => wwv_flow_utilities.remove_spaces(:F4300_P13_TABLE_NAME),'||chr(10)|| ' p_data_type => l_data_type,'||chr(10)|| ' p_data_for'; p:=p||'mat => l_data_format,'||chr(10)|| ' p_parsed_data_format => l_parsed_data_format,'||chr(10)|| ' p_separator => lower(:F4300_P13_SEPARATOR),'||chr(10)|| ' p_enclosed_by => :F4300_P13_ENCLOSED_BY,'||chr(10)|| ' p_first_row_is_col_name => l_first_row_is_col_name,'||chr(10)|| ' p_load_to => ''NEW'','||chr(10)|| ' p_currency => :P18_CURRENCY,'||chr(10)|| ' p_numeric_chars => :P18_DECIMAL_CHARACTER||:P18_GROUP_S'; p:=p||'EPARATOR,'||chr(10)|| ' p_charset => :P18_FILE_CHARSET'||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 2634021612279507 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 21, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'insert data', p_process_sql_clob => p, p_process_error_message=> '', p_process_when_button_id=>2164724759803154 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P13_OWNER);'; wwv_flow_api.create_page_process( p_id => 69940020626931717 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 21, p_process_sequence=> 20, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> 'Invalid Schema', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P13_OWNER);'; wwv_flow_api.create_page_process( p_id => 122951803454637884 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 21, p_process_sequence=> 20, p_process_point=> 'ON_SUBMIT_BEFORE_COMPUTATION', p_process_type=> 'PLSQL', p_process_name=> 'validate schema', p_process_sql_clob => p, p_process_error_message=> '', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 21 -- begin null; end; null; end; / --application/pages/page_00022 prompt ...PAGE 22: Load Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 22, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load Data', p_step_title=> 'Load Data', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125926', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>22,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 2166903406803173 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 22, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:18'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select the database schema that owns the table you would like load data into.
'; wwv_flow_api.create_page_plug ( p_id=> 2167203855803175 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 22, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:18'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'List: Plain Text Data Import2'; wwv_flow_api.create_page_plug ( p_id=> 3942229644856578 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 22, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 3934205141830584 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23356522911631312 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 22, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 2167730620803176 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 22, p_button_sequence=> 10, p_button_plug_id => 2166903406803173+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:9:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 2167814861803176 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 22, p_button_sequence=> 40, p_button_plug_id => 2166903406803173+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 4117018823640385 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 22, p_button_sequence=> 10, p_button_plug_id => 2166903406803173+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>2169404691803182 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 22, p_branch_action=> '23', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>2167814861803176+ wwv_flow_api.g_id_offset, p_branch_sequence=> 1, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:18'); wwv_flow_api.create_page_branch( p_id=>4117328710640389 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 22, p_branch_action=> '230', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>4117018823640385+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Select the database schema that owns the table you would like load data into.
'; wwv_flow_api.create_page_item( p_id=>2167519385803175 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 22, p_name=>'F4300_P22_TABLE_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 2166903406803173+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'LIST_SCHEMA_OWNERS', p_lov => 'select htf.escape_sc(c.schema) d, c.schema v'||chr(10)|| 'from wwv_flow_company_schemas c,'||chr(10)|| ' wwv_flow_fnd_user u'||chr(10)|| 'where c.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.user_name = :flow_user and'||chr(10)|| ' (u.ALLOW_ACCESS_TO_SCHEMAS is null or'||chr(10)|| ' instr('':''||u.ALLOW_ACCESS_TO_SCHEMAS||'':'','':''||c.schema||'':'')>0)'||chr(10)|| 'order by 1'||chr(10)|| '', p_lov_columns=> null, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- Select Schema - ', p_lov_null_value=> '', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, 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_read_only_when=>'return wwv_flow_global.g_xe', p_read_only_when_type=>'FUNCTION_BODY', p_read_only_disp_attr=>'class="fielddatabold"', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => 'Generated 20-SEP-2002 14:00:18'); end; / begin wwv_flow_api.create_page_validation( p_id => 3375200229249004 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 22, p_validation_name => 'F4300_P22_TABLE_OWNER Not Null', p_validation_sequence=> 1, p_validation => 'F4300_P22_TABLE_OWNER', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Schema must be specified.', p_associated_item=> 2167519385803175 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> 'generated 25-SEP-2002 14:41'); null; end; / begin --------------------------------------- -- ...updatable report columns for page 22 -- begin null; end; null; end; / --application/pages/page_00023 prompt ...PAGE 23: Load Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 23, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load Data', p_step_title=> 'Load Data', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'SSPADAFO', p_last_upd_yyyymmddhh24miss => '20081110154110', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>23,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 3342017713216245 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 23, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select the database table you would like load data into.
'; wwv_flow_api.create_page_plug ( p_id=> 3343527756219129 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 23, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'List: Plain Text Data Import2'; wwv_flow_api.create_page_plug ( p_id=> 3942801378857925 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 23, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 3934205141830584 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23357801225634529 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 23, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 3345108840223145 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 23, p_button_sequence=> 10, p_button_plug_id => 3342017713216245+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:9:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 3347624424227650 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 23, p_button_sequence=> 10, p_button_plug_id => 3342017713216245+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 3346317844225676 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 23, p_button_sequence=> 10, p_button_plug_id => 3342017713216245+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>3347902164227651 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 23, p_branch_action=> '24', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3347624424227650+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>3346606261225679 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 23, p_branch_action=> '22', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3346317844225676+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Select the database table you would like to load data into.
'; wwv_flow_api.create_page_item( p_id=>3370703215240396 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 23, p_name=>'F4300_P22_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 3342017713216245+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Table Name', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(table_name) d, table_name r'||chr(10)|| 'from sys.dba_tables'||chr(10)|| 'where owner = :F4300_P22_TABLE_OWNER'||chr(10)|| 'and table_name not like ''BIN$%'''||chr(10)|| 'order by 1', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- Select Table -', p_lov_null_value=> '', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 3372314989243825 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 23, p_validation_name => 'F4300_P22_TABLE_NAME Not Null', p_validation_sequence=> 1, p_validation => 'F4300_P22_TABLE_NAME', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Table Name must be specified.', p_associated_item=> 3370703215240396 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> 'generated 25-SEP-2002 14:40'); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P22_TABLE_OWNER);'; wwv_flow_api.create_page_process( p_id => 71417327803995150 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 23, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Verify Schema', p_process_sql_clob => p, p_process_error_message=> 'Invalid Schema', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 23 -- begin null; end; null; end; / --application/pages/page_00024 prompt ...PAGE 24: Load Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 24, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load Data', p_step_title=> 'Load Data', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'JOEL', p_last_upd_yyyymmddhh24miss => '20080930135448', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>24,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 3829922094433887 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 24, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_header=> '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:17'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Use this page to locate the file to be uploaded.
'||chr(10)|| 'If the first row contains columns names, select First row contains column names.
'||chr(10)|| ''; wwv_flow_api.create_page_plug ( p_id=> 3833218839433914 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 24, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:17'); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'List: Plain Text Data Import2'; wwv_flow_api.create_page_plug ( p_id=> 3943707265859631 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 24, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 3934205141830584 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 21249425216360552 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 24, p_plug_name=> 'Globalization', p_region_name=>'', p_plug_template=> 21175625245088699+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23358908151636560 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 24, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 3830106917433892 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 24, p_button_sequence=> 10, p_button_plug_id => 3829922094433887+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:9:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 3830706637433895 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 24, p_button_sequence=> 30, p_button_plug_id => 3829922094433887+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 3830402542433895 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 24, p_button_sequence=> 20, p_button_plug_id => 3829922094433887+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>3834709806433923 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24, p_branch_action=> '24', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_branch_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_branch_condition=> 'F4300_P24_REUPLOAD', p_branch_condition_text=>'Y', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 24-SEP-2002 09:16 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>3834410468433923 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24, p_branch_action=> '25', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3830706637433895+ wwv_flow_api.g_id_offset, p_branch_sequence=> 20, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); wwv_flow_api.create_page_branch( p_id=>3834101310433921 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24, p_branch_action=> '23', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3830402542433895+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Specify to reupload the file '; wwv_flow_api.create_page_item( p_id=>3831104189433900 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24, p_name=>'F4300_P24_REUPLOAD', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 25, p_item_plug_id => 3829922094433887+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default => 'N', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Reupload File', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX_WITH_SUBMIT', p_named_lov=> 'YES.NO.RETURNS_Y_OR_N', p_lov => '.'||to_char(87930425596657700 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_display_when=>'F4300_P22_FILE', p_display_when_type=>'ITEM_IS_NOT_NULL', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Name of the file to upload'; wwv_flow_api.create_page_item( p_id=>3831424650433904 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24, p_name=>'F4300_P24_FILE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 3829922094433887+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'File Name', p_source=>'F4300_P22_FILE', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', 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=>'F4300_P22_FILE', p_display_when_type=>'ITEM_IS_NOT_NULL', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Click Browse to locate the file to be uploaded.
'; wwv_flow_api.create_page_item( p_id=>3832007249433909 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24, p_name=>'F4300_P22_FILE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 3829922094433887+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'File', p_source_type=> 'STATIC', p_display_as=> 'FILE', p_lov_columns=> null, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_tag_attributes => 'id="file-upload"', 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=>'F4300_P22_FILE', p_display_when_type=>'ITEM_IS_NULL', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => 'Generated 20-SEP-2002 14:00:17'); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Select this option if your data contains column names in the first row. Consider the following example:
'||chr(10)|| ''||chr(10)|| 'Name Salary Commission'||chr(10)|| 'Clark 1000 10'||chr(10)|| 'Scott 2000 20'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| '
'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Name Salary Commission'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Clark 1000 10'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Scott 2000 20'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''; wwv_flow_api.create_page_item( p_id=>3832316073433910 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24, p_name=>'F4300_P22_IS_COLUMN_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 3829922094433887+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'Y', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'ISCOLUMN.NAME.TEXT', p_lov => 'select ''''||'||chr(10)|| 'wwv_flow_lang.system_message(''F4300_INSTRUCT_TEXT'')||'''' d, ''Y'' r from dual', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'
Identify a column separator character. Use \t for tab separators.
'; wwv_flow_api.create_page_item( p_id=>3832614597433912 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24, p_name=>'F4300_P22_SEPARATOR', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 3829922094433887+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => ',', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Separator', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 2, p_cMaxlength=> 2, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Identify optional enclosed by character.
'; wwv_flow_api.create_page_item( p_id=>3832902320433912 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24, p_name=>'F4300_P22_ENCLOSED_BY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 35, p_item_plug_id => 3829922094433887+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Optionally Enclosed By', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 2, p_cMaxlength=> 2, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'If your data contains international currency symbol, enter it here.
'||chr(10)|| 'For example, if your data has "€1,234.56" or "¥1,234.56", enter "€" or "¥". Otherwise the data will not load correctly.
'; wwv_flow_api.create_page_item( p_id=>21250401452363148 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 24, p_name=>'P24_CURRENCY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 50, p_item_plug_id => 21249425216360552+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'declare'||chr(10)|| ' l_return_val varchar2(30) := ''$'';'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select value'||chr(10)|| ' from nls_session_parameters'||chr(10)|| ' where parameter = ''NLS_CURRENCY'') loop'||chr(10)|| ' l_return_val := c1.value;'||chr(10)|| ' exit;'||chr(10)|| ' end loop;'||chr(10)|| ' --'||chr(10)|| ' return l_return_val;'||chr(10)|| 'end;', p_item_default_type => 'PLSQL_FUNCTION_BODY', p_prompt=>'Currency Symbol', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 1, p_cMaxlength=> 1, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'A group separator is a character that separates integer groups, for example to show thousands and millions.
'||chr(10)|| 'Any character can be the group separator. The character specified must be single-byte, and the group separator must be different from any other decimal character. The character can be a space, but cannot be a numeric character or any of the following:
'||chr(10)|| 'The decimal character separates the integer and decimal parts of a number.
'||chr(10)|| 'Any character can be the decimal character. The character specified must be single-byte, and the decimal character must be different from group separator. The character can be a space, but cannot be any numeric character or any of the following characters:
'||chr(10)|| 'This page previews how your data will be loaded. Match the database column names with columns in the data. To upload columns, select Yes or No. An asterisk (*) indicates a required column.
'||chr(10)|| 'To upload data to the selected table, click Import Data.
'||chr(10)|| 'Use SQL Workshop to modify table attributes such as changing the column length, making not null columns, or changin'; s:=s||'g the column type.
'||chr(10)|| ''; wwv_flow_api.create_page_plug ( p_id=> 3380716636263254 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 25, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'wwv_flow_load_data.display_etable_property ('||chr(10)|| ' p_table_owner => :F4300_P22_TABLE_OWNER,'||chr(10)|| ' p_table_name => :F4300_P22_TABLE_NAME,'||chr(10)|| ' p_collection_name => ''CSV_IMPORT'''||chr(10)|| ' );'; wwv_flow_api.create_page_plug ( p_id=> 3382431874267620 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 25, p_plug_name=> 'Define Column Mapping', p_region_name=>'', p_plug_template=> 279748823389483962+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'PLSQL_PROCEDURE', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'List: Plain Text Data Import2'; wwv_flow_api.create_page_plug ( p_id=> 3944611767860950 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 25, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 3934205141830584 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23360325120641434 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 25, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 3747714052076259 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25, p_button_sequence=> 10, p_button_plug_id => 3379027934257020+wwv_flow_api.g_id_offset, p_button_name => 'CANCEL', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 3749803794082687 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25, p_button_sequence=> 10, p_button_plug_id => 3379027934257020+wwv_flow_api.g_id_offset, p_button_name => 'FINISH', p_button_image_alt=> 'Load Data', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 3748622363078595 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25, p_button_sequence=> 10, p_button_plug_id => 3379027934257020+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>3750125829082689 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25, p_branch_action=> '8', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3749803794082687+ wwv_flow_api.g_id_offset, p_branch_sequence=> 30, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>3748007079076265 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25, p_branch_action=> '9', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3747714052076259+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>3748901903078596 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25, p_branch_action=> '24', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>3748622363078595+ wwv_flow_api.g_id_offset, p_branch_sequence=> 20, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Schema that owns the table to load the data into.'; wwv_flow_api.create_page_item( p_id=>3753406349092940 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25, p_name=>'F4300_P25_TABLE_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 3379027934257020+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema:', p_source=>'F4300_P22_TABLE_OWNER', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Name of the table to load data into'; wwv_flow_api.create_page_item( p_id=>3754218816096550 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25, p_name=>'F4300_P25_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 3379027934257020+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Table Name:', p_source=>'F4300_P22_TABLE_NAME', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_ESCAPE_SC', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>3872807706566435 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25, p_name=>'F4300_P25_DUMMY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 3379027934257020+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_prompt=>'Dummy', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="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_is_persistent=> 'Y', p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 3874326752571910 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 25, p_computation_sequence => 10, p_computation_item=> 'F4300_P25_DUMMY', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| 'begin'||chr(10)|| 'for i in 1..wwv_flow.g_f04.count loop'||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f04(i),'||chr(10)|| ' p_attr_number => 1,'||chr(10)|| ' p_attr_value => wwv_flow_utilities.remove_spaces(wwv_flow.g_f01(i))'||chr(10)|| ' );'||chr(10)|| ''||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f04(i),'||chr(10)|| ' p_attr_number => 4,'||chr(10)|| ' p_attr_value => wwv_flow.g_f02(i)'||chr(10)|| ' );'||chr(10)|| ' '||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''CSV_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f04(i),'||chr(10)|| ' p_attr_number => 6,'||chr(10)|| ' p_attr_value => wwv_flow.g_f05(i)'||chr(10)|| ' ); '||chr(10)|| 'end loop;'||chr(10)|| ''||chr(10)|| 'return ''true'';'||chr(10)|| ''||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 3758426912108293 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25, p_validation_name => 'column name not null', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ' l_null_found number := 0;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f02(i)=''Y'' then'||chr(10)|| ''||chr(10)|| ' if replace(wwv_flow.g_f01(i),''%''||''null%'',null) is null then'||chr(10)|| ''||chr(10)|| ' l_null_found := l_null_found + 1;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_null_found > 0 then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'Column names cannot be null.', p_when_button_pressed=> 3749803794082687 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 3759521849116267 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25, p_validation_name => 'at least one upload selected', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ' l_no_count number := 0;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f02.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f02(i) = ''N'' then'||chr(10)|| ''||chr(10)|| ' l_no_count := l_no_count + 1;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_no_count = wwv_flow.g_f02.count then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'At least one column must be specified to upload the data.', p_when_button_pressed=> 3749803794082687 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 3762021418135076 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25, p_validation_name => 'not null columns must be loaded', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ' l_not_null_error number := 0;'||chr(10)|| ''||chr(10)|| ' l_columns varchar2(32767) := null;'||chr(10)|| ''||chr(10)|| ' l_not_null_cols varchar2(32767) := null;'||chr(10)|| ''||chr(10)|| ' l_trigger_body long;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' l_columns := wwv_flow_utilities.table_to_string2(wwv_flow.g_f01);'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' -- get trigger body if it is before insert trigger on the selected table'||chr(10)|| ''||chr(10)|| ' for c1 in (select trigger_body'||chr(10)|| ''||chr(10)|| ' from sys.dba_triggers'||chr(10)|| ''||chr(10)|| ' where table_name = :F4300_P22_TABLE_NAME'||chr(10)|| ''||chr(10)|| ' and table_owner = :F4300_P22_TABLE_OWNER'||chr(10)|| ''||chr(10)|| ' and trigger_type like ''%BEFORE%'''||chr(10)|| ''||chr(10)|| ' and triggering_event like ''%INSERT%'')'||chr(10)|| ''||chr(10)|| ' loop'||chr(10)|| ''||chr(10)|| ' l_trigger_body := c1.trigger_body;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' -- get all not null columns'||chr(10)|| ''||chr(10)|| ' for c1 in (select column_name'||chr(10)|| ''||chr(10)|| ' from sys.dba_tab_columns'||chr(10)|| ''||chr(10)|| ' where table_name = :F4300_P22_TABLE_NAME'||chr(10)|| ''||chr(10)|| ' and owner = :F4300_P22_TABLE_OWNER'||chr(10)|| ''||chr(10)|| ' and nullable = ''N'''||chr(10)|| ''||chr(10)|| ' ) loop'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ''||chr(10)|| ' -- If column names user selected is equal to not null columns,'||chr(10)|| ''||chr(10)|| ' -- user didn''t include to upload'||chr(10)|| ''||chr(10)|| ' -- and the column doesn''t have trigger, raise an error.'||chr(10)|| ''||chr(10)|| ' if (wwv_flow.g_f01(i) = c1.column_name) then'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f02(i) = ''N'' then'||chr(10)|| ''||chr(10)|| ' if instr(nvl(UPPER(l_trigger_body),'' ''),c1.column_name) = 0 then'||chr(10)|| ''||chr(10)|| ' l_not_null_error := l_not_null_error + 1;'||chr(10)|| ''||chr(10)|| ' l_not_null_cols := l_not_null_cols||'',''||c1.column_name;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' -- If user did not select not null columns,'||chr(10)|| ''||chr(10)|| ' -- and the column doesn''t have trigger'||chr(10)|| ''||chr(10)|| ' -- raise an error.'||chr(10)|| ''||chr(10)|| ' if instr(l_columns,c1.column_name) = 0 then'||chr(10)|| ''||chr(10)|| ' if instr(nvl(UPPER(l_trigger_body),'' ''),c1.column_name) = 0 then'||chr(10)|| ''||chr(10)|| ' l_not_null_error := l_not_null_error + 1;'||chr(10)|| ''||chr(10)|| ' l_not_null_cols := l_not_null_cols||'',''||c1.column_name;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_not_null_error > 0 then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'There are NOT NULL columns in &F4300_P22_TABLE_OWNER..&F4300_P22_TABLE_NAME.. Select to upload the data without an error.', p_when_button_pressed=> 3749803794082687 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 3804414642293989 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 25, p_validation_name => 'duplicate column names', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ' l_col varchar2(32767) := null;'||chr(10)|| ' l_duplicate boolean := true;'||chr(10)|| 'begin'||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' -- if column selected is to be uploaded, check for duplicate column selection'||chr(10)|| ' if wwv_flow.g_f02(i) = ''Y'' then'||chr(10)|| ' if instr(nvl(l_col,'' ''), ('':'' || wwv_flow.g_f01(i) || '':'')) > 0 then'||chr(10)|| ' l_duplicate := false;'||chr(10)|| ' end if;'||chr(10)|| ' if i > 1 then'||chr(10)|| ' l_col := l_col || wwv_flow.g_f01(i) || '':'';'||chr(10)|| ' else'||chr(10)|| ' l_col := '':'' || wwv_flow.g_f01(i) || '':'' ;'||chr(10)|| ' end if;'||chr(10)|| ' end if;'||chr(10)|| ' end loop;'||chr(10)|| ' return l_duplicate;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'Duplicate column names selected.', p_when_button_pressed=> 3749803794082687 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare'||chr(10)|| ' l_file_id number := 0;'||chr(10)|| ' l_first_row_is_col_name boolean := false;'||chr(10)|| ' l_cnames wwv_flow_global.vc_arr2;'||chr(10)|| ' --'||chr(10)|| ' l_data_types wwv_flow_global.vc_arr2;'||chr(10)|| ' l_parsed_data_format wwv_flow_global.vc_arr2;'||chr(10)|| ' j pls_integer := 0;'||chr(10)|| 'begin'||chr(10)|| ' select id'||chr(10)|| ' into l_file_id'||chr(10)|| ' from wwv_flow_file_objects$'||chr(10)|| ' where name = :F4300_P22_FILE;'||chr(10)|| ''||chr(10)|| ' i'; p:=p||'f :F4300_P22_IS_COLUMN_NAME = ''Y'' then'||chr(10)|| ' l_first_row_is_col_name := true;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' l_cnames(i) := wwv_flow.g_f01(i);'||chr(10)|| ' '||chr(10)|| ' for c1 in (select data_type'||chr(10)|| ' from sys.dba_tab_columns'||chr(10)|| ' where owner = :F4300_P22_TABLE_OWNER'||chr(10)|| ' and table_name = :F4300_P22_TABLE_NAME'||chr(10)|| ' and column_name = wwv_flow.g_f01(i)'||chr(10)|| ' '; p:=p||' order by column_id)'||chr(10)|| ' loop'||chr(10)|| ' l_data_types(i) := c1.data_type; '||chr(10)|| ' end loop; '||chr(10)|| ' end loop;'||chr(10)|| ' '||chr(10)|| ' for c in (select * '||chr(10)|| ' from wwv_flow_collections '||chr(10)|| ' where collection_name=''CSV_IMPORT'') loop'||chr(10)|| ' j := j + 1; '||chr(10)|| ' l_parsed_data_format(j) := c.c027; '||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ' wwv_flow_load_data.load_csv_data ('||chr(10)|| ' p_file_id => l_file_id,'||chr(10)|| ' p_cnames => l_cnam'; p:=p||'es,'||chr(10)|| ' p_upload => wwv_flow.g_f02,'||chr(10)|| ' p_schema => :F4300_P22_TABLE_OWNER,'||chr(10)|| ' p_table => :F4300_P22_TABLE_NAME,'||chr(10)|| ' p_data_type => l_data_types,'||chr(10)|| ' p_data_format => wwv_flow.g_f05,'||chr(10)|| ' p_parsed_data_format => l_parsed_data_format,'||chr(10)|| ' p_separator => lower(:F4300_P22_SEPARATOR),'||chr(10)|| ' p_enclosed_by => :F4300_P22_ENCLOSED_BY,'||chr(10)|| ' p_first_row_is_col_name => l_first_row_is_col_name,'||chr(10)|| ' p_load_t'; p:=p||'o => ''EXIST'','||chr(10)|| ' p_currency => :P24_CURRENCY,'||chr(10)|| ' p_numeric_chars => :P24_DECIMAL_CHARACTER||:P24_GROUP_SEPARATOR,'||chr(10)|| ' p_charset => :P24_FILE_CHARSET'||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 3813707079395907 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 25, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'insert data', p_process_sql_clob => p, p_process_error_message=> 'Error inserting data.', p_process_when_button_id=>3749803794082687 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P22_TABLE_OWNER);'; wwv_flow_api.create_page_process( p_id => 122948926694597204 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 25, p_process_sequence=> 20, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'security check', p_process_sql_clob => p, p_process_error_message=> '', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P22_TABLE_OWNER);'; wwv_flow_api.create_page_process( p_id => 122950027302616323 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 25, p_process_sequence=> 1, p_process_point=> 'ON_SUBMIT_BEFORE_COMPUTATION', p_process_type=> 'PLSQL', p_process_name=> 'security check', p_process_sql_clob => p, p_process_error_message=> '', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 25 -- begin null; end; null; end; / --application/pages/page_00070 prompt ...PAGE 70: Unload to XML -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 70, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Unload to XML', p_step_title=> 'Unload to XML', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731303316584395+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125926', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>70,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 242875176989 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 70, p_plug_name=> 'Unload to XML', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 242882205409 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 70, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104417024127237376 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6689113332667276 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 70, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'You can export the contents of a table to an XML document.
'||chr(10)|| 'Select the database schema that owns the table you would like export.
'; wwv_flow_api.create_page_plug ( p_id=> 221193914505845456 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 70, p_plug_name=> 'Unload to XML', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 109086405456399267 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 70, p_button_sequence=> 10, p_button_plug_id => 242875176989+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 242885218072 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 70, p_button_sequence=> 10, p_button_plug_id => 242875176989+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>242888218082 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 70, p_branch_action=> '80', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>242885218072+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Select the database schema that owns the object you would like to export.'; wwv_flow_api.create_page_item( p_id=>242877182288 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 70, p_name=>'F4300_P70_SCHEMA', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 242875176989+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'LIST_SCHEMA_OWNERS', p_lov => 'select htf.escape_sc(c.schema) d, c.schema v'||chr(10)|| 'from wwv_flow_company_schemas c,'||chr(10)|| ' wwv_flow_fnd_user u'||chr(10)|| 'where c.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.user_name = :flow_user and'||chr(10)|| ' (u.ALLOW_ACCESS_TO_SCHEMAS is null or'||chr(10)|| ' instr('':''||u.ALLOW_ACCESS_TO_SCHEMAS||'':'','':''||c.schema||'':'')>0)'||chr(10)|| 'order by 1'||chr(10)|| '', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 61175806454801075 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 70, p_validation_name => 'schema not null', p_validation_sequence=> 10, p_validation => 'F4300_P70_SCHEMA', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Schema must be specified.', p_when_button_pressed=> 242885218072 + wwv_flow_api.g_id_offset, p_associated_item=> 242877182288 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin --------------------------------------- -- ...updatable report columns for page 70 -- begin null; end; null; end; / --application/pages/page_00080 prompt ...PAGE 80: Unload to XML -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 80, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Unload to XML', p_step_title=> 'Unload to XML', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731303316584395+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'SSPADAFO', p_last_upd_yyyymmddhh24miss => '20081110154317', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>80,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 242897225300 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 80, p_plug_name=> 'Unload to XML', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 242901225302 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 80, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104417024127237376 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6843332007762963 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 80, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select the database table you would like export to an XML document.
'; wwv_flow_api.create_page_plug ( p_id=> 221200328834859088 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 80, p_plug_name=> 'Unload to XML', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 109094932121406894 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 80, p_button_sequence=> 10, p_button_plug_id => 242897225300+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 242891225267 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 80, p_button_sequence=> 10, p_button_plug_id => 242897225300+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 242908248383 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 80, p_button_sequence=> 5, p_button_plug_id => 242897225300+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>242893225269 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 80, p_branch_action=> '90', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>242891225267+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>242911248393 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 80, p_branch_action=> '70', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>242908248383+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Select the database object name you would like to export to an XML file format.'; wwv_flow_api.create_page_item( p_id=>242895225276 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 80, p_name=>'F4300_P80_XML_EXPORT_TABLE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 242897225300+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Table', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(table_name) d, table_name v'||chr(10)|| 'from sys.dba_tables'||chr(10)|| 'where owner=:F4300_P70_SCHEMA'||chr(10)|| 'and table_name not like ''BIN$%'''||chr(10)|| 'order by 1', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- Select Table -', p_lov_null_value=> '', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 61178725978816213 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 80, p_validation_name => 'export table not null', p_validation_sequence=> 10, p_validation => 'F4300_P80_XML_EXPORT_TABLE', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Export Table must be specified.', p_when_button_pressed=> 242891225267 + wwv_flow_api.g_id_offset, p_associated_item=> 242895225276 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P70_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 69926911444891227 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 80, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> 'Invalid Schema', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 80 -- begin null; end; null; end; / --application/pages/page_00090 prompt ...PAGE 90: Unload to XML -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 90, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Unload to XML', p_step_title=> 'Unload to XML', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731303316584395+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'SSPADAFO', p_last_upd_yyyymmddhh24miss => '20081110203425', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>90,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 242928263721 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 90, p_plug_name=> 'Unload to XML', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 242932263722 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 90, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104417024127237376 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6844408589765628 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 90, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select the columns you would like to be part of this XML document.
'; wwv_flow_api.create_page_plug ( p_id=> 221208308449881533 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 90, p_plug_name=> 'Unload to XML', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 109103601562416983 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 90, p_button_sequence=> 10, p_button_plug_id => 242928263721+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 242954438477 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 90, p_button_sequence=> 10, p_button_plug_id => 242928263721+wwv_flow_api.g_id_offset, p_button_name => 'EXPORTDATA', p_button_image_alt=> 'Unload Data', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'javascript:doSubmit(''EXPORTDATA'');', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 242920263706 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 90, p_button_sequence=> 5, p_button_plug_id => 242928263721+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>242922263709 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90, p_branch_action=> '90', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>242924263709 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90, p_branch_action=> '80', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>242920263706+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Select the database object columns you would like to export to an XML document.'; wwv_flow_api.create_page_item( p_id=>242926263712 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90, p_name=>'F4300_P90_XML_EXPORT_COLUMNS', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 242928263721+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Columns', p_source_type=> 'STATIC', p_display_as=> 'MULTIPLESELECT', p_lov => 'select htf.escape_sc(column_name) d, column_name r'||chr(10)|| ''||chr(10)|| 'from sys.dba_tab_columns'||chr(10)|| ''||chr(10)|| 'where table_name= :F4300_P80_XML_EXPORT_TABLE'||chr(10)|| ''||chr(10)|| 'and owner =:F4300_P70_SCHEMA', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 10, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'LEFT-TOP', p_field_alignment => 'LEFT', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>73486104619415064 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90, p_name=>'P90_FILE_EXPORT', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 242928263721+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'EXPORT.AS.FILE.Y', p_lov => '.'||to_char(87944005995777613 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>196679827776339627 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90, p_name=>'P90_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 242928263721+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_display_as=> 'STOP_AND_START_HTML_TABLE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Enter SQL WHERE clause to limit the rows that are selected. For example:'||chr(10)|| ''||chr(10)|| 'DEPTNO = 10'||chr(10)|| ''; wwv_flow_api.create_page_item( p_id=>196680604705342464 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90, p_name=>'P90_WHERE_CLAUSE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 242928263721+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Where Clause', p_source_type=> 'STATIC', p_display_as=> 'TEXTAREA', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 60, p_cMaxlength=> 4000, p_cHeight=> 5, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'ABOVE', p_field_alignment => 'LEFT', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 241192503550535804 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 90, p_computation_sequence => 10, p_computation_item=> 'P90_WHERE_CLAUSE', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare '||chr(10)|| ' w varchar2(30000);'||chr(10)|| 'begin'||chr(10)|| ' w := :p90_where_clause;'||chr(10)|| ' for i in 1..10 loop'||chr(10)|| ' w := rtrim(rtrim(rtrim(trim(w),'';/ ''),chr(10)),chr(13));'||chr(10)|| ' end loop;'||chr(10)|| ' return w;'||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 61180608448820628 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 90, p_validation_name => 'export cols not null', p_validation_sequence=> 10, p_validation => 'F4300_P90_XML_EXPORT_COLUMNS', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Export Columns must be specified.', p_when_button_pressed=> 242954438477 + wwv_flow_api.g_id_offset, p_associated_item=> 242926263712 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 99812303853555653 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 90, p_validation_name => 'no row exists', p_validation_sequence=> 20, p_validation => 'declare'||chr(10)|| ' l_cnt number := 0; '||chr(10)|| ' l_sql varchar2(32767) := null;'||chr(10)|| 'begin '||chr(10)|| ' l_sql := ''select count(*) from "''||:F4300_P80_XML_EXPORT_TABLE||''"'';'||chr(10)|| ' '||chr(10)|| ' l_cnt := wwv_flow_f4000_util.select_num (p_sql => l_sql, p_user => :F4300_P70_SCHEMA);'||chr(10)|| ' '||chr(10)|| ' if l_cnt = 0 then'||chr(10)|| ' return false;'||chr(10)|| ' else'||chr(10)|| ' return true;'||chr(10)|| ' end if;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'The selected table does not have any records to export. Please populate the table with data before doing an export.', p_when_button_pressed=> 242954438477 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare'||chr(10)|| ' xml_cols wwv_flow_global.vc_arr2;'||chr(10)|| 'begin'||chr(10)|| ' insert into wwv_flow_data_load_unload (DATA_TYPE, DATA_SCHEMA, DATA_TABLE)'||chr(10)|| ' values'||chr(10)|| ' (''XML EXPORT'', :F4300_P70_SCHEMA, :F4300_P80_XML_EXPORT_TABLE);'||chr(10)|| ' '||chr(10)|| ' --'||chr(10)|| ' -- if XML file export, define mime header'||chr(10)|| ' --'||chr(10)|| ' wwv_flow_init_htp_buffer;'||chr(10)|| ' wwv_flow.g_page_text_generated := true;'||chr(10)|| ' wwv_flow.g_unrecoverable_error := true;'||chr(10)|| ' owa_util.mime_heade'; p:=p||'r (''text/xml'',false, ''utf-8''); '||chr(10)|| ' if :P90_FILE_EXPORT = ''Y'' then'||chr(10)|| ' htp.p(''Content-Disposition: attachment; filename=''|| wwv_flow_utilities.escape_url( p_url => lower(:F4300_P80_XML_EXPORT_TABLE), p_url_charset => ''utf-8'')||''.xml'');'||chr(10)|| ' else'||chr(10)|| ' htp.p(''Content-Disposition: inline '' );'||chr(10)|| ' end if;'||chr(10)|| ' owa_util.http_header_close;'||chr(10)|| ''||chr(10)|| ' xml_cols:= wwv_flow_utilities.string_to_table2(:F4300_P90_XML_EXPORT_CO'; p:=p||'LUMNS);'||chr(10)|| ' '||chr(10)|| ' wwv_flow_dataload_xml.GETQUERYXMLPAGE (p_schema=>:F4300_P70_SCHEMA, '||chr(10)|| ' p_table=>:F4300_P80_XML_EXPORT_TABLE, '||chr(10)|| ' p_columns=> xml_cols,'||chr(10)|| ' p_where => :P90_WHERE_CLAUSE ); '||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 242990422910 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 90, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'start_xml_download', p_process_sql_clob => p, p_process_error_message=> '', p_process_when_button_id=>242954438477 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P70_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 122998032132816447 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 90, p_process_sequence=> 1, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'validate schema', p_process_sql_clob => p, p_process_error_message=> '', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P70_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 122999317371821648 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 90, p_process_sequence=> 20, p_process_point=> 'ON_SUBMIT_BEFORE_COMPUTATION', p_process_type=> 'PLSQL', p_process_name=> 'validate schema', p_process_sql_clob => p, p_process_error_message=> '', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 90 -- begin null; end; null; end; / --application/pages/page_00150 prompt ...PAGE 150: Unload to Text -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 150, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Unload to Text', p_step_title=> 'Unload to Text', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125926', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>150,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6690319912669219 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 150, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27155313458825518 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 150, p_plug_name=> 'Unload to Text', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27155716362825519 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 150, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104358211508848205 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'
You can unload the contents of a table to a structured text file. For example you can export an entire table to a comma delimited file (.CSV).
'||chr(10)|| 'Select the database schema that owns the table you would like unload to Text.
'; wwv_flow_api.create_page_plug ( p_id=> 220843108075654305 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 150, p_plug_name=> 'Unload to Text', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> 'Unable to display page region #SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> 'Region generated 20-SEP-2002 14:00:18'); end; / begin wwv_flow_api.create_page_button( p_id => 109061621685375483 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 150, p_button_sequence=> 10, p_button_plug_id => 27155313458825518+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27154700232825500 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 150, p_button_sequence=> 10, p_button_plug_id => 27155313458825518+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>27154924917825505 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 150, p_branch_action=> '160', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>27154700232825500+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Select the database schema that owns the object you would like to export.'; wwv_flow_api.create_page_item( p_id=>27155123411825508 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 150, p_name=>'F4300_P150_SCHEMA', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 27155313458825518+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'LIST_SCHEMA_OWNERS', p_lov => 'select htf.escape_sc(c.schema) d, c.schema v'||chr(10)|| 'from wwv_flow_company_schemas c,'||chr(10)|| ' wwv_flow_fnd_user u'||chr(10)|| 'where c.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.user_name = :flow_user and'||chr(10)|| ' (u.ALLOW_ACCESS_TO_SCHEMAS is null or'||chr(10)|| ' instr('':''||u.ALLOW_ACCESS_TO_SCHEMAS||'':'','':''||c.schema||'':'')>0)'||chr(10)|| 'order by 1'||chr(10)|| '', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 65600608761173558 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 150, p_validation_name => 'schema not null', p_validation_sequence=> 10, p_validation => 'F4300_P150_SCHEMA', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Schema must be specified.', p_when_button_pressed=> 27154700232825500 + wwv_flow_api.g_id_offset, p_associated_item=> 27155123411825508 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin --------------------------------------- -- ...updatable report columns for page 150 -- begin null; end; null; end; / --application/pages/page_00160 prompt ...PAGE 160: Unload to Text -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 160, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Unload to Text', p_step_title=> 'Unload to Text', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'SSPADAFO', p_last_upd_yyyymmddhh24miss => '20081110154816', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>160,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6846024866770273 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 160, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27157828903849867 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 160, p_plug_name=> 'Unload to Text', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27158200800849869 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 160, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104358211508848205 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select the database table you would like unload to a plain text format.
'; wwv_flow_api.create_page_plug ( p_id=> 220882616789760954 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 160, p_plug_name=> 'Unload to Text', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top" align="right"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 109067307618380928 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 160, p_button_sequence=> 10, p_button_plug_id => 27157828903849867+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27156823847849862 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 160, p_button_sequence=> 10, p_button_plug_id => 27157828903849867+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27157022916849863 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 160, p_button_sequence=> 5, p_button_plug_id => 27157828903849867+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>27157426106849865 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 160, p_branch_action=> '170', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>27156823847849862+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>27157223607849864 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 160, p_branch_action=> '150', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>27157022916849863+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Select the database table you would like export to a plain text format.'; wwv_flow_api.create_page_item( p_id=>27157619740849866 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 160, p_name=>'F4300_P160_ASC_EXPORT_TABLE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 27157828903849867+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Table', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(table_name) a, table_name b'||chr(10)|| 'from sys.dba_tables'||chr(10)|| 'where owner=:F4300_P150_SCHEMA'||chr(10)|| 'and table_name not like ''BIN$%'''||chr(10)|| 'order by table_name', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- Select Table -', p_lov_null_value=> '', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 65603025384178278 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 160, p_validation_name => 'export table not null', p_validation_sequence=> 10, p_validation => 'F4300_P160_ASC_EXPORT_TABLE', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Export table must be specified.', p_when_button_pressed=> 27156823847849862 + wwv_flow_api.g_id_offset, p_associated_item=> 27157619740849866 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P150_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 69925124126885447 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 160, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> 'Invalid Schema', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 160 -- begin null; end; null; end; / --application/pages/page_00170 prompt ...PAGE 170: Unload to Text -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 170, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Unload to Text', p_step_title=> 'Unload to Text', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'SSPADAFO', p_last_upd_yyyymmddhh24miss => '20081110203648', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>170,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6847402487773366 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 170, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27161124048881816 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 170, p_plug_name=> 'Unload to Text', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27161504570881817 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 170, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104358211508848205 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'select owner, '||chr(10)|| 'table_name, '||chr(10)|| 'column_name,'||chr(10)|| 'data_type'||chr(10)|| 'from sys.dba_tab_columns'||chr(10)|| 'where owner = :F4300_P150_SCHEMA'||chr(10)|| 'and table_name = :F4300_P160_ASC_EXPORT_TABLE'||chr(10)|| 'and data_type in (''SDO_GEOMETRY'',''BLOB'',''BFILE'',''ORDAUDIO'',''ORDIMAGE'',''ORDIMAGESIGNATURE'',''ORDVIDEO'',''ORDDOC'',''URITYPE'',''DBURITYPE'',''XDBURITYPE'',''HTTPURITYPE'',''XMLTYPE'')'; wwv_flow_api.create_report_region ( p_id=> 57290213471124955 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 170, p_name=> 'Columns Unable to Unload', p_region_name=>'', p_template=> 21175625245088699+ wwv_flow_api.g_id_offset, p_display_sequence=> 50, p_display_column=> 1, p_display_point=> 'AFTER_SHOW_ITEMS', p_source=> s, p_source_type=> 'SQL_QUERY', p_display_error_message=> '#SQLERRM#', p_display_when_condition=> 'select 1'||chr(10)|| 'from sys.dba_tab_columns'||chr(10)|| 'where owner = :F4300_P150_SCHEMA'||chr(10)|| 'and table_name = :F4300_P160_ASC_EXPORT_TABLE'||chr(10)|| 'and data_type in (''SDO_GEOMETRY'',''BLOB'',''BFILE'',''ORDAUDIO'',''ORDIMAGE'',''ORDIMAGESIGNATURE'',''ORDVIDEO'',''ORDDOC'',''URITYPE'',''DBURITYPE'',''XDBURITYPE'',''HTTPURITYPE'',''XMLTYPE'')', p_display_condition_type=> 'EXISTS', p_plug_caching=> 'NOT_CACHED', p_customized=> '0', p_translate_title=> 'Y', p_query_row_template=> 10583525904875984+ wwv_flow_api.g_id_offset, p_query_headings_type=> 'COLON_DELMITED_LIST', p_query_num_rows=> '500', p_query_options=> 'DERIVED_REPORT_COLUMNS', p_query_show_nulls_as=> ' - ', p_query_break_cols=> '1:2', p_query_no_data_found=> 'No data found.', p_query_num_rows_type=> 'NEXT_PREVIOUS_LINKS', p_query_row_count_max=> '500', p_pagination_display_position=> 'BOTTOM_RIGHT', p_break_type_flag=> 'DEFAULT_BREAK_FORMATTING', p_csv_output=> 'N', p_query_asc_image=> 'arrow_down_gray_dark.gif', p_query_asc_image_attr=> 'width="13" height="12"', p_query_desc_image=> 'arrow_up_gray_dark.gif', p_query_desc_image_attr=> 'width="13" height="12"', p_plug_query_strip_html=> 'Y', p_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 57290511758124966 + wwv_flow_api.g_id_offset, p_region_id=> 57290213471124955 + 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=> 'OWNER', p_column_display_sequence=> 1, p_column_heading=> 'Schema', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 57290602602124966 + wwv_flow_api.g_id_offset, p_region_id=> 57290213471124955 + 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=> 'TABLE_NAME', p_column_display_sequence=> 2, p_column_heading=> 'Table', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 57290722093124966 + wwv_flow_api.g_id_offset, p_region_id=> 57290213471124955 + 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=> 'COLUMN_NAME', p_column_display_sequence=> 3, p_column_heading=> 'Column', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; begin s := null; wwv_flow_api.create_report_columns ( p_id=> 57312503868178994 + wwv_flow_api.g_id_offset, p_region_id=> 57290213471124955 + 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=> 'DATA_TYPE', p_column_display_sequence=> 4, p_column_heading=> 'Data Type', p_column_alignment=>'LEFT', p_heading_alignment=>'LEFT', 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_pk_col_source=> s, p_column_comment=>''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select the columns you would like to be part of this plain text file. Only Oracle built in data types except BLOB and BFILE are supported to unload.
'; wwv_flow_api.create_page_plug ( p_id=> 220892315450788979 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 170, p_plug_name=> 'Unload to Text', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 109074823894385635 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 170, p_button_sequence=> 10, p_button_plug_id => 27161124048881816+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27159721723881807 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 170, p_button_sequence=> 10, p_button_plug_id => 27161124048881816+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27159912210881808 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 170, p_button_sequence=> 5, p_button_plug_id => 27161124048881816+wwv_flow_api.g_id_offset, p_button_name => 'PREVIOUS', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>27160330589881809 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170, p_branch_action=> '180', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>27159721723881807+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>27160511447881810 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170, p_branch_action=> '160', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>27159912210881808+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Select the columns you would like to be part of this plain text file. Only Oracle built in data types except BLOB and BFILE are supported to unload.'; wwv_flow_api.create_page_item( p_id=>27160726961881811 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170, p_name=>'F4300_P170_ASC_EXPORT_COLUMNS', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 27161124048881816+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Columns', p_source_type=> 'STATIC', p_display_as=> 'MULTIPLESELECT', p_lov => 'select htf.escape_sc(column_name) a, column_name b'||chr(10)|| 'from sys.dba_tab_columns'||chr(10)|| 'where table_name= :F4300_P160_ASC_EXPORT_TABLE'||chr(10)|| 'and owner =:F4300_P150_SCHEMA'||chr(10)|| 'and data_type not in (''SDO_GEOMETRY'',''BLOB'',''BFILE'',''ORDAUDIO'',''ORDIMAGE'',''ORDIMAGESIGNATURE'',''ORDVIDEO'',''ORDDOC'',''URITYPE'',''DBURITYPE'',''XDBURITYPE'',''HTTPURITYPE'',''XMLTYPE'')', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 10, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT-TOP', p_field_alignment => 'LEFT', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Identifies selected table.'; wwv_flow_api.create_page_item( p_id=>196659907635229752 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170, p_name=>'P170_TABLE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 2, p_item_plug_id => 27161124048881816+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default => '&F4300_P160_ASC_EXPORT_TABLE.', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Table:', p_source=>'F4300_P160_ASC_EXPORT_TABLE', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_ESCAPE_SC', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap', p_cattributes_element=>'class="fielddatabold"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Enter SQL WHERE clause to limit the rows that are selected. For example:'||chr(10)|| ''||chr(10)|| 'DEPTNO = 10'||chr(10)|| ''; wwv_flow_api.create_page_item( p_id=>196663809497239782 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170, p_name=>'P170_WHERE_CLAUSE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 27161124048881816+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Where Clause', p_source_type=> 'STATIC', p_display_as=> 'TEXTAREA', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 60, p_cMaxlength=> 2000, p_cHeight=> 6, p_cAttributes=> 'nowrap="nowrap"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 2, p_rowspan => 1, p_label_alignment => 'ABOVE', p_field_alignment => 'LEFT', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>196665229929245689 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170, p_name=>'P170_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 11, p_item_plug_id => 27161124048881816+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_display_as=> 'STOP_AND_START_HTML_TABLE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 241190207098517984 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 170, p_computation_sequence => 10, p_computation_item=> 'P170_WHERE_CLAUSE', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare w varchar2(30000);'||chr(10)|| 'begin'||chr(10)|| 'w := :P170_WHERE_CLAUSE;'||chr(10)|| 'for i in 1..10 loop'||chr(10)|| ' w := rtrim(rtrim(rtrim(trim(w),'';/ ''),chr(10)),chr(13));'||chr(10)|| 'end loop;'||chr(10)|| 'return w;'||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 65604806815182367 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 170, p_validation_name => 'export col not null', p_validation_sequence=> 10, p_validation => 'F4300_P170_ASC_EXPORT_COLUMNS', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Export columns must be specified.', p_when_button_pressed=> 27159721723881807 + wwv_flow_api.g_id_offset, p_associated_item=> 27160726961881811 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P150_SCHEMA);'; wwv_flow_api.create_page_process( p_id => 196656907504220271 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 170, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'validate schema', p_process_sql_clob => p, p_process_error_message=> '', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 170 -- begin null; end; null; end; / --application/pages/page_00180 prompt ...PAGE 180: Unload to Text -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 180, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Unload to Text', p_step_title=> 'Unload to Text', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215731706086585147+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'JOEL', p_last_upd_yyyymmddhh24miss => '20080930135448', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>180,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6848509413775366 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 180, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27163003595914791 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 180, p_plug_name=> 'Unload to Text', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 27163907693981199 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 180, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 104358211508848205 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => '(null)', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Specify the type of separator to be used to separate column values on each line and how to identify text strings in a column.'; wwv_flow_api.create_page_plug ( p_id=> 220896430126802623 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 180, p_plug_name=> 'Unload to Text', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 109080707403390321 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 180, p_button_sequence=> 10, p_button_plug_id => 27163003595914791+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27163504640971637 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 180, p_button_sequence=> 10, p_button_plug_id => 27163003595914791+wwv_flow_api.g_id_offset, p_button_name => 'EXPORTDATA', p_button_image_alt=> 'Unload Data', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'javascript:doSubmit(''EXPORTDATA'');', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 27164230828990784 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 180, p_button_sequence=> 10, p_button_plug_id => 27163003595914791+wwv_flow_api.g_id_offset, p_button_name => 'previous', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>151088609408189516 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 180, p_branch_action=> 'f?p=&APP_ID.:180:&SESSION.::&DEBUG.:::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_when_button_id=>27163504640971637+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 14-AUG-2003 17:18 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>27164522069990788 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 180, p_branch_action=> '170', p_branch_point=> 'BEFORE_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>27164230828990784+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'If you wish to export the data with column names, check mark this item.'; wwv_flow_api.create_page_item( p_id=>5580720856115889 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 180, p_name=>'F4300_P180_INC_COLUMN_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 27163003595914791+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'INCLUDE.COL.NAMES.Y', p_lov => '.'||to_char(87945815476789819 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'
,
). To use a tab as a column separator, enter a backslash followed by the letter "t" (
).Copy the data you want to load from a spreadsheet program, such as Microsoft Excel, and paste it into the Data field.
'; wwv_flow_api.create_page_plug ( p_id=> 221507019931389373 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 200, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 112733728255232765 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 200, p_button_sequence=> 10, p_button_plug_id => 112725909100220750+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 112736203452235067 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 200, p_button_sequence=> 10, p_button_plug_id => 112725909100220750+wwv_flow_api.g_id_offset, p_button_name => 'NEXT', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'javascript:p200_ClobUpload();', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204374305269310796 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 200, p_button_sequence=> 10, p_button_plug_id => 112725909100220750+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>51886005938559488 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200, p_branch_action=> '210', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>112736203452235067+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 30-MAY-2003 14:04 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>204374726822310798 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200, p_branch_action=> '230', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204374305269310796+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Identify a column separator character. Use \t for tab separators.
'; wwv_flow_api.create_page_item( p_id=>4208210436082721 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200, p_name=>'F4300_P200_SEPARATOR', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 112725909100220750+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => ',', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Separator', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 2, p_cMaxlength=> 2, p_cHeight=> 1, p_cAttributes=> 'nowrap="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=>'F4300_P230_LOAD_TYPE', p_display_when2=>'CSV', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_reference_id => 3832614597433912, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Identify optional enclosed by character.
'; wwv_flow_api.create_page_item( p_id=>4209527059087470 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200, p_name=>'F4300_P200_ENCLOSED_BY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 112725909100220750+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Enclosed By', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 2, p_cMaxlength=> 2, p_cHeight=> 1, p_cAttributes=> 'nowrap="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=>'F4300_P230_LOAD_TYPE', p_display_when2=>'CSV', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_reference_id => 3832902320433912, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'If your data contains international currency symbol, enter it here.
'||chr(10)|| 'For example, if your data has "€1,234.56" or "¥1,234.56", enter "€" or "¥". Otherwise the data will not load correctly.
'; wwv_flow_api.create_page_item( p_id=>21275331197419000 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200, p_name=>'P200_CURRENCY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 60, p_item_plug_id => 21272823578416828+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'declare'||chr(10)|| ' l_return_val varchar2(30) := ''$'';'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select value'||chr(10)|| ' from nls_session_parameters'||chr(10)|| ' where parameter = ''NLS_CURRENCY'') loop'||chr(10)|| ' l_return_val := c1.value;'||chr(10)|| ' exit;'||chr(10)|| ' end loop;'||chr(10)|| ' --'||chr(10)|| ' return l_return_val;'||chr(10)|| 'end; ', p_item_default_type => 'PLSQL_FUNCTION_BODY', p_prompt=>'Currency Symbol', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 1, p_cMaxlength=> 1, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'A group separator is a character that separates integer groups, for example to show thousands and millions.
'||chr(10)|| 'Any character can be the group separator. The character specified must be single-byte, and the group separator must be different from any other decimal character. The character can be a space, but cannot be a numeric character or any of the following:
'||chr(10)|| 'The decimal character separates the integer and decimal parts of a number.
'||chr(10)|| 'Any character can be the decimal character. The character specified must be single-byte, and the decimal character must be different from group separator. The character can be a space, but cannot be any numeric character or any of the following characters:
'||chr(10)|| 'Select this option if your data contains column names in the first row. Consider the following example:
'||chr(10)|| ''||chr(10)|| 'Name Salary Commission'||chr(10)|| 'Clark 1000 10'||chr(10)|| 'Scott 2000 20'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| '
'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Name Salary Commission'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Clark 1000 10'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Scott 2000 20'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''; wwv_flow_api.create_page_item( p_id=>112749902593269315 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200, p_name=>'F4300_P200_IS_FIELD_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 50, p_item_plug_id => 112725909100220750+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'Y', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'ISCOLUMN.NAME.TEXT', p_lov => 'select ''''||'||chr(10)|| 'wwv_flow_lang.system_message(''F4300_INSTRUCT_TEXT'')||'''' d, ''Y'' r from dual', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddataboldl"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>112754820696276154 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200, p_name=>'F4300_P200_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 112725909100220750+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_display_as=> 'STOP_AND_START_HTML_TABLE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="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_is_persistent=> 'Y', p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 49528010062670927 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 200, p_computation_sequence => 10, p_computation_item=> 'F4300_P200_IS_FIELD_NAME', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'STATIC_ASSIGNMENT', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'N', p_compute_when => 'F4300_P200_IS_FIELD_NAME', p_compute_when_type=>'ITEM_IS_NULL'); null; end; / begin wwv_flow_api.create_page_validation( p_id => 118390630315447740 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 200, p_validation_name => 'data not null', p_validation_sequence=> 10, p_validation => 'F4300_P200_EXCEL_DATA', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Data must be specified.', p_associated_item=> 112740117271247331 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52678302539369530 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 200, p_validation_name => 'cannot be greater than 30KB', p_validation_sequence=> 20, p_validation => 'if length(:F4300_P200_EXCEL_DATA) > 30000 then'||chr(10)|| ' return false;'||chr(10)|| 'else'||chr(10)|| ' return true;'||chr(10)|| 'end if;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'Data pasted is greater than 30KB. Save the file in a comma delimited (csv) or tab delimted format. Then upload the file to load the data.', p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 4210720957095218 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 200, p_validation_name => 'separator not null', p_validation_sequence=> 30, p_validation => 'F4300_P200_SEPARATOR', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Separator must be specified.', p_validation_condition=> 'F4300_P230_LOAD_TYPE', p_validation_condition2=> 'CSV', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 112736203452235067 + wwv_flow_api.g_id_offset, p_associated_item=> 4208210436082721 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare '||chr(10)|| ' l_first_row_is_col_name boolean := false;'||chr(10)|| ' q varchar2(32767) := null;'||chr(10)|| ' l_data clob := empty_clob();'||chr(10)|| 'begin'||chr(10)|| ' select clob001 into l_data from apex_collections where collection_name=''CLOB_CONTENT'';'||chr(10)|| ' if :F4300_P200_IS_FIELD_NAME = ''Y'' then'||chr(10)|| ' l_first_row_is_col_name := true;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' wwv_flow_load_excel_data.get_table_info ('||chr(10)|| ' p_string => l_data,'||chr(10)|| ' p_separator '; p:=p||' => lower(nvl(:F4300_P200_SEPARATOR,''\t'')),'||chr(10)|| ' p_enclosed_by => :F4300_P200_ENCLOSED_BY, '||chr(10)|| ' p_first_row_is_col_name => l_first_row_is_col_name,'||chr(10)|| ' p_currency => :P200_CURRENCY,'||chr(10)|| ' p_numeric_chars => :P200_DECIMAL_CHARACTER||:P200_GROUP_SEPARATOR,'||chr(10)|| ' p_load_type => ''EXCEL'''||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 117624930761654964 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 200, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'create collection', p_process_sql_clob => p, p_process_error_message=> 'Error loading excel data.', p_process_when_button_id=>112736203452235067 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 200 -- begin null; end; null; end; / --application/pages/page_00210 prompt ...PAGE 210: Load Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph:=ph||''; wwv_flow_api.create_page( p_id => 210, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load Data', p_step_title=> 'Load Data', p_html_page_onload=>'onload="f_ImportDataTypeOnload()"', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => ' ', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125926', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>210,p_text=>h); wwv_flow_api.set_html_page_header(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>210,p_text=>ph); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6693915541677404 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 210, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'wwv_flow_load_data.display_ntable_property(p_collection_name => ''EXCEL_IMPORT'');'; wwv_flow_api.create_page_plug ( p_id=> 112768526710303685 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 210, p_plug_name=> 'Set Table Properties', p_region_name=>'', p_plug_template=> 279748823389483962+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'PLSQL_PROCEDURE', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 112771111398310853 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 210, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 112716503290208213 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 112785418706337777 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 210, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'
This page previews how your table will look. Enter a table name, change the column names or data types, and specify which columns to include.
'; wwv_flow_api.create_page_plug ( p_id=> 221508920062398800 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 210, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 112775326318317322 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 210, p_button_sequence=> 10, p_button_plug_id => 112785418706337777+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 116940415820894908 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 210, p_button_sequence=> 10, p_button_plug_id => 112785418706337777+wwv_flow_api.g_id_offset, p_button_name => 'Next', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 112777203593320251 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 210, p_button_sequence=> 10, p_button_plug_id => 112785418706337777+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>116940829853894912 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 210, p_branch_action=> '220', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>116940415820894908+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>112777626990320254 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 210, p_branch_action=> '200', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>112777203593320251+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>77784300806046762 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 210, p_name=>'P210_PRESERVE_CASE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 25, p_item_plug_id => 112785418706337777+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'PRESERVE.CASE.Y', p_lov => '.'||to_char(87931511182663028 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'NO', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT', p_field_alignment => 'LEFT', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>100051613844477110 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 210, p_name=>'F4300_P210_DUMMY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 112785418706337777+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_prompt=>'Dummy', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="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_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Select the database schema you would like to create and load data into.'; wwv_flow_api.create_page_item( p_id=>112792123870350640 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 210, p_name=>'F4300_P200_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 112785418706337777+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'CREATE_TABLE_SCHEMAS', p_lov => 'declare'||chr(10)|| ' q varchar2(32767) := null;'||chr(10)|| 'begin'||chr(10)|| ' q:=q||''select htf.escape_sc(c.schema) d, c.schema v '';'||chr(10)|| ' q:=q||''from wwv_flow_company_schemas c, '';'||chr(10)|| ' q:=q||'' wwv_flow_fnd_user u '';'||chr(10)|| ' q:=q||''where c.security_group_id = :flow_security_group_id and '';'||chr(10)|| ' q:=q||'' u.security_group_id = :flow_security_group_id and '';'||chr(10)|| ' q:=q||'' u.user_name = :flow_user and '';'||chr(10)|| ' q:=q||'' (u.ALLOW_ACCESS_TO_SCHEMAS is null or '';'||chr(10)|| ' q:=q||'' instr('''':''''||u.ALLOW_ACCESS_TO_SCHEMAS||'''':'''','''':''''||c.schema||'''':'''')>0) '';'||chr(10)|| ' if wwv_flow_global.g_xe then'||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs '';'||chr(10)|| ' q:=q||'' where privilege = ''''CREATE TABLE'''' '';'||chr(10)|| ' q:=q||'' and grantee = c.schema '';'||chr(10)|| ' q:=q||'' union all '';'||chr(10)|| ' q:=q||'' select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs s, sys.dba_role_privs r '';'||chr(10)|| ' q:=q||'' where r.granted_role=s.grantee '';'||chr(10)|| ' q:=q||'' and r.grantee = c.schema '';'||chr(10)|| ' q:=q||'' and s.privilege = ''''CREATE TABLE'''') '';'||chr(10)|| ' else'||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_sys_privs '';'||chr(10)|| ' q:=q||'' where privilege = ''''CREATE TABLE'''' '';'||chr(10)|| ' q:=q||'' and grantee = c.schema) '';'||chr(10)|| ' end if; '||chr(10)|| ' q:=q||'' and exists (select null '';'||chr(10)|| ' q:=q||'' from sys.dba_users '';'||chr(10)|| ' q:=q||'' where username = c.schema) '';'||chr(10)|| ' q:=q||''order by 1 '';'||chr(10)|| ' '||chr(10)|| ' return q;'||chr(10)|| 'end;', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_read_only_when=>'return wwv_flow_global.g_xe', p_read_only_when_type=>'FUNCTION_BODY', p_read_only_disp_attr=>'class="fielddatabold"', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Use this page to identify the primary key of the table. If no single column in your data set is appropriate as a primary key then identify a new column as the primary key. A primary key is used to uniquely identify a row in a table.
'; wwv_flow_api.create_page_plug ( p_id=> 221515609374424159 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 220, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 117068923158076792 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220, p_button_sequence=> 10, p_button_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 117073012899083351 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220, p_button_sequence=> 10, p_button_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_button_name => 'Finish', p_button_image_alt=> 'Load Data', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 117070800779079776 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220, p_button_sequence=> 10, p_button_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>117073412886083354 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_branch_action=> '11', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>117073012899083351+ wwv_flow_api.g_id_offset, p_branch_sequence=> 1, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>29278228032445971 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_branch_action=> '220', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 2, p_branch_condition_type=> 'REQUEST_EQUALS_CONDITION', p_branch_condition=> 'P200_PK_TYPE', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 04-FEB-2003 15:30 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>52010014229160977 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_branch_action=> 'f?p=&FLOW_ID.:220:&SESSION.::&DEBUG.:::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_sequence=> 99, p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 30-MAY-2003 18:31 by MIKE'); wwv_flow_api.create_page_branch( p_id=>117071203531079778 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_branch_action=> '210', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>117070800779079776+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Name the primary key constraint name.'; wwv_flow_api.create_page_item( p_id=>29225226404227933 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_name=>'P200_PK1_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 22, p_item_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Constraint Name', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Choose how you would like to have your primary key computed. Or; choose to not have your primary key''s value set.'; wwv_flow_api.create_page_item( p_id=>29231303248249589 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_name=>'P200_PK_TYPE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 23, p_item_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'NEW_SEQUENCE', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Primary Key Population:', p_source_type=> 'STATIC', p_display_as=> 'RADIOGROUP_WITH_SUBMIT', p_named_lov=> 'PK_TYPES', p_lov => '.'||to_char(29232624018252340 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT-TOP', p_field_alignment => 'LEFT', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Identify the name of an existing database sequence which will be used to populate the primary key value.'; wwv_flow_api.create_page_item( p_id=>29236325197265446 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_name=>'P200_EXISTING_SEQUENCE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 60, p_item_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Sequence', p_source_type=> 'STATIC', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(sequence_name) a, sequence_name b from sys.dba_sequences '||chr(10)|| 'where sequence_owner = :F4300_P200_OWNER'||chr(10)|| 'order by sequence_name', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- Select Sequence -', p_lov_null_value=> '0', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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=>':P200_PK_TYPE = ''EXISTING_SEQUENCE''', p_display_when_type=>'PLSQL_EXPRESSION', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Identify the name of new database sequence which will be created for the purpose of populating this new tables primary key.'; wwv_flow_api.create_page_item( p_id=>29241232039286358 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_name=>'P200_NEW_SEQUENCE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 70, p_item_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Sequence', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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=>':P200_PK_TYPE = ''NEW_SEQUENCE''', p_display_when_type=>'PLSQL_EXPRESSION', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>51623109797120855 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_name=>'P220_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 16, p_item_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => ' ', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'You can either select existing column or add new column as primary key.'; wwv_flow_api.create_page_item( p_id=>52007705655139616 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_name=>'P200_PK1_OPTION', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'NEW_KEY', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Primary Key From:', p_source_type=> 'STATIC', p_display_as=> 'RADIOGROUP_WITH_SUBMIT', p_named_lov=> 'USE.EXISTING.COL', p_lov => '.'||to_char(87933423434676001 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'RIGHT-TOP', p_field_alignment => 'LEFT', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Enter the name of the new column to identify the row in the table'; wwv_flow_api.create_page_item( p_id=>52012902417204955 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_name=>'P200_PK1_2', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 21.5, p_item_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'ID', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'New Primary Key Column', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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=>'P200_PK1_OPTION', p_display_when2=>'NEW_KEY', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Schema that owns the table.'; wwv_flow_api.create_page_item( p_id=>117095028927104885 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_name=>'P220_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema:', p_source=>'F4300_P200_OWNER', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_AND_SAVE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Name of the table to load the data into'; wwv_flow_api.create_page_item( p_id=>117097720517108862 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_name=>'P220_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 15, p_item_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'NO', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Table Name:', p_source=>'F4300_P200_TABLE_NAME', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Specify which column is the primary key of your table. A primary key is a column which uniquely identifies a row. Oracle does not require that your table have a primary key, however this wizard requires you identify a primary key.'; wwv_flow_api.create_page_item( p_id=>117102827837120664 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_name=>'P200_PK1', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 21, p_item_plug_id => 117056604391055559+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Primary Key', p_source_type=> 'ALWAYS_NULL', p_display_as=> 'COMBOBOX', p_lov => 'select htf.escape_sc(c001)||''(''||c002||'')'' a, c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''EXCEL_IMPORT'' and c001 is not null'||chr(10)|| ' order by seq_id'||chr(10)|| '', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'- Select Primary Key -', p_lov_null_value=> '0', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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=>'P200_PK1_OPTION', p_display_when2=>'EXISTING_KEY', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 13590021101989074 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_computation_sequence => 10, p_computation_item=> 'P200_PK1_2', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| ' l_pk varchar2(40) := null;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''EXCEL_IMPORT'''||chr(10)|| ' and upper(c001) = ''ID'') '||chr(10)|| ' loop'||chr(10)|| ' for i in 1..10 loop'||chr(10)|| ' for c2 in (select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''EXCEL_IMPORT'''||chr(10)|| ' and upper(c001) = ''ID''||i) '||chr(10)|| ' loop'||chr(10)|| ' l_pk := ''ID'';'||chr(10)|| ' end loop;--c2'||chr(10)|| ' if l_pk is null then'||chr(10)|| ' return ''ID''||i;'||chr(10)|| ' else'||chr(10)|| ' l_pk := null;'||chr(10)|| ' end if;'||chr(10)|| ' end loop;--i'||chr(10)|| ' end loop;--c1'||chr(10)|| ' return ''ID'';'||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>'%null%'); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 29248007498307620 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_computation_sequence => 10, p_computation_item=> 'P200_PK1_NAME', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'wwv_flow_sw_util.generate_pk_name(replace(:F4300_P200_TABLE_NAME,'' '',''_''));', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 29250213170318666 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_computation_sequence => 10, p_computation_item=> 'P200_NEW_SEQUENCE', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'wwv_flow_sw_util.generate_seq_name(replace(:F4300_P200_TABLE_NAME,'' '',''_''));', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_computation( p_id=> 29253014255347439 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 220, p_computation_sequence => 10, p_computation_item=> 'P200_PK1', p_computation_point=> 'BEFORE_HEADER', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| 'begin'||chr(10)|| ' for c1 in ('||chr(10)|| ' select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''EXCEL_IMPORT'''||chr(10)|| ' and upper(c001) = ''ID'''||chr(10)|| ' ) loop'||chr(10)|| ' return c1.c001;'||chr(10)|| ' end loop;'||chr(10)|| ' for c1 in ('||chr(10)|| ' select c001'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''EXCEL_IMPORT'''||chr(10)|| ' and upper(c001) like ''%ID'''||chr(10)|| ' ) loop'||chr(10)|| ' return c1.c001;'||chr(10)|| ' end loop;'||chr(10)|| 'end;', p_compute_when => 'P200_PK1', p_compute_when_type=>'ITEM_IS_NULL_OR_ZERO'); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29254418196358029 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220, p_validation_name => 'SEQUENCE not null', p_validation_sequence=> 10, p_validation => 'P200_EXISTING_SEQUENCE', p_validation_type => 'ITEM_NOT_ZERO', p_error_message => 'Sequence must be specified.', p_validation_condition=> 'P200_PK_TYPE', p_validation_condition2=> 'EXISTING_SEQUENCE', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351 + wwv_flow_api.g_id_offset, p_associated_item=> 29236325197265446 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29266319281386761 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220, p_validation_name => 'PK_NAME available', p_validation_sequence=> 20, p_validation => 'begin'||chr(10)|| ''||chr(10)|| 'if not wwv_flow_builder.is_valid_identifier(''"''||:P200_PK1_NAME||''"'') then'||chr(10)|| ' return '||chr(10)|| ' wwv_flow_lang.system_message(''F4300.NOT_VALID_PK_NAME'',:P200_PK1_NAME);'||chr(10)|| 'end if;'||chr(10)|| ' '||chr(10)|| 'if not wwv_flow_sw_util.is_available_name(:P200_PK1_NAME, :P220_OWNER ) then'||chr(10)|| ' return '||chr(10)|| ' wwv_flow_lang.system_message(''F4300.F4500.NAME_ALREADY_USED'',:P200_PK1_NAME);'||chr(10)|| 'end if;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => 'Error.', p_associated_item=> 29225226404227933 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52417430985005732 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220, p_validation_name => 'PK not null', p_validation_sequence=> 30, p_validation => 'P200_PK1', p_validation_type => 'ITEM_NOT_ZERO', p_error_message => 'Primary key must be specified.', p_validation_condition=> 'P200_PK1_OPTION', p_validation_condition2=> 'EXISTING_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351 + wwv_flow_api.g_id_offset, p_associated_item=> 117102827837120664 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52419018303011469 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220, p_validation_name => 'PK not null', p_validation_sequence=> 35, p_validation => 'P200_PK1_2', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Primary key must be specified.', p_validation_condition=> 'P200_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351 + wwv_flow_api.g_id_offset, p_associated_item=> 52012902417204955 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52420808391018166 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220, p_validation_name => 'PK not > 30 chars', p_validation_sequence=> 38, p_validation => 'if length(:P200_PK1_2) > 30 then'||chr(10)|| ' return false;'||chr(10)|| 'end if;'||chr(10)|| 'return true;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'Primary Key column name cannot be longer than 30 characters.', p_validation_condition=> 'P200_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 52424804066054749 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220, p_validation_name => 'PK gen option needs to be auto', p_validation_sequence=> 39, p_validation => 'if :P200_PK_TYPE = ''NOT_GENERATED'' then'||chr(10)|| ' return false;'||chr(10)|| 'end if;'||chr(10)|| 'return true;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'Primary Key must be generated from a sequence when creating a new primary key.', p_validation_condition=> 'P200_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351 + wwv_flow_api.g_id_offset, p_associated_item=> 29231303248249589 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29270400759419169 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220, p_validation_name => 'PK_NAME not null', p_validation_sequence=> 40, p_validation => 'P200_PK1_NAME', p_validation_type => 'ITEM_NOT_NULL_OR_ZERO', p_error_message => 'PK name must be specified.', p_when_button_pressed=> 117073012899083351 + wwv_flow_api.g_id_offset, p_associated_item=> 29225226404227933 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 29274101928429039 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220, p_validation_name => 'SEQ_NAME available', p_validation_sequence=> 50, p_validation => 'begin'||chr(10)|| 'if not wwv_flow_builder.is_valid_identifier(''"''||:P200_NEW_SEQUENCE||''"'') then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.F4500.NOT_VALID_SEQ_NAME'',:P200_NEW_SEQUENCE);'||chr(10)|| 'end if;'||chr(10)|| ' '||chr(10)|| 'if not wwv_flow_sw_util.is_available_name(:P200_NEW_SEQUENCE, :P220_OWNER ) then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4300.F4500.NAME_ALREADY_USED'',:P200_NEW_SEQUENCE);'||chr(10)|| 'end if;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => 'Error.', p_validation_condition=> 'P200_PK_TYPE', p_validation_condition2=> 'NEW_SEQUENCE', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351 + wwv_flow_api.g_id_offset, p_associated_item=> 29241232039286358 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 48704226490898036 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 220, p_validation_name => 'no duplicate PK col', p_validation_sequence=> 60, p_validation => 'declare'||chr(10)|| ' l_cnt pls_integer := 0;'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select count(c001) cnt'||chr(10)|| ' from wwv_flow_collections'||chr(10)|| ' where collection_name = ''EXCEL_IMPORT'''||chr(10)|| ' and upper(c001) = upper(:P200_PK1_2))'||chr(10)|| ' loop'||chr(10)|| ' l_cnt := c1.cnt;'||chr(10)|| ' end loop;'||chr(10)|| ' if l_cnt > 0 then'||chr(10)|| ' return wwv_flow_lang.system_message(''F4500.P602.DUP_COL_NAME'',:P200_PK1_2);'||chr(10)|| ' end if;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_ERR_TEXT', p_error_message => 'Error.', p_validation_condition=> 'P200_PK1_OPTION', p_validation_condition2=> 'NEW_KEY', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_when_button_pressed=> 117073012899083351 + wwv_flow_api.g_id_offset, p_associated_item=> 52012902417204955 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare '||chr(10)|| ' l_cnames wwv_flow_global.vc_arr2; '||chr(10)|| ' l_data_type wwv_flow_global.vc_arr2; '||chr(10)|| ' l_upload wwv_flow_global.vc_arr2;'||chr(10)|| ' l_max_length wwv_flow_global.vc_arr2;'||chr(10)|| ' l_seq_name varchar2(255) := null;'||chr(10)|| ' l_pk1 varchar2(255) := :P200_PK1;'||chr(10)|| ' l_pk1_name varchar2(255) := null;'||chr(10)|| ' i pls_integer := 0;'||chr(10)|| 'begin '||chr(10)|| ' if :P200_PK1_OPTION = ''NEW_KEY'' then'||chr(10)|| ' i := i+1;'||chr(10)|| ' l'; p:=p||'_pk1 := replace(wwv_flow_utilities.remove_spaces(:P200_PK1_2),chr(32),''_''); '||chr(10)|| ' if :P210_PRESERVE_CASE is null then'||chr(10)|| ' l_pk1 := upper(l_pk1);'||chr(10)|| ' end if;'||chr(10)|| ' l_cnames(i) := l_pk1;'||chr(10)|| ' l_data_type(i) := ''NUMBER'';'||chr(10)|| ' l_upload(i) := ''Y'';'||chr(10)|| ' l_max_length(i) := 30;'||chr(10)|| ' end if; '||chr(10)|| ' '||chr(10)|| ' for c in (select * '||chr(10)|| ' from wwv_flow_collections '||chr(10)|| ' where collection_name=''EX'; p:=p||'CEL_IMPORT'') loop'||chr(10)|| ' i := i+1; '||chr(10)|| ' l_cnames(i) := c.c001;'||chr(10)|| ' l_data_type(i) := c.c002;'||chr(10)|| ' l_upload(i) := c.c004;'||chr(10)|| ' l_max_length(i) := c.c005; '||chr(10)|| ' end loop; '||chr(10)|| ' '||chr(10)|| ' if :P200_PK_TYPE = ''NEW_SEQUENCE'' then '||chr(10)|| ' l_seq_name := :P200_NEW_SEQUENCE;'||chr(10)|| ' if :P210_PRESERVE_CASE is null then'||chr(10)|| ' l_seq_name := upper(l_seq_name);'||chr(10)|| ' end if;'||chr(10)|| ' elsif :P200_PK_TYPE = ''EXISTING_SEQUENCE'' then'||chr(10)|| ' '; p:=p||' l_seq_name := :P200_EXISTING_SEQUENCE;'||chr(10)|| ' else'||chr(10)|| ' l_seq_name := NULL;'||chr(10)|| ' end if;'||chr(10)|| ' '||chr(10)|| ' l_pk1_name := :P200_PK1_NAME;'||chr(10)|| ' if :P210_PRESERVE_CASE is null then'||chr(10)|| ' l_pk1_name := upper(l_pk1_name);'||chr(10)|| ' end if;'||chr(10)|| ' wwv_flow_load_excel_data.create_table ('||chr(10)|| ' p_schema => :F4300_P200_OWNER,'||chr(10)|| ' p_table_name => wwv_flow_utilities.remove_spaces(:F4300_P200_TABLE_NAME),'||chr(10)|| ' p_pk1 => l_pk1,'||chr(10)|| ' p_pk1_name '; p:=p||' => l_pk1_name,'||chr(10)|| ' p_pk1_type => :P200_PK_TYPE,'||chr(10)|| ' p_seq_name => l_seq_name,'||chr(10)|| ' --'||chr(10)|| ' p_cnames => l_cnames,'||chr(10)|| ' p_data_type => l_data_type, '||chr(10)|| ' p_upload => l_upload,'||chr(10)|| ' p_max_length => l_max_length '||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 117113015507171948 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 220, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'create table with new primary key', p_process_sql_clob => p, p_process_error_message=> 'Error creating table.', p_process_when_button_id=>117073012899083351 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare '||chr(10)|| ' l_first_row_is_col_name boolean := false; '||chr(10)|| ' l_cnames wwv_flow_global.vc_arr2; '||chr(10)|| ' l_upload wwv_flow_global.vc_arr2; '||chr(10)|| ' i number := 0;'||chr(10)|| ' --'||chr(10)|| ' l_data_type wwv_flow_global.vc_arr2;'||chr(10)|| ' l_data_format wwv_flow_global.vc_arr2;'||chr(10)|| ' l_parsed_data_format wwv_flow_global.vc_arr2;'||chr(10)|| ' l_data clob := empty_clob();'||chr(10)|| 'begin '||chr(10)|| ' for c in (select * '||chr(10)|| ' '; p:=p||' from wwv_flow_collections '||chr(10)|| ' where collection_name=''EXCEL_IMPORT'') loop'||chr(10)|| ' i := i + 1;'||chr(10)|| ' l_cnames(i) := c.c001; '||chr(10)|| ' l_upload(i) := c.c004; '||chr(10)|| ' l_data_type(i) := c.c002; '||chr(10)|| ' l_data_format(i) := c.c006;'||chr(10)|| ' l_parsed_data_format(i) := c.c027; '||chr(10)|| ' end loop; '||chr(10)|| ''||chr(10)|| ' if :F4300_P200_IS_FIELD_NAME = ''Y'' then'||chr(10)|| ' l_first_row_is_col_name := true;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' select clob001 into'; p:=p||' l_data from apex_collections where collection_name=''CLOB_CONTENT'';'||chr(10)|| ''||chr(10)|| ' wwv_flow_load_excel_data.load_excel_data ('||chr(10)|| ' p_string => l_data,'||chr(10)|| ' p_cnames => l_cnames,'||chr(10)|| ' p_upload => l_upload,'||chr(10)|| ' p_schema => :F4300_P200_OWNER,'||chr(10)|| ' p_table => wwv_flow_utilities.remove_spaces(:F4300_P200_TABLE_NAME),'||chr(10)|| ' p_data_type => l_data_type,'||chr(10)|| ' p_data_format => l_data_format,'||chr(10)|| ' p_parsed_d'; p:=p||'ata_format => l_parsed_data_format,'||chr(10)|| ' p_separator => lower(nvl(:F4300_P200_SEPARATOR,''\t'')),'||chr(10)|| ' p_enclosed_by => :F4300_P200_ENCLOSED_BY,'||chr(10)|| ' p_first_row_is_col_name => l_first_row_is_col_name,'||chr(10)|| ' p_load_to => :F4300_P230_LOAD_TO,'||chr(10)|| ' p_currency => :P200_CURRENCY,'||chr(10)|| ' p_numeric_chars => :P200_DECIMAL_CHARACTER||:P200_GROUP_SEPARATOR,'||chr(10)|| ' p_load_type =>'; p:=p||' :F4300_P230_LOAD_TYPE'||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 117884026167328458 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 220, p_process_sequence=> 20, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'insert data', p_process_sql_clob => p, p_process_error_message=> '', p_process_when_button_id=>117073012899083351 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P200_OWNER);'; wwv_flow_api.create_page_process( p_id => 69935124519913951 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 220, p_process_sequence=> 30, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> 'Invalid Schema', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 220 -- begin null; end; null; end; / --application/pages/page_00230 prompt ...PAGE 230: Load Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_imprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 230, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load Data', p_step_title=> 'Load Data', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125928', p_page_is_public_y_n=> 'N', p_protection_level=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>230,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 6681905105645992 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 230, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23238502857624260 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 230, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 112716503290208213 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204342305194256542 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 230, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 204357924615288019 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 230, p_button_sequence=> 10, p_button_plug_id => 204342305194256542+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=&FLOW_ID.:9:&SESSION.::&DEBUG.:::', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204360203968291570 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 230, p_button_sequence=> 10, p_button_plug_id => 204342305194256542+wwv_flow_api.g_id_offset, p_button_name => 'Next', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>4107407002608653 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230, p_branch_action=> 'f?p=&APP_ID.:18:&SESSION.::&DEBUG.:18,19,21::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_when_button_id=>204360203968291570+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_branch_condition_type=> 'PLSQL_EXPRESSION', p_branch_condition=> ':F4300_P230_LOAD_TO = ''NEW'' and :F4300_P230_LOAD_FROM = ''UPLOAD''', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 26-SEP-2002 13:54 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>101365129882269401 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230, p_branch_action=> 'f?p=4300:22:&SESSION.:::22,23,24,25', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_when_button_id=>204360203968291570+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_branch_condition_type=> 'PLSQL_EXPRESSION', p_branch_condition=> ':F4300_P230_LOAD_TO = ''EXIST'' and :F4300_P230_LOAD_FROM = ''UPLOAD''', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 21-AUG-2002 15:49 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>7218508617368954 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230, p_branch_action=> 'f?p=&APP_ID.:200:&SESSION.::&DEBUG.:200,210,220,230,240,250,260,270::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_when_button_id=>204360203968291570+ wwv_flow_api.g_id_offset, p_branch_sequence=> 20, p_branch_condition_type=> 'PLSQL_EXPRESSION', p_branch_condition=> ':F4300_P230_LOAD_TO = ''NEW'' and :F4300_P230_LOAD_FROM = ''PASTE''', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 23-JAN-2006 15:49 by CBCHO'); wwv_flow_api.create_page_branch( p_id=>7222330435375211 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230, p_branch_action=> 'f?p=&APP_ID.:240:&SESSION.::&DEBUG.:200,210,220,230,240,250,260,270::', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'REDIRECT_URL', p_branch_when_button_id=>204360203968291570+ wwv_flow_api.g_id_offset, p_branch_sequence=> 30, p_branch_condition_type=> 'PLSQL_EXPRESSION', p_branch_condition=> ':F4300_P230_LOAD_TO = ''EXIST'' and :F4300_P230_LOAD_FROM = ''PASTE''', p_save_state_before_branch_yn=>'N', p_branch_comment=> 'Created 23-JAN-2006 15:50 by CBCHO'); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>4077631590265585 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230, p_name=>'F4300_P230_LOAD_TYPE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 204342305194256542+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_prompt=>'Load Type', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="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_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Choose what you want to load your data into. If your database table exists choose "existing table". If you would like to have a new table created choose "new table".'; wwv_flow_api.create_page_item( p_id=>4085714930308101 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230, p_name=>'F4300_P230_LOAD_TO', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 204342305194256542+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'NEW', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Load To:', p_source_type=> 'STATIC', p_display_as=> 'RADIOGROUP', p_named_lov=> 'TABLE.OPTION', p_lov => '.'||to_char(87922429003554589 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'ABOVE', p_field_alignment => 'LEFT', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Specify if the data is to be uploaded from a file to copy and pasted from a spreadsheet'; wwv_flow_api.create_page_item( p_id=>4087612637316960 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230, p_name=>'F4300_P230_LOAD_FROM', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 204342305194256542+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'PASTE', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Load From:', p_source_type=> 'STATIC', p_display_as=> 'RADIOGROUP', p_named_lov=> 'LOAD.OPTION', p_lov => '.'||to_char(87921416882551159 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', p_begin_on_new_line => 'YES', p_begin_on_new_field=> 'YES', p_colspan => 1, p_rowspan => 1, p_label_alignment => 'ABOVE', p_field_alignment => 'LEFT', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'No help text available'; wwv_flow_api.create_page_item( p_id=>5930027351163943 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230, p_name=>'P230_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 35, p_item_plug_id => 204342305194256542+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>' ', p_source_type=> 'STATIC', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 144922211438995306 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 230, p_computation_sequence => 40, p_computation_item=> 'F4300_P230_LOAD_TYPE', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'STATIC_ASSIGNMENT', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'EXCEL', p_compute_when => 'F4300_P230_LOAD_FROM', p_compute_when_text=>'PASTE', p_compute_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2'); null; end; / begin --------------------------------------- -- ...updatable report columns for page 230 -- begin null; end; null; end; / --application/pages/page_00240 prompt ...PAGE 240: Load Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 240, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load Data', p_step_title=> 'Load Data', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125926', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>240,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23362613308685338 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 240, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204401222157339825 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 240, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204716203535971465 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 240, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 204693724897946351 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select the database schema that owns the table you would like load data into.
'; wwv_flow_api.create_page_plug ( p_id=> 221518500978440614 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 240, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 204418301768357118 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 240, p_button_sequence=> 10, p_button_plug_id => 204401222157339825+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204420610772359727 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 240, p_button_sequence=> 10, p_button_plug_id => 204401222157339825+wwv_flow_api.g_id_offset, p_button_name => 'Next', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204423219430362194 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 240, p_button_sequence=> 10, p_button_plug_id => 204401222157339825+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>204421016156359729 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 240, p_branch_action=> '250', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204420610772359727+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>204423618157362195 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 240, p_branch_action=> '230', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204423219430362194+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Choose the database schema that owns the table you would like load Excel data into.'; wwv_flow_api.create_page_item( p_id=>204430218669387043 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 240, p_name=>'F4300_P240_TABLE_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 204401222157339825+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema', p_source=>'wwv_flow_user_api.get_default_schema', p_source_type=> 'FUNCTION', p_display_as=> 'COMBOBOX', p_named_lov=> 'LIST_SCHEMA_OWNERS', p_lov => 'select htf.escape_sc(c.schema) d, c.schema v'||chr(10)|| 'from wwv_flow_company_schemas c,'||chr(10)|| ' wwv_flow_fnd_user u'||chr(10)|| 'where c.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.security_group_id = :flow_security_group_id and'||chr(10)|| ' u.user_name = :flow_user and'||chr(10)|| ' (u.ALLOW_ACCESS_TO_SCHEMAS is null or'||chr(10)|| ' instr('':''||u.ALLOW_ACCESS_TO_SCHEMAS||'':'','':''||c.schema||'':'')>0)'||chr(10)|| 'order by 1'||chr(10)|| '', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_read_only_when=>'return wwv_flow_global.g_xe', p_read_only_when_type=>'FUNCTION_BODY', p_read_only_disp_attr=>'class="fielddatabold"', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_escape_on_http_input => 'Y', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_validation( p_id => 204445117363402835 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 240, p_validation_name => 'F4300_P240_TABLE_OWNER Not Null', p_validation_sequence=> 1, p_validation => 'F4300_P240_TABLE_OWNER', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Table Owner must be specified.', p_associated_item=> 204430218669387043 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> 'generated 16-APR-2002 11:44'); null; end; / begin --------------------------------------- -- ...updatable report columns for page 240 -- begin null; end; null; end; / --application/pages/page_00250 prompt ...PAGE 250: Load Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 250, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load Data', p_step_title=> 'Load Data', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'AUTO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'SSPADAFO', p_last_upd_yyyymmddhh24miss => '20081110155318', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>250,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 75404811081728816 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 250, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204455910665421153 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 250, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204719732421973249 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 250, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 204693724897946351 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Select the database table you would like load data into.
'; wwv_flow_api.create_page_plug ( p_id=> 221519827644448330 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 250, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 204459408919425445 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 250, p_button_sequence=> 10, p_button_plug_id => 204455910665421153+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204464324156429813 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 250, p_button_sequence=> 10, p_button_plug_id => 204455910665421153+wwv_flow_api.g_id_offset, p_button_name => 'Next', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204461717230427774 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 250, p_button_sequence=> 10, p_button_plug_id => 204455910665421153+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>204464717218429815 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 250, p_branch_action=> '270', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>204462102510427777 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 250, p_branch_action=> '240', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204461717230427774+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>77440924890766833 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 250, p_name=>'P250_CASE_SENSITIVE', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 204455910665421153+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'CASE.SENSITIVE.Y', p_lov => '.'||to_char(87923517360560740 + wwv_flow_api.g_id_offset)||'.', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes2=> 'class="fielddata"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Name of the owner of the table'; wwv_flow_api.create_page_item( p_id=>77443220866775141 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 250, p_name=>'P250_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 5, p_item_plug_id => 204455910665421153+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema:', p_source=>'F4300_P240_TABLE_OWNER', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Choose the database table you would like load data into. By default, all table names are converted to upper case. Select Preserve Case override this default behavior.'; wwv_flow_api.create_page_item( p_id=>204473631344441945 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 250, p_name=>'F4300_P250_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 204455910665421153+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Table Name', p_source_type=> 'STATIC', p_display_as=> 'POPUP', p_lov => 'select table_name a, table_name b'||chr(10)|| 'from sys.dba_tables'||chr(10)|| 'where owner = :F4300_P240_TABLE_OWNER'||chr(10)|| 'and table_name not like ''BIN$%'''||chr(10)|| 'order by 1', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_protection_level => 'N', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 77442009784771937 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 250, p_computation_sequence => 10, p_computation_item=> 'F4300_P250_TABLE_NAME', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'PLSQL_EXPRESSION', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'upper(:F4300_P250_TABLE_NAME)', p_compute_when => 'P250_CASE_SENSITIVE', p_compute_when_type=>'ITEM_IS_NULL'); null; end; / begin wwv_flow_api.create_page_validation( p_id => 204475426599444098 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 250, p_validation_name => 'F4300_P250_TABLE_NAME Not Null', p_validation_sequence=> 1, p_validation => 'F4300_P250_TABLE_NAME', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Table Name must be specified.', p_associated_item=> 204473631344441945 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> 'generated 16-APR-2002 11:51'); null; end; / begin wwv_flow_api.create_page_validation( p_id => 77472003251798396 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 250, p_validation_name => 'table exits', p_validation_sequence=> 10, p_validation => 'select 1'||chr(10)|| 'from sys.dba_objects'||chr(10)|| 'where owner = :F4300_P240_TABLE_OWNER'||chr(10)|| 'and object_name = :F4300_P250_TABLE_NAME'||chr(10)|| 'and object_type in (''TABLE'')', p_validation_type => 'EXISTS', p_error_message => 'Table does not exist.', p_validation_condition=> 'Previous', p_validation_condition_type=> 'REQUEST_NOT_EQUAL_CONDITION', p_associated_item=> 204473631344441945 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P240_TABLE_OWNER);'; wwv_flow_api.create_page_process( p_id => 71467820924021531 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 250, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> 'Invalid Schema', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 250 -- begin null; end; null; end; / --application/pages/page_00260 prompt ...PAGE 260: Load Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph := null; wwv_flow_api.create_page( p_id => 260, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load Data', p_step_title=> 'Load Data', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => '', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125926', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>260,p_text=>h); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23365808244693361 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 260, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204491026143474742 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 260, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'wwv_flow_load_data.display_etable_property ('||chr(10)|| ' p_table_owner => :F4300_P240_TABLE_OWNER,'||chr(10)|| ' p_table_name => :F4300_P250_TABLE_NAME,'||chr(10)|| ' p_collection_name => ''EXCEL_IMPORT'''||chr(10)|| ' );'; wwv_flow_api.create_page_plug ( p_id=> 204502624837490516 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 260, p_plug_name=> 'Define Column Mapping', p_region_name=>'', p_plug_template=> 279748823389483962+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'PLSQL_PROCEDURE', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 7082409118250737+ wwv_flow_api.g_id_offset, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_num_rows => 15, p_plug_query_num_rows_type => 'ROWS_X_TO_Y_OF_Z', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_query_show_nulls_as => ' - ', p_plug_query_col_allignments => 'L:L:L:L:L:L:L', p_plug_query_sum_cols => '::::::', p_plug_query_number_formats => '::::::', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204723028108975231 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 260, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 204693724897946351 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'This page previews how your data will be loaded. Match the database column names with columns in the data. To upload columns, select Yes or No. An asterisk (*) indicates a required column.
'||chr(10)|| 'To upload data to the selected table, click Import Data.
'||chr(10)|| 'Use SQL Workshop to modify table attributes such as changing the column length, making not null columns, or changing'; s:=s||' the column type.
'; wwv_flow_api.create_page_plug ( p_id=> 221526028729477051 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 260, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 50, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 204494532430479511 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260, p_button_sequence=> 10, p_button_plug_id => 204491026143474742+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204499923557486442 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260, p_button_sequence=> 10, p_button_plug_id => 204491026143474742+wwv_flow_api.g_id_offset, p_button_name => 'Import', p_button_image_alt=> 'Load Data', p_button_position=> 'REGION_TEMPLATE_CREATE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204496812129483108 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260, p_button_sequence=> 10, p_button_plug_id => 204491026143474742+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>204500300920486444 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 260, p_branch_action=> '11', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204499923557486442+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>204497212696483110 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 260, p_branch_action=> '270', p_branch_point=> 'BEFORE_VALIDATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204496812129483108+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>3876124806580817 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 260, p_name=>'F4300_P260_DUMMY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 204491026143474742+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_prompt=>'Dummy', p_display_as=> 'HIDDEN', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="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_is_persistent=> 'Y', p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Name of the owner of the table'; wwv_flow_api.create_page_item( p_id=>204576022341643606 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 260, p_name=>'F4300_P260_TABLE_OWNER', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 10, p_item_plug_id => 204491026143474742+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Schema:', p_source=>'F4300_P240_TABLE_OWNER', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Name of the table to load the data into'; wwv_flow_api.create_page_item( p_id=>204580511127648778 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 260, p_name=>'F4300_P260_TABLE_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 204491026143474742+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Table Name:', p_source=>'F4300_P250_TABLE_NAME', p_source_type=> 'ITEM', p_display_as=> 'DISPLAY_ONLY_HTML', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddatabold"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 3877004851584509 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 260, p_computation_sequence => 10, p_computation_item=> 'F4300_P260_DUMMY', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'FUNCTION_BODY', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'declare'||chr(10)|| 'begin'||chr(10)|| 'for i in 1..wwv_flow.g_f04.count loop'||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''EXCEL_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f04(i),'||chr(10)|| ' p_attr_number => 1,'||chr(10)|| ' p_attr_value => wwv_flow_utilities.remove_spaces(wwv_flow.g_f01(i))'||chr(10)|| ' );'||chr(10)|| ''||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''EXCEL_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f04(i),'||chr(10)|| ' p_attr_number => 4,'||chr(10)|| ' p_attr_value => wwv_flow.g_f02(i)'||chr(10)|| ' );'||chr(10)|| ''||chr(10)|| ' wwv_flow_collection.update_member_attribute ('||chr(10)|| ' p_collection_name => ''EXCEL_IMPORT'','||chr(10)|| ' p_seq => wwv_flow.g_f04(i),'||chr(10)|| ' p_attr_number => 6,'||chr(10)|| ' p_attr_value => wwv_flow.g_f05(i)'||chr(10)|| ' );'||chr(10)|| 'end loop;'||chr(10)|| 'return ''true'';'||chr(10)|| ''||chr(10)|| 'end;', p_compute_when => '', p_compute_when_type=>''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 1970910321700429 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260, p_validation_name => 'column name not null', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' l_null_found number := 0;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f02(i)=''Y'' then'||chr(10)|| ''||chr(10)|| ' if replace(wwv_flow.g_f01(i),''%''||''null%'',null) is null then'||chr(10)|| ''||chr(10)|| ' l_null_found := l_null_found + 1;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_null_found > 0 then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'Column names cannot be null.', p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 1976413962729112 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260, p_validation_name => 'at least one upload selected', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ' l_no_count number := 0;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f02.count loop'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f02(i) = ''N'' then'||chr(10)|| ''||chr(10)|| ' l_no_count := l_no_count + 1;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_no_count = wwv_flow.g_f02.count then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'At least one column must be specified to be included to upload the data.', p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2246727491917184 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260, p_validation_name => 'not null columns must be loaded', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ''||chr(10)|| ' l_not_null_error number := 0;'||chr(10)|| ''||chr(10)|| ' l_columns varchar2(32767) := null;'||chr(10)|| ''||chr(10)|| ' l_not_null_cols varchar2(32767) := null;'||chr(10)|| ''||chr(10)|| ' l_trigger_body long;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ''||chr(10)|| ' l_columns := wwv_flow_utilities.table_to_string2(wwv_flow.g_f01);'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' -- get trigger body if it is before insert trigger on the selected table'||chr(10)|| ''||chr(10)|| ' for c1 in (select trigger_body'||chr(10)|| ''||chr(10)|| ' from sys.dba_triggers'||chr(10)|| ''||chr(10)|| ' where table_name = :F4300_P250_TABLE_NAME'||chr(10)|| ''||chr(10)|| ' and table_owner = :F4300_P240_TABLE_OWNER'||chr(10)|| ''||chr(10)|| ' and trigger_type like ''%BEFORE%'''||chr(10)|| ''||chr(10)|| ' and triggering_event like ''%INSERT%'')'||chr(10)|| ''||chr(10)|| ' loop'||chr(10)|| ''||chr(10)|| ' l_trigger_body := c1.trigger_body;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' -- get all not null columns'||chr(10)|| ''||chr(10)|| ' for c1 in (select column_name'||chr(10)|| ''||chr(10)|| ' from sys.dba_tab_columns'||chr(10)|| ''||chr(10)|| ' where table_name = :F4300_P250_TABLE_NAME'||chr(10)|| ''||chr(10)|| ' and owner = :F4300_P240_TABLE_OWNER'||chr(10)|| ''||chr(10)|| ' and nullable = ''N'''||chr(10)|| ''||chr(10)|| ' ) loop'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ''||chr(10)|| ' -- If column names user selected is equal to not null columns,'||chr(10)|| ''||chr(10)|| ' -- user didn''t include to upload'||chr(10)|| ''||chr(10)|| ' -- and the column doesn''t have trigger, raise an error.'||chr(10)|| ''||chr(10)|| ' if (wwv_flow.g_f01(i) = c1.column_name) then'||chr(10)|| ''||chr(10)|| ' if wwv_flow.g_f02(i) = ''N'' then'||chr(10)|| ''||chr(10)|| ' if instr(nvl(UPPER(l_trigger_body),'' ''),c1.column_name) = 0 then'||chr(10)|| ''||chr(10)|| ' l_not_null_error := l_not_null_error + 1;'||chr(10)|| ''||chr(10)|| ' l_not_null_cols := l_not_null_cols||'',''||c1.column_name;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' -- If user did not select not null columns,'||chr(10)|| ''||chr(10)|| ' -- and the column doesn''t have trigger'||chr(10)|| ''||chr(10)|| ' -- raise an error.'||chr(10)|| ''||chr(10)|| ' if instr(l_columns,c1.column_name) = 0 then'||chr(10)|| ''||chr(10)|| ' if instr(nvl(UPPER(l_trigger_body),'' ''),c1.column_name) = 0 then'||chr(10)|| ''||chr(10)|| ' l_not_null_error := l_not_null_error + 1;'||chr(10)|| ''||chr(10)|| ' l_not_null_cols := l_not_null_cols||'',''||c1.column_name;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ' if l_not_null_error > 0 then'||chr(10)|| ''||chr(10)|| ' return false;'||chr(10)|| ''||chr(10)|| ' else'||chr(10)|| ''||chr(10)|| ' return true;'||chr(10)|| ''||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'There are NOT NULL columns in &F4300_P240_TABLE_OWNER..&F4300_P250_TABLE_NAME.. Select to upload the data without an error.', p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 2416102541642929 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 260, p_validation_name => 'duplicate column names', p_validation_sequence=> 10, p_validation => 'declare'||chr(10)|| ' l_col varchar2(32767) := null;'||chr(10)|| ' l_duplicate boolean := true;'||chr(10)|| ''||chr(10)|| 'begin'||chr(10)|| ' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' -- if column selected is to be uploaded, check for duplicate column selection'||chr(10)|| ' if wwv_flow.g_f02(i) = ''Y'' then'||chr(10)|| ' if instr('':''||nvl(l_col,'' '')||'':'','':''||wwv_flow.g_f01(i)||'':'') > 0 then'||chr(10)|| ' l_duplicate := false;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ' if i > 1 then'||chr(10)|| ' l_col := '':'';'||chr(10)|| ' end if;'||chr(10)|| ' l_col := l_col||wwv_flow.g_f01(i);'||chr(10)|| ' end if;'||chr(10)|| ' end loop;'||chr(10)|| ''||chr(10)|| ' return l_duplicate;'||chr(10)|| 'end;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'Duplicate column names selected.', p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare '||chr(10)|| ' l_first_row_is_col_name boolean := false;'||chr(10)|| ' l_cnames wwv_flow_global.vc_arr2;'||chr(10)|| ' --'||chr(10)|| ' l_data_types wwv_flow_global.vc_arr2;'||chr(10)|| ' l_parsed_data_format wwv_flow_global.vc_arr2;'||chr(10)|| ' j pls_integer := 0;'||chr(10)|| ' l_data clob := empty_clob();'||chr(10)|| 'begin'||chr(10)|| ' if :F4300_P270_IS_FIELD_NAME = ''Y'' then'||chr(10)|| ' l_first_row_is_col_name := true;'||chr(10)|| ' end if;'||chr(10)|| ''||chr(10)|| ''; p:=p||' for i in 1..wwv_flow.g_f01.count loop'||chr(10)|| ' l_cnames(i) := wwv_flow.g_f01(i);'||chr(10)|| ' for c1 in (select data_type'||chr(10)|| ' from sys.dba_tab_columns'||chr(10)|| ' where owner = :F4300_P240_TABLE_OWNER'||chr(10)|| ' and table_name = upper(:F4300_P250_TABLE_NAME)'||chr(10)|| ' and column_name = wwv_flow.g_f01(i)'||chr(10)|| ' order by column_id)'||chr(10)|| ' loop'||chr(10)|| ' l_data_types(i) := c1.data_type; '; p:=p||' '||chr(10)|| ' end loop; '||chr(10)|| ' end loop;'||chr(10)|| ' '||chr(10)|| ' for c in (select * '||chr(10)|| ' from wwv_flow_collections '||chr(10)|| ' where collection_name=''EXCEL_IMPORT'') loop'||chr(10)|| ' j := j + 1; '||chr(10)|| ' l_parsed_data_format(j) := c.c027; '||chr(10)|| ' end loop; '||chr(10)|| ''||chr(10)|| ' select clob001 into l_data from apex_collections where collection_name=''CLOB_CONTENT'';'||chr(10)|| ''||chr(10)|| ' wwv_flow_load_excel_data.load_excel_data ('||chr(10)|| ' p_string => l_data,'||chr(10)|| ' p_cnam'; p:=p||'es => l_cnames,'||chr(10)|| ' p_upload => wwv_flow.g_f02,'||chr(10)|| ' p_schema => :F4300_P240_TABLE_OWNER,'||chr(10)|| ' p_table => :F4300_P250_TABLE_NAME,'||chr(10)|| ' p_data_type => l_data_types,'||chr(10)|| ' p_data_format => wwv_flow.g_f05,'||chr(10)|| ' p_parsed_data_format => l_parsed_data_format,'||chr(10)|| ' p_separator => lower(nvl(:F4300_P270_SEPARATOR,''\t'')),'||chr(10)|| ' p_enclosed_by => :F4300_P270_ENCLOSED_BY,'||chr(10)|| ' p_first_row_is_col_name => '; p:=p||'l_first_row_is_col_name,'||chr(10)|| ' p_load_to => :F4300_P230_LOAD_TO,'||chr(10)|| ' p_currency => :P270_CURRENCY,'||chr(10)|| ' p_numeric_chars => :P270_DECIMAL_CHARACTER||:P270_GROUP_SEPARATOR,'||chr(10)|| ' p_load_type => :F4300_P230_LOAD_TYPE'||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 1998328769813398 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 260, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'insert data', p_process_sql_clob => p, p_process_error_message=> 'Error inserting data.', p_process_when_button_id=>204499923557486442 + wwv_flow_api.g_id_offset, p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'wwv_flow_sw_api.check_priv(:F4300_P240_TABLE_OWNER);'; wwv_flow_api.create_page_process( p_id => 71470128327033191 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 260, p_process_sequence=> 20, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'Validate Schema', p_process_sql_clob => p, p_process_error_message=> 'Invalid Schema', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 260 -- begin null; end; null; end; / --application/pages/page_00270 prompt ...PAGE 270: Load Data -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h:=h||'AEUTL/sql_utl_exprt.htm'; ph:=ph||''; wwv_flow_api.create_page( p_id => 270, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'Load Data', p_step_title=> 'Load Data', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_include_apex_css_js_yn=>'Y', p_autocomplete_on_off => '', p_group_id => 215729525348581243+ wwv_flow_api.g_id_offset, p_help_text => ' ', p_html_page_header => ' ', p_step_template => 3485606247566446+ wwv_flow_api.g_id_offset, p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => '', p_last_upd_yyyymmddhh24miss => '20080808125926', p_page_is_public_y_n=> 'N', p_page_comment => ''); wwv_flow_api.set_page_help_text(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>270,p_text=>h); wwv_flow_api.set_html_page_header(p_flow_id=>wwv_flow.g_flow_id,p_flow_step_id=>270,p_text=>ph); end; end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 21176307696090495 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 270, p_plug_name=> 'Globalization', p_region_name=>'', p_plug_template=> 21175625245088699+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 30, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 23364531662690652 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 270, p_plug_name=> 'Menu', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 1, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_08', p_plug_source=> s, p_plug_source_type=> 'M'|| to_char(6678815232629976 + wwv_flow_api.g_id_offset), p_menu_template_id=> 6680621597641306+ wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'COLON_DELMITED_LIST', p_plug_query_row_count_max => 500, p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204523926135583458 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 270, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 103900825378122658+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 10, p_plug_display_column=> 1, p_plug_display_point=> 'AFTER_SHOW_ITEMS', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s := null; wwv_flow_api.create_page_plug ( p_id=> 204526605078583471 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 270, p_plug_name=> 'Navigation', p_region_name=>'', p_plug_template=> 0, p_plug_display_sequence=> 20, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_01', p_plug_source=> s, p_plug_source_type=> 204693724897946351 + wwv_flow_api.g_id_offset, p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> '', p_plug_query_row_count_max => 500, p_plug_column_width => 'valign="top"', p_plug_display_condition_type => '', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / declare s varchar2(32767) := null; l_clob clob; l_length number := 1; begin s:=s||'Copy the data you want to import from a spreadsheet program, such as Microsoft Excel, and paste it into the Data field.
'; wwv_flow_api.create_page_plug ( p_id=> 221523002972460150 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_page_id=> 270, p_plug_name=> 'Load Data', p_region_name=>'', p_plug_template=> 104263607591363808+ wwv_flow_api.g_id_offset, p_plug_display_sequence=> 40, p_plug_display_column=> 1, p_plug_display_point=> 'REGION_POSITION_03', p_plug_source=> s, p_plug_source_type=> 'STATIC_TEXT', p_translate_title=> 'Y', p_plug_display_error_message=> '#SQLERRM#', p_plug_query_row_template=> 1, p_plug_query_headings_type=> 'QUERY_COLUMNS', p_plug_query_num_rows_type => 'NEXT_PREVIOUS_LINKS', p_plug_query_row_count_max => 500, p_plug_query_show_nulls_as => ' - ', p_plug_display_condition_type => '', p_pagination_display_position=>'BOTTOM_RIGHT', p_plug_customized=>'0', p_plug_caching=> 'NOT_CACHED', p_plug_comment=> ''); end; / begin wwv_flow_api.create_page_button( p_id => 204524106105583459 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 270, p_button_sequence=> 10, p_button_plug_id => 204523926135583458+wwv_flow_api.g_id_offset, p_button_name => 'Cancel', p_button_image_alt=> 'Cancel', p_button_position=> 'REGION_TEMPLATE_CLOSE', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'f?p=4300:9:&FLOW_SESSION.', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204524413345583460 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 270, p_button_sequence=> 10, p_button_plug_id => 204523926135583458+wwv_flow_api.g_id_offset, p_button_name => 'Next', p_button_image_alt=> 'Next >', p_button_position=> 'REGION_TEMPLATE_NEXT', p_button_alignment=> 'RIGHT', p_button_redirect_url=> 'javascript:data_set();', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); wwv_flow_api.create_page_button( p_id => 204524712263583462 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 270, p_button_sequence=> 10, p_button_plug_id => 204523926135583458+wwv_flow_api.g_id_offset, p_button_name => 'Previous', p_button_image_alt=> '< Previous', p_button_position=> 'REGION_TEMPLATE_PREVIOUS', p_button_alignment=> 'RIGHT', p_button_redirect_url=> '', p_button_cattributes=>'class="button10"', p_required_patch => null + wwv_flow_api.g_id_offset); end; / begin wwv_flow_api.create_page_branch( p_id=>204526930972583473 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270, p_branch_action=> '260', p_branch_point=> 'AFTER_PROCESSING', p_branch_type=> 'BRANCH_TO_STEP', p_branch_sequence=> 10, p_branch_condition_type=> 'REQUEST_EQUALS_CONDITION', p_branch_condition=> 'NEXT', p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); wwv_flow_api.create_page_branch( p_id=>204527202242583475 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270, p_branch_action=> '250', p_branch_point=> 'BEFORE_COMPUTATION', p_branch_type=> 'BRANCH_TO_STEP', p_branch_when_button_id=>204524712263583462+ wwv_flow_api.g_id_offset, p_branch_sequence=> 10, p_save_state_before_branch_yn=>'N', p_branch_comment=> ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Identify a column separator character. Use \t for tab separators.
'; wwv_flow_api.create_page_item( p_id=>4182706815845162 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270, p_name=>'F4300_P270_SEPARATOR', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 30, p_item_plug_id => 204523926135583458+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => ',', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Separator', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 2, p_cMaxlength=> 2, p_cHeight=> 1, p_cAttributes=> 'nowrap="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=>'F4300_P230_LOAD_TYPE', p_display_when2=>'CSV', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103910729134154335+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_reference_id => 3832614597433912, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'Identify optional enclosed by character.
'; wwv_flow_api.create_page_item( p_id=>4184502444853276 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270, p_name=>'F4300_P270_ENCLOSED_BY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 40, p_item_plug_id => 204523926135583458+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_prompt=>'Enclosed By', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 2, p_cMaxlength=> 2, p_cHeight=> 1, p_cAttributes=> 'nowrap="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=>'F4300_P230_LOAD_TYPE', p_display_when2=>'CSV', p_display_when_type=>'VAL_OF_ITEM_IN_COND_EQ_COND2', p_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_reference_id => 3832902320433912, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'If your data contains international currency symbol, enter it here.
'||chr(10)|| 'For example, if your data has "€1,234.56" or "¥1,234.56", enter "€" or "¥". Otherwise the data will not load correctly.
'; wwv_flow_api.create_page_item( p_id=>21177230552097084 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270, p_name=>'P270_CURRENCY', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 60, p_item_plug_id => 21176307696090495+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'declare'||chr(10)|| ' l_return_val varchar2(30) := ''$'';'||chr(10)|| 'begin'||chr(10)|| ' for c1 in (select value'||chr(10)|| ' from nls_session_parameters'||chr(10)|| ' where parameter = ''NLS_CURRENCY'') loop'||chr(10)|| ' l_return_val := c1.value;'||chr(10)|| ' exit;'||chr(10)|| ' end loop;'||chr(10)|| ' --'||chr(10)|| ' return l_return_val;'||chr(10)|| 'end;', p_item_default_type => 'PLSQL_FUNCTION_BODY', p_prompt=>'Currency Symbol', p_source_type=> 'STATIC', p_display_as=> 'TEXT', p_lov_columns=> 1, p_lov_display_null=> 'YES', p_lov_translated=> 'N', p_lov_null_text=>'', p_lov_null_value=> '', p_cSize=> 1, p_cMaxlength=> 1, p_cHeight=> 1, p_cAttributes=> 'nowrap="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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin h := null; h:=h||'A group separator is a character that separates integer groups, for example to show thousands and millions.
'||chr(10)|| 'Any character can be the group separator. The character specified must be single-byte, and the group separator must be different from any other decimal character. The character can be a space, but cannot be a numeric character or any of the following:
'||chr(10)|| 'The decimal character separates the integer and decimal parts of a number.
'||chr(10)|| 'Any character can be the decimal character. The character specified must be single-byte, and the decimal character must be different from group separator. The character can be a space, but cannot be any numeric character or any of the following characters:
'||chr(10)|| 'Select this box if your data contains column names in the first row.
'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Name Salary Commission'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Clark 1000 10'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| 'Scott 2000 20'||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''||chr(10)|| ''; wwv_flow_api.create_page_item( p_id=>204525430553583465 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270, p_name=>'F4300_P270_IS_FIELD_NAME', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 50, p_item_plug_id => 204523926135583458+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_item_default => 'Y', p_item_default_type => 'STATIC_TEXT_WITH_SUBSTITUTIONS', p_source_type=> 'STATIC', p_display_as=> 'CHECKBOX', p_named_lov=> 'ISCOLUMN.NAME.TEXT', p_lov => 'select ''''||'||chr(10)|| 'wwv_flow_lang.system_message(''F4300_INSTRUCT_TEXT'')||'''' d, ''Y'' r from dual', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> 1, p_cAttributes=> 'nowrap="nowrap"', p_tag_attributes => 'class="fielddataboldl"', 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_field_template => 103909823939152778+wwv_flow_api.g_id_offset, p_is_persistent=> 'Y', p_lov_display_extra=>'NO', p_help_text => h, p_item_comment => ''); end; / declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>204525716148583467 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270, p_name=>'F4300_P270_X', p_data_type=> 'VARCHAR', p_accept_processing=> 'REPLACE_EXISTING', p_item_sequence=> 20, p_item_plug_id => 204523926135583458+wwv_flow_api.g_id_offset, p_use_cache_before_default=> 'YES', p_display_as=> 'STOP_AND_START_HTML_TABLE', p_lov_columns=> 1, p_lov_display_null=> 'NO', p_lov_translated=> 'N', p_cSize=> 30, p_cMaxlength=> 2000, p_cHeight=> null, p_cAttributes=> 'nowrap="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_is_persistent=> 'Y', p_item_comment => ''); end; / begin wwv_flow_api.create_page_computation( p_id=> 49537626170713419 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 270, p_computation_sequence => 10, p_computation_item=> 'F4300_P270_IS_FIELD_NAME', p_computation_point=> 'AFTER_SUBMIT', p_computation_type=> 'STATIC_ASSIGNMENT', p_computation_processed=> 'REPLACE_EXISTING', p_computation=> 'N', p_compute_when => 'F4300_P270_IS_FIELD_NAME', p_compute_when_type=>'ITEM_IS_NULL'); null; end; / begin wwv_flow_api.create_page_validation( p_id => 4186717812867171 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 270, p_validation_name => 'separator not null', p_validation_sequence=> 10, p_validation => 'F4300_P270_SEPARATOR', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Separator must be specified.', p_validation_condition=> 'F4300_P230_LOAD_TYPE', p_validation_condition2=> 'CSV', p_validation_condition_type=> 'VAL_OF_ITEM_IN_COND_EQ_COND2', p_associated_item=> 4182706815845162 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 83593200492080009 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 270, p_validation_name => 'data cannot be > 30KB', p_validation_sequence=> 10, p_validation => 'if length(:F4300_P270_EXCEL_DATA) > 30000 then'||chr(10)|| ' return false;'||chr(10)|| 'else'||chr(10)|| ' return true;'||chr(10)|| 'end if;', p_validation_type => 'FUNC_BODY_RETURNING_BOOLEAN', p_error_message => 'Data pasted is greater than 30KB. Save the file in a comma delimited (csv) or tab delimted format. Then upload the file to load the data.', p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin wwv_flow_api.create_page_validation( p_id => 204527804107583477 + wwv_flow_api.g_id_offset, p_flow_id => wwv_flow.g_flow_id, p_flow_step_id => 270, p_validation_name => 'data not null', p_validation_sequence=> 10, p_validation => 'F4300_P270_EXCEL_DATA', p_validation_type => 'ITEM_NOT_NULL', p_error_message => 'Data must be specified.', p_associated_item=> 204525129697583464 + wwv_flow_api.g_id_offset, p_error_display_location=>'INLINE_WITH_FIELD_AND_NOTIFICATION', p_validation_comment=> ''); null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'declare '||chr(10)|| ' l_first_row_is_col_name boolean := false;'||chr(10)|| ' l_data clob := empty_clob();'||chr(10)|| 'begin'||chr(10)|| ' select clob001 into l_data from apex_collections where collection_name=''CLOB_CONTENT'';'||chr(10)|| ''||chr(10)|| ' if :F4300_P270_IS_FIELD_NAME = ''Y'' then'||chr(10)|| ' l_first_row_is_col_name := true;'||chr(10)|| ' end if;'||chr(10)|| ' wwv_flow_load_excel_data.get_table_info ('||chr(10)|| ' p_string => l_data,'||chr(10)|| ' p_separator => lower(nvl(:F4300'; p:=p||'_P270_SEPARATOR,''\t'')),'||chr(10)|| ' p_enclosed_by => :F4300_P270_ENCLOSED_BY, '||chr(10)|| ' p_first_row_is_col_name => l_first_row_is_col_name,'||chr(10)|| ' p_currency => :P270_CURRENCY,'||chr(10)|| ' p_numeric_chars => :P270_DECIMAL_CHARACTER||:P270_GROUP_SEPARATOR,'||chr(10)|| ' p_load_type => ''EXCEL'''||chr(10)|| ' );'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 204528110232583479 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 270, p_process_sequence=> 10, p_process_point=> 'AFTER_SUBMIT', p_process_type=> 'PLSQL', p_process_name=> 'create collection', p_process_sql_clob => p, p_process_error_message=> 'Error loading excel data.', p_process_when=>'NEXT', p_process_when_type=>'REQUEST_EQUALS_CONDITION', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_process_comment=>''); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 270 -- begin null; end; null; end; / prompt ...lists -- --application/shared_components/navigation/lists/application_tabs begin wwv_flow_api.create_list ( p_id=> 1452315428006354 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Application Tabs', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 19007815325351347 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 1453127548009865 + wwv_flow_api.g_id_offset, p_list_id=> 1452315428006354 + wwv_flow_api.g_id_offset, p_list_item_type=> '', p_list_item_status=> '', p_item_displayed=> '', p_list_item_display_sequence=>1, p_list_item_link_text=> 'Home', p_list_item_link_target=> 'f?p=4500:1000:&SESSION.', p_list_text_01=> '', p_list_item_current_type=> '', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 1453401360011729 + wwv_flow_api.g_id_offset, p_list_id=> 1452315428006354 + wwv_flow_api.g_id_offset, p_list_item_type=> '', p_list_item_status=> '', p_item_displayed=> '', p_list_item_display_sequence=>2, p_list_item_link_text=> 'Application Builder', p_list_item_link_target=> 'f?p=4000:1500:&SESSION.', p_list_text_01=> '', p_list_item_current_type=> '', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 231618309407162514 + wwv_flow_api.g_id_offset, p_list_id=> 1452315428006354 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>3, p_list_item_link_text=> 'Reporting Services', p_list_item_link_target=> 'f?p=4800:1:&SESSION.', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_required_patch => 231617022436156832 + wwv_flow_api.g_id_offset, p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 1453707594013511 + wwv_flow_api.g_id_offset, p_list_id=> 1452315428006354 + wwv_flow_api.g_id_offset, p_list_item_type=> '', p_list_item_status=> '', p_item_displayed=> '', p_list_item_display_sequence=>4, p_list_item_link_text=> 'SQL Workshop', p_list_item_link_target=> 'f?p=4500:3002:&SESSION.', p_list_text_01=> '', p_list_item_current_type=> '', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 1454014173015400 + wwv_flow_api.g_id_offset, p_list_id=> 1452315428006354 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>5, p_list_item_link_text=> 'Utilities', p_list_item_link_target=> 'f?p=4500:1005:&SESSION.', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'ALWAYS', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/data_workshop_home_page_icons begin wwv_flow_api.create_list ( p_id=> 2202106852499122 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Data Workshop Home Page Icons', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 24562507636595183 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 2202519319502755 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>5, p_list_item_link_text=> 'Load', p_list_item_link_target=> 'f?p=&APP_ID.:9:&SESSION.::&DEBUG.::::', p_list_item_icon => 'htmldb/builder/dw_import_ctrl.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3920312040546373 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'Text Data', p_list_item_link_target=> 'f?p=4300:230:&SESSION.::NO:13,18,19,21,22,23,24,25::', p_parent_list_item_id=> 2202519319502755 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3920000266542977 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>15, p_list_item_link_text=> 'Spreadsheet Data', p_list_item_link_target=> 'f?p=&APP_ID.:230:&SESSION.::&DEBUG.:200,210,220,230,240,250,260,270:::', p_parent_list_item_id=> 2202519319502755 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3920618966548359 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> 'XML Data', p_list_item_link_target=> 'f?p=4300:14:&SESSION.::NO:14,16,17::', p_parent_list_item_id=> 2202519319502755 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 2203026938504982 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'Unload', p_list_item_link_target=> 'f?p=&APP_ID.:4:&SESSION.::&DEBUG.::::', p_list_item_icon => 'htmldb/builder/dw_export_ctrl.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3923617712557453 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'To Text', p_list_item_link_target=> 'f?p=&APP_ID.:150:&SESSION.::&DEBUG.:150,160,170,180:::', p_parent_list_item_id=> 2203026938504982 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3923923599559118 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> 'To XML', p_list_item_link_target=> 'f?p=&APP_ID.:70:&SESSION.::&DEBUG.:70,80,90:::', p_parent_list_item_id=> 2203026938504982 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 2206807807518397 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> 'Repository', p_list_item_link_target=> 'f?p=&APP_ID.:8:&SESSION.::&DEBUG.:RP:::', p_list_item_icon => 'htmldb/builder/dw_repository_ctrl.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 260022612007597680 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'Import Repository', p_list_item_link_target=> 'f?p=&APP_ID.:8:&SESSION.::&DEBUG.:RP:::', p_parent_list_item_id=> 2206807807518397 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 260023118587599550 + wwv_flow_api.g_id_offset, p_list_id=> 2202106852499122 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'Spreadsheet Imports', p_list_item_link_target=> 'f?p=&APP_ID.:11:&SESSION.::&DEBUG.:RP:::', p_parent_list_item_id=> 2206807807518397 + wwv_flow_api.g_id_offset, p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/data_import begin wwv_flow_api.create_list ( p_id=> 3648913903408259 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'data import', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 3482816826549973 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 220739912737841935 + wwv_flow_api.g_id_offset, p_list_id=> 3648913903408259 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'Spreadsheet Import Repository', p_list_item_link_target=> 'f?p=&APP_ID.:11:&SESSION.::&DEBUG.::::', p_list_item_disp_cond_type=> 'CURRENT_PAGE_EQUALS_CONDITION', p_list_item_disp_condition=> '8', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3653931134432189 + wwv_flow_api.g_id_offset, p_list_id=> 3648913903408259 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'Text Data Import Repository', p_list_item_link_target=> 'f?p=&APP_ID.:8:&SESSION.::&DEBUG.::::', p_list_item_disp_cond_type=> 'CURRENT_PAGE_EQUALS_CONDITION', p_list_item_disp_condition=> '11', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/plain_text_data_import begin wwv_flow_api.create_list ( p_id=> 3931814922814551 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Plain Text Data Import', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 3932708473822070 + wwv_flow_api.g_id_offset, p_list_id=> 3931814922814551 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> 'File Details', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '18,19,21,13', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '18', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3933320594825587 + wwv_flow_api.g_id_offset, p_list_id=> 3931814922814551 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> 'Table Properties', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '18,19,21,13', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '19', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3933729944828323 + wwv_flow_api.g_id_offset, p_list_id=> 3931814922814551 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>40, p_list_item_link_text=> 'Primary Key', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '18,19,21,13', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '21', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/plain_text_data_import2 begin wwv_flow_api.create_list ( p_id=> 3934205141830584 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Plain Text Data Import2', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 3935014837833421 + wwv_flow_api.g_id_offset, p_list_id=> 3934205141830584 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> 'Schema', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '22', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3935318993834617 + wwv_flow_api.g_id_offset, p_list_id=> 3934205141830584 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> 'Table Name', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '23', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3935628343837346 + wwv_flow_api.g_id_offset, p_list_id=> 3934205141830584 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>40, p_list_item_link_text=> 'File Details', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '24', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 3935901116838942 + wwv_flow_api.g_id_offset, p_list_id=> 3934205141830584 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>50, p_list_item_link_text=> 'Column Mapping', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '25', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/builder_tab_list begin wwv_flow_api.create_list ( p_id=> 19099308342605075 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'builder.tab.list', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 19007815325351347 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 27346516565060394 + wwv_flow_api.g_id_offset, p_list_id=> 19099308342605075 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>1, p_list_item_link_text=> '&PRODUCT_NAME.', p_list_item_link_target=> 'f?p=4350:1:&SESSION.', p_list_item_disp_cond_type=> 'NEVER', p_list_item_disp_condition=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 19099819424608241 + wwv_flow_api.g_id_offset, p_list_id=> 19099308342605075 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'Application Builder', p_list_item_link_target=> 'f?p=4000:1500:&SESSION.::&DEBUG.:::', p_list_item_disp_cond_type=> 'EXISTS', p_list_item_disp_condition=> 'select 1 from wwv_flows where security_group_id = :flow_security_group_id', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 19100127042610497 + wwv_flow_api.g_id_offset, p_list_id=> 19099308342605075 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> 'SQL Workshop', p_list_item_link_target=> 'f?p=4500:1000:&SESSION.', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'ALWAYS', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 19100405356613616 + wwv_flow_api.g_id_offset, p_list_id=> 19099308342605075 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>50, p_list_item_link_text=> 'Data Workshop', p_list_item_link_target=> 'f?p=&APP_ID.:1:&SESSION.::&DEBUG.::::', p_list_item_disp_cond_type=> 'NEVER', p_list_item_disp_condition=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'ALWAYS', p_list_item_current_for_pages=> 'f?p=4300:9:&SESSION.', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 27700700995058326 + wwv_flow_api.g_id_offset, p_list_id=> 19099308342605075 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>60, p_list_item_link_text=> 'Administration', p_list_item_link_target=> 'f?p=4350:1:&SESSION.', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/data_loading begin wwv_flow_api.create_list ( p_id=> 74707671328250039 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Data Loading', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 338656104634716337 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 2638109323313851 + wwv_flow_api.g_id_offset, p_list_id=> 74707671328250039 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'Load Text Data', p_list_item_link_target=> 'f?p=&APP_ID.:230:&SESSION.::&DEBUG.:18,19,21,22,23,24,25:F4300_P230_LOAD_FROM:UPLOAD:', p_list_item_icon => 'htmldb/builder/abc_upload.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> 'Load data from structured flat files, such as files with comma separated data(cvs) or tab separated data.', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 126669304926863145 + wwv_flow_api.g_id_offset, p_list_id=> 74707671328250039 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>15, p_list_item_link_text=> 'Load Spreadsheet Data', p_list_item_link_target=> 'f?p=&APP_ID.:230:&SESSION.::&DEBUG.:200,210,220,230,240,250,260,270:::', p_list_item_icon => 'htmldb/builder/load_excel.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> 'Convert Spreadsheets into database tables.', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 74710220544263433 + wwv_flow_api.g_id_offset, p_list_id=> 74707671328250039 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> 'Load XML Data', p_list_item_link_target=> 'f?p=&APP_ID.:14:&SESSION.::&DEBUG.:14,16,17:::', p_list_item_icon => 'htmldb/builder/xml_upload2.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> 'Load data from XML in canonical format.', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/data_unloading begin wwv_flow_api.create_list ( p_id=> 75585889878824332 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Data Unloading', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 338656104634716337 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 75614520977877818 + wwv_flow_api.g_id_offset, p_list_id=> 75585889878824332 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> 'Unload to Text', p_list_item_link_target=> 'f?p=&APP_ID.:150:&SESSION.::&DEBUG.:150,160,170,180:::', p_list_item_icon => 'htmldb/builder/load_ascii.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> 'Export database data to a flat file.', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 75616418561883144 + wwv_flow_api.g_id_offset, p_list_id=> 75585889878824332 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> 'Unload to XML', p_list_item_link_target=> 'f?p=&APP_ID.:70:&SESSION.::&DEBUG.:70,80,90:::', p_list_item_icon => 'htmldb/builder/load_xml.gif', p_list_item_icon_attributes=> 'width="100" height="75" title="#LIST_LABEL#" alt="#LIST_LABEL#"', p_list_countclicks_y_n=> 'N', p_list_text_01=> 'Export database data to an XML document.', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/plain_text_data_export begin wwv_flow_api.create_list ( p_id=> 104358211508848205 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Plain Text Data Export', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 104369115334180721 + wwv_flow_api.g_id_offset, p_list_id=> 104358211508848205 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'Schema', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '150', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 104369811236182654 + wwv_flow_api.g_id_offset, p_list_id=> 104358211508848205 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> 'Table Name', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '160', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 104370507786184183 + wwv_flow_api.g_id_offset, p_list_id=> 104358211508848205 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> 'Columns', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '170', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 104371204982185568 + wwv_flow_api.g_id_offset, p_list_id=> 104358211508848205 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>40, p_list_item_link_text=> 'Options', p_list_item_link_target=> '', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '180', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/xml_export begin wwv_flow_api.create_list ( p_id=> 104417024127237376 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'XML Export', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 104418520029239322 + wwv_flow_api.g_id_offset, p_list_id=> 104417024127237376 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'Schema', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '70', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 104419216794240816 + wwv_flow_api.g_id_offset, p_list_id=> 104417024127237376 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> 'Table Name', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '80', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 104419912481242811 + wwv_flow_api.g_id_offset, p_list_id=> 104417024127237376 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> 'Columns', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '90', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/excel_data_import begin wwv_flow_api.create_list ( p_id=> 112716503290208213 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Excel Data Import', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 204680314570920715 + wwv_flow_api.g_id_offset, p_list_id=> 112716503290208213 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>5, p_list_item_link_text=> 'Target and Method', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '230', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 112719626353212694 + wwv_flow_api.g_id_offset, p_list_id=> 112716503290208213 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'Data', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '200,210,220,230', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '200', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 112720322256214662 + wwv_flow_api.g_id_offset, p_list_id=> 112716503290208213 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> 'Table Properties', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '200,210,220,230', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '210', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 117063907614069206 + wwv_flow_api.g_id_offset, p_list_id=> 112716503290208213 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> 'Primary Key', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '200,210,220,230', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '220', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/xml_import begin wwv_flow_api.create_list ( p_id=> 184273927814400294 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'XML Import', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 184275722854402592 + wwv_flow_api.g_id_offset, p_list_id=> 184273927814400294 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'Schema', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '14', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 184276520050403915 + wwv_flow_api.g_id_offset, p_list_id=> 184273927814400294 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> 'Table Name', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '16', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 184277315952405815 + wwv_flow_api.g_id_offset, p_list_id=> 184273927814400294 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> 'File Name', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '17', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/lists/excel_data_import2 begin wwv_flow_api.create_list ( p_id=> 204693724897946351 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'Excel Data Import2', p_list_status=> 'PUBLIC', p_list_displayed=> 'BY_DEFAULT', p_display_row_template_id=> 23332419498365678 + wwv_flow_api.g_id_offset); wwv_flow_api.create_list_item ( p_id=> 204695520153948493 + wwv_flow_api.g_id_offset, p_list_id=> 204693724897946351 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>10, p_list_item_link_text=> 'Type and Method', p_list_item_link_target=> '', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '230', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 204698011742952420 + wwv_flow_api.g_id_offset, p_list_id=> 204693724897946351 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>20, p_list_item_link_text=> 'Schema', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '240,250,260,270', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '240', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 204699205057955553 + wwv_flow_api.g_id_offset, p_list_id=> 204693724897946351 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>30, p_list_item_link_text=> 'Table Name', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '240,250,260,270', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '250', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 204702125748961090 + wwv_flow_api.g_id_offset, p_list_id=> 204693724897946351 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>40, p_list_item_link_text=> 'Data', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '240,250,260,270', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '270', p_list_item_owner=> ''); wwv_flow_api.create_list_item ( p_id=> 204711009357968724 + wwv_flow_api.g_id_offset, p_list_id=> 204693724897946351 + wwv_flow_api.g_id_offset, p_list_item_type=> 'LINK', p_list_item_status=> 'PUBLIC', p_item_displayed=> 'BY_DEFAULT', p_list_item_display_sequence=>50, p_list_item_link_text=> 'Column Mapping', p_list_item_link_target=> '', p_list_item_disp_cond_type=> 'CURRENT_PAGE_IN_CONDITION', p_list_item_disp_condition=> '240,250,260,270', p_list_countclicks_y_n=> 'N', p_list_text_01=> '', p_list_item_current_type=> 'COLON_DELIMITED_PAGE_LIST', p_list_item_current_for_pages=> '260', p_list_item_owner=> ''); null; end; / --application/shared_components/navigation/breadcrumbs prompt ...breadcrumbs -- begin wwv_flow_api.create_menu ( p_id=> 6678815232629976 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_name=> 'dataworkshop.menu'); wwv_flow_api.create_menu_option ( p_id=>2211613627528920 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>28488306101493931 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Data Load/Unload', p_long_name=>'', p_link=>'f?p=&APP_ID.:1:&SESSION.::&DEBUG.:::', p_page_id=>1, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>2226021785570759 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>2211613627528920 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Unload', p_long_name=>'', p_link=>'f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::', p_page_id=>4, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>2211613627528920 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load', p_long_name=>'', p_link=>'f?p=&APP_ID.:9:&SESSION.::&DEBUG.:::', p_page_id=>9, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6682115379645994 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:230:&SESSION.::&DEBUG.:::', p_page_id=>230, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6686911916662790 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load XML Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:14:&SESSION.::&DEBUG.:::', p_page_id=>14, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6689302211667279 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Unload to XML', p_long_name=>'', p_link=>'f?p=&APP_ID.:70:&SESSION.::&DEBUG.:::', p_page_id=>70, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6690530882669221 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Unload to Text', p_long_name=>'', p_link=>'f?p=&APP_ID.:150:&SESSION.::&DEBUG.:::', p_page_id=>150, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6692619668674394 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:200:&SESSION.::&DEBUG.:::', p_page_id=>200, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6694113198677405 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:210:&SESSION.::&DEBUG.:::', p_page_id=>210, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6695107375680103 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:220:&SESSION.::&DEBUG.:::', p_page_id=>220, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6828030820688031 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:18:&SESSION.::&DEBUG.:::', p_page_id=>18, p_also_current_for_pages=> ''); null; end; / begin wwv_flow_api.create_menu_option ( p_id=>6829415292695176 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:19:&SESSION.::&DEBUG.:::', p_page_id=>19, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6830608822698182 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:21:&SESSION.::&DEBUG.:::', p_page_id=>21, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6837120647738320 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>2211613627528920 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Text Data Load Repository', p_long_name=>'', p_link=>'f?p=&APP_ID.:8:&SESSION.::&DEBUG.:::', p_page_id=>8, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6843500362762964 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Unload to XML', p_long_name=>'', p_link=>'f?p=&APP_ID.:80:&SESSION.::&DEBUG.:::', p_page_id=>80, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6844627307765634 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Unload to XML', p_long_name=>'', p_link=>'f?p=&APP_ID.:90:&SESSION.::&DEBUG.:::', p_page_id=>90, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6846217171770275 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Unload to Text', p_long_name=>'', p_link=>'f?p=&APP_ID.:160:&SESSION.::&DEBUG.:::', p_page_id=>160, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6847610701773370 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Unload to Text', p_long_name=>'', p_link=>'f?p=&APP_ID.:170:&SESSION.::&DEBUG.:::', p_page_id=>170, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>6848706388775367 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>2226021785570759 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Unload to Text', p_long_name=>'', p_link=>'f?p=&APP_ID.:180:&SESSION.::&DEBUG.:::', p_page_id=>180, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>7700814894541393 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>0, p_option_sequence=>10, p_short_name=>'Home', p_long_name=>'', p_link=>'f?p=4500:1000:&SESSION.', p_page_id=>99999, p_security_scheme=>'FLOW: ADMIN', p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>9390600588273869 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>2211613627528920 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Spreadsheet Repository', p_long_name=>'', p_link=>'f?p=&APP_ID.:11:&SESSION.::&DEBUG.:::', p_page_id=>11, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>23356717195631333 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:22:&SESSION.::&DEBUG.:::', p_page_id=>22, p_also_current_for_pages=> ''); null; end; / begin wwv_flow_api.create_menu_option ( p_id=>23358010294634530 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:23:&SESSION.::&DEBUG.:::', p_page_id=>23, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>23359105981636561 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:24:&SESSION.::&DEBUG.:::', p_page_id=>24, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>23360528181641436 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:25:&SESSION.::&DEBUG.:::', p_page_id=>25, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>23362831810685340 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:240:&SESSION.::&DEBUG.:::', p_page_id=>240, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>23364720380690653 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:270:&SESSION.::&DEBUG.:::', p_page_id=>270, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>23366014557693362 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:260:&SESSION.::&DEBUG.:::', p_page_id=>260, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>28488306101493931 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>7700814894541393 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Utilities', p_long_name=>'', p_link=>'f?p=4500:1005:&SESSION.', p_page_id=>77777, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>75399131516711549 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6837120647738320 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Text Data Load Details', p_long_name=>'', p_link=>'f?p=&APP_ID.:7:&SESSION.::&DEBUG.:::', p_page_id=>7, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>75401212754720215 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load XML Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:16:&SESSION.::&DEBUG.:::', p_page_id=>16, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>75402808656722114 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load XML Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:17:&SESSION.::&DEBUG.:::', p_page_id=>17, p_also_current_for_pages=> ''); wwv_flow_api.create_menu_option ( p_id=>75405026975728819 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>6679330816634474 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Load Data', p_long_name=>'', p_link=>'f?p=&APP_ID.:250:&SESSION.::&DEBUG.:::', p_page_id=>250, p_also_current_for_pages=> ''); null; end; / begin wwv_flow_api.create_menu_option ( p_id=>236917018865057364 + wwv_flow_api.g_id_offset, p_menu_id=>6678815232629976 + wwv_flow_api.g_id_offset, p_parent_id=>9390600588273869 + wwv_flow_api.g_id_offset, p_option_sequence=>10, p_short_name=>'Spreadsheet Load Details', p_long_name=>'', p_link=>'f?p=&APP_ID.:2:&SESSION.::&DEBUG.:::', p_page_id=>2, p_also_current_for_pages=> ''); null; end; / prompt ...page templates for application: 4300 -- --application/shared_components/user_interface/templates/page/4300_printer_friendly prompt ......Page template 9113661096283 begin declare c1 varchar2(32767) := null; c2 varchar2(32767) := null; c3 varchar2(32767) := null; l_clob clob; l_length number := 1; begin c1:=c1||''||chr(10)|| '
#MESSAGE#'||chr(10)|| '#RETURN_TO_APPLICATION#', p_reference_id=> 80874804748045950, p_translate_this_template => 'N', p_template_comment => ''); end; null; end; / --application/shared_components/user_interface/templates/page/green_look_left_and_right_sidebars_from_4999 prompt ......Page template 3485606247566446 begin declare c1 varchar2(32767) := null; c2 varchar2(32767) := null; c3 varchar2(32767) := null; l_clob clob; l_length number := 1; begin c1:=c1||''||chr(10)|| '
#LOGO# | '||chr(10)|| '#NAVIGATION_BAR# | '||chr(10)|| ' |
#REGION_POSITION_07# | '||chr(10)|| ' |
#REG'; c3:=c3||'ION_POSITION_01# | '||chr(10)|| '#REGION_POSITION_02##REGION_POSITION_04##BOX_BODY# | '||chr(10)||
'#REGION_POSITION_03##REGION_POSITION_05# | '||chr(10)||
'
#LOGO# | '||chr(10)|| '#NAVIGATION_BAR# | '||chr(10)|| ' |
#REGION_POSITION_07# | '||chr(10)|| ' |
#REGION_POSITION_02##BOX_BODY# | '||chr(10)|| '#REGION_POSITION_03##REGION_POSITION_05# | '||chr(10)||
'
#MESSAGE#'||chr(10)|| '#RETURN_TO_APPLICATION#', p_reference_id=> 18525411970780075, p_translate_this_template => 'N', p_template_comment => ''); end; null; end; / prompt ...button templates -- --------------------------------------- prompt ...region templates -- --application/shared_components/user_interface/templates/region/gray_box prompt ......region template 9113673096289 begin declare t varchar2(32767) := null; t2 varchar2(32767) := null; t3 varchar2(32767) := null; l_clob clob; l_clob2 clob; l_clob3 clob; l_length number := 1; begin t:=t||'
#TITLE# | #CLOSE# #EDIT##EXPAND##HELP##DELETE##COPY##CREATE# |
---|---|
#BODY# |
#TITLE# | ||
---|---|---|
#BODY# |
#BODY# | #CLOSE##COPY##DELETE##CHANGE##EDIT##PREVIOUS##NEXT##CREATE##EXPAND# | ||
#TITLE#'; t:=t||'th> |
---|
#BODY# |
#BODY# | #CLOSE##EDIT##DELETE##CREATE##CREATE2##PREVIOUS##NEXT# |
#TITLE# | #CLOSE# #EDIT##DELETE##CREATE##CREATE2# #PREVIOUS##NEXT# |
---|---|
#BODY# |
#TITLE# | #CLOSE# #DELETE##EDIT##CHANGE##PREVIOUS##NEXT##CREATE# |
---|---|
#BODY# |
#TITLE# | ||
---|---|---|
#BODY# |
#BODY# | #CLOSE##EDIT##DELETE##CREATE##CREATE2##PREVIOUS##NEXT# | '||chr(10)|| '|||
#TITLE# | #CLOSE# #DELETE##EDIT##CHANGE##PREVIOUS##NEXT##CREATE# |
---|---|
#BODY# |
', p_page_footer_text =>' |