--application/pages/page_00009 prompt ...PAGE 9: CSV Export -- begin declare h varchar2(32767) := null; ph varchar2(32767) := null; begin h := null; ph := null; wwv_flow_api.create_page( p_id => 9, p_flow_id=> wwv_flow.g_flow_id, p_tab_set=> '', p_name => 'CSV Export', p_alias => 'CSV_EXPORT', p_step_title=> 'CSV Export', p_step_sub_title_type => 'TEXT_WITH_SUBSTITUTIONS', p_first_item=> 'NO_FIRST_ITEM', p_help_text => '', p_html_page_header => '', p_step_template => '', p_required_patch=> null + wwv_flow_api.g_id_offset, p_last_updated_by => 'HARDYA', p_last_upd_yyyymmddhh24miss => '20071128124854', p_protection_level=> 'C', p_page_comment => ''); end; end; / begin null; end; / begin null; end; / begin declare p varchar2(32767) := null; l_clob clob; l_length number := 1; begin p:=p||'begin'||chr(10)|| ' mip_files.export_table_to_csv(v(''P5_TABLES''),v(''P5_COLUMN_NAMES''));'||chr(10)|| ' -- Send an error code so that the'||chr(10)|| ' -- rest of the HTML template does not render in the export file'||chr(10)|| ' htmldb_application.g_unrecoverable_error := true;'||chr(10)|| ' --'||chr(10)|| 'end;'; wwv_flow_api.create_page_process( p_id => 12780216171318969 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id => 9, p_process_sequence=> 10, p_process_point=> 'BEFORE_HEADER', p_process_type=> 'PLSQL', p_process_name=> 'export', p_process_sql_clob => p, p_process_error_message=> '', p_process_success_message=> '', p_process_is_stateful_y_n=>'N', p_required_patch=>null + wwv_flow_api.g_id_offset, p_process_comment=>'This process will export the table passed by session variable P5_TABLES to a CSV file. Ask A Gilbert about the finer workings if you need to know. '); end; null; end; / begin --------------------------------------- -- ...updatable report columns for page 9 -- begin null; end; null; end; /