Advertisement
Advertisement
| 01.25.2008 at 08:24AM PST, ID: 23111457 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: |
PROCEDURE RUN_REPORTS(PL_REPORT_NAME VARCHAR2) IS
alert_result number;
param_list paramlist;
param_list_name varchar2(12) := 'WHERE_PL';
lv_sqlerrm VARCHAR2(600);
where_clause VARCHAR2(1000) := null;
FILE_NAME varchar2(60);
FILE_SEQ number;
FILE_EXT varchar2(10) := 'pdf';
REPORT_NAME varchar2(60) := 'REPORT1';
v_forms60_output varchar2(60);
v_forms60_mapping varchar2(60);
BEGIN
BEGIN
select seq_report.nextval
into FILE_SEQ
from dual;
END;
tool_env.getvar('FORMS60_OUTPUT',v_forms60_output);
tool_env.getvar('FORMS60_MAPPING',v_forms60_mapping);
FILE_NAME := REPORT_NAME||'_'||FILE_SEQ||'.'||FILE_EXT;
if :report1_vw.field1 is null then
raise form_trigger_failure;
end if;
--make sure parameter list does not exist
param_list := get_parameter_list(param_list_name);
if not id_null(param_list) then
destroy_parameter_list(param_list);
end if;
--create parameter list
param_list := create_parameter_list(param_list_name);
if id_null(param_list) then
message('Cannot create parameter list');
raise form_trigger_failure;
end if;
add_parameter(param_list_name, 'PARAMFORM',text_parameter,'NO');
add_parameter(param_list_name, 'SALT',text_parameter, to_char(:report1_vw.field1));
add_parameter(param_list_name, 'INC',text_parameter,:report1_vw.field2);
add_parameter(param_list_name, 'TCOM',text_parameter,:report1_vw.field3);
add_parameter(param_list_name, 'DESFORMAT', text_parameter, 'PDF');
add_parameter(param_list_name, 'DESTYPE', text_parameter, 'FILE');
add_parameter(param_list_name, 'DESNAME', text_parameter, v_forms60_output||'\'||FILE_NAME);
RUN_PRODUCT(REPORTS, PL_REPORT_NAME, SYNCHRONOUS, RUNTIME, FILESYSTEM, param_list_name, NULL);
Web.Show_document(v_forms60_mapping||'/'||FILE_NAME, '_SELF');
END;
|