i get a error message when i want to run my report? [message #174263] |
Fri, 26 May 2006 23:43 |
qewani
Messages: 51 Registered: December 2005 Location: uaq
|
Member |
|
|
when i want to web view my report from the form i get an error message says
FRM-41214 :Unable to run report
this is my code in the web view button and while compile it no error it shows, so what is wrong ?
declare
v_pl_id PARAMLIST;
v_pl_name varchar2(14) := 'USER_NAME_list';
v_report_id report_object;
v_rep_server varchar2(200) :='reportserver';
v_report_job_id1 varchar2(50);
v_server_length number;
v_rep_status varchar2(25);
computer_name varchar2(50):= 'S200207680.sjmc.hct.ac.ae';
begin
v_pl_id := get_parameter_list(v_pl_name);
if not id_null(v_pl_id) then
destroy_parameter_list(v_pl_name);
end if;
v_pl_id:= create_parameter_list(v_pl_name);
add_parameter(v_pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
add_parameter(v_pl_id, 'P_USER_NAME', TEXT_PARAMETER, to_char(:MOL_USERSES.USER_NAME));
v_report_id:=Find_Report_Object('USER_TRANSACTIONS_RPT');
v_report_job_id1 :=run_report_object (v_report_id, v_pl_id);
v_server_length :=LENGTH(GET_REPORT_OBJECT_PROPERTY(v_report_id, report_server));
v_rep_status := report_object_status(v_report_job_id1);
WHILE v_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
MESSAGE('Running Report');
v_rep_status:=report_object_status(v_report_job_id1);
end loop;
Web.show_document('http://'||computer_name||':8888/reports/rwservlet/getjobid'||
substr(v_report_job_id1, v_server_length + 2)||'?server='||v_rep_server,'_blank');
end;
-
Attachment: sssss.GIF
(Size: 14.35KB, Downloaded 635 times)
|
|
|
|
Re: i get a error message when i want to run my report? [message #174533 is a reply to message #174263] |
Mon, 29 May 2006 08:11 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
IS this your first report? Or have you been able to get other reports to work?
Please also search this forum for other examples of web.show_document. I STRONGLY recommend no longer using the the run_report_object because it 'sux'.
David
|
|
|