Problem with running report from form [message #283621] |
Tue, 27 November 2007 13:41 |
janaq
Messages: 22 Registered: August 2007
|
Junior Member |
|
|
Hello,
I am running my report from Form Button with When Button Press Trigger, but the report does not displays. When I click the button another browser windows open but it does not display the report. Please help me why is this happening.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT6');
v_rep := RUN_REPORT_OBJECT(repid);
WEB.SHOW_DOCUMENT('http://202.143.122.33:8888/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
message('running report');
END;
|
|
|
|
|
|
|
Re: Problem with running report from form [message #288256 is a reply to message #288253] |
Sun, 16 December 2007 12:03 |
janaq
Messages: 22 Registered: August 2007
|
Junior Member |
|
|
hi littlefoot,
i have tried this code also but the problem is same. the report is not displaying in the browser that opens on the button press.
DECLARE
v_report_id Report_Object;
vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
vc_rep_status VARCHAR2(100); /* status of the Report job */
BEGIN
/* Get a handle to the Report Object itself. */
v_report_id:= FIND_REPORT_OBJECT('REPORT7');
message ('report found');
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, 'repserver90');
vc_report_job_id:=RUN_REPORT_OBJECT(v_report_id);
message (vc_report_job_id);
vc_rep_status := REPORT_OBJECT_STATUS(vc_report_job_id);
message (vc_rep_status);
IF vc_rep_status='FINISHED'
THEN
web.show_document ('http://localhost:8888/reports/rwservlet/getjobid='
||vc_report_job_id ||'?server='|| 'repserver90','_blank');
ELSE
message ('Report failed with error message '||vc_rep_status);
END IF;
END;
Please tell me where is the problem
Thanks & Regards.
|
|
|