Report only run on Server [message #242410] |
Fri, 01 June 2007 17:08 |
kornflakes
Messages: 14 Registered: May 2007
|
Junior Member |
|
|
Hi,
Problem with reports i guess...
I've been searching on the forums and google but i can't find a solution for this.
I have one form and one report.
On my form i have a button with the next pl/sql code:
PROCEDURE RUN_REPORT IS
p_rpt_param_list paramlist;
report_id REPORT_OBJECT;
ReportServerJob VARCHAR2(100);
v_jobID VARCHAR2(100);
rep_status VARCHAR2(20);
reportserver VARCHAR2(30);
v_url VARCHAR2(200);
v_url2 VARCHAR2(200);
usr_sessionid NUMBER;
report_not_generated EXCEPTION;
BEGIN
SELECT USERENV('sessionid') into usr_sessionid FROM DUAL;
IF NOT Id_Null(p_rpt_param_list) then
Destroy_Parameter_List(p_rpt_param_list);
END IF;
p_rpt_param_list := Create_Parameter_List ('tmp');
IF (get_application_property(user_interface)='WEB') THEN
reportserver := 'rep_JETCOSW05_FRHOME';
report_id := find_report_object('LISEST');
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESTYPE, FILE);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESFORMAT, 'pdf');
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_SERVER, reportserver);
Add_Parameter(p_rpt_param_list,'paramform',TEXT_PARAMETER,'no');
Add_Parameter(p_rpt_param_list,'PRINTJOB',TEXT_PARAMETER,'NO');
ReportServerJob := run_report_object(report_id, p_rpt_param_list);
v_jobID := substr(ReportServerJob,length(reportserver)+2,length(ReportServerJob));
IF ReportServerJob is NOT NULL THEN
rep_status := report_object_status(ReportServerJob);
WHILE rep_status in ('RUNNING', 'OPENING_REPORT','ENQUEUED') LOOP
rep_status := report_object_status(ReportServerJob);
END LOOP;
IF rep_status != 'FINISHED' THEN
raise report_not_generated;
END IF;
v_url := '/reports/rwservlet/getjobid'||v_jobID||'?server='||reportserver;
v_url2 := 'javascript:window.open("'||v_url ||'", "", "fullscreen=no,
titlebar=no, location=no, toolbar=no, menubar=no, status=no, resizable=yes");
self.close()';
Web.Show_Document(v_url2,'_blank');
ELSE
raise report_not_generated;
END IF;
END IF;
Destroy_Parameter_List(p_rpt_param_list);
END;
I config formwebs.config and the default.env.
formwebs.config:
[aplicacion]
envFile=aplica.env
lookAndFeel=Oracle
colorScheme=teal
pageTitle=HOLA MUNDO
form=LISEST
On default.env i only chance the forms path.
The problem is that on the server i can run the form and also the report, but on client i can only run the form, the report doesn't run.
Anyone knows why?
Thanks in advance
|
|
|
|
|
|
Re: Report only run on Server [message #242950 is a reply to message #242410] |
Tue, 05 June 2007 10:27 |
kornflakes
Messages: 14 Registered: May 2007
|
Junior Member |
|
|
Good point, but i deactivated the pop-up blocker and still with the same problem,
Could it be something with the security of the browser?
By the way im using Internet Explorer ver 6.0
Thanks again
|
|
|
|
Re: Report only run on Server [message #243057 is a reply to message #242410] |
Tue, 05 June 2007 17:49 |
kornflakes
Messages: 14 Registered: May 2007
|
Junior Member |
|
|
Yes, the Allow active content to run in files on My Computer is checked.
I found that on one machine i can run the report, so i discard a bad configuration on the server and a lack of configuration/software on client side.
I only have installed jinitiator 1.3.1.22, do i need something else?
Thanks
[Updated on: Tue, 05 June 2007 17:50] Report message to a moderator
|
|
|
|
|
Re: Report only run on Server [message #243566 is a reply to message #242410] |
Thu, 07 June 2007 14:43 |
kornflakes
Messages: 14 Registered: May 2007
|
Junior Member |
|
|
I've been searching the reason why i can open the report on one machine and on another can't
The one that opens the report has windows xp service pack 1 and the internet explorer is 6.0.2800 for sp1, the other has windows xp service pack 2 and ie 6.0.2900 for sp2.
I tried to open the report from a machine with windows 98SE and with internet explorer 6.0.2800 and it opened, so i think the problem is not a bad configuration, but the ie version.
Maybe there are some problems running reports on that 6.0.2900 version of ie or the firewall of the sp2 is blocking the report?
Littlefoot could you give me your ie version in order to compare.
Thanks...
[Updated on: Thu, 07 June 2007 16:38] Report message to a moderator
|
|
|
|
Re: Report only run on Server [message #244108 is a reply to message #242410] |
Mon, 11 June 2007 10:52 |
kornflakes
Messages: 14 Registered: May 2007
|
Junior Member |
|
|
Ok, I found it.
Changing this:
v_url := '/reports/rwservlet/getjobid'||v_jobID||'?server='||reportserver;
v_url2 := 'javascript:window.open("'||v_url ||'", "", "fullscreen=no,titlebar=no, location=no, toolbar=no,menubar=no, status=no, resizable=yes");
self.close()';
Web.Show_Document(v_url2,'_blank');
With this:
Web.Show_Document('http://192.200.1.5:7779/reports/rwservlet/getjobid' || v_jobID ||'?server' || reportserver ,'_blank');
And now i can open the form and also the report, without problem and on any ie version.
That javascript thing doesn't want me.
Thanks for everything
Saludos desde Mexico.
[Updated on: Mon, 11 June 2007 10:55] Report message to a moderator
|
|
|