473,327 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

trying to move from reports generated in CGI mode to reports generated in Servlet mode

This is on 9iAS R1 patch15:

We are calling all out reports from forms.

We already have a number of forms that call reports that are using the
reports servlet. All the reports come out in pdf format. Basical there are a
number of set_report_object_property calls then a run_report_object call.
Additionally in the env file set by forms_web_cfg file we have a var of
FORMS60_REPFORMAT=pdf

We have been using the CGI report server to generate tab delimited files one
could bring into Excel. I'm having problems getting a different file other
than a pdf to be generated. I'm I stuck due to the FORMS60_REPFORMAT=pdf
var? How can I override this for a tab delimited file?

I think my problem is with the REPORT_DESTYPE

here is part of the code from the form (which does not work):
IF P_FOR_EXCEL = 'Y' THEN -- Generate Excel Sheet
l_rep_obj_id := find_report_object ( 'QMSREP' );

set_report_object_property(l_rep_obj_id, REPORT_DESTYPE, FILE);
set_report_object_property(l_rep_obj_id, REPORT_DESNAME, user ||
to_char(sysdate,'DDMMYYYYHH24MISS') || '.xls' );

set_report_object_property(l_rep_obj_id, REPORT_DESFORMAT, 'DELIMITED' );
set_report_object_property(l_rep_obj_id, REPORT_OTHER, ' DELIMITER=tab' || '
DELIMITED_HDR=no');

set_report_object_property(l_rep_obj_id, REPORT_EXECUTION_MODE, RUNTIME );
set_report_object_property(l_rep_obj_id, REPORT_COMM_MODE, SYNCHRONOUS );
set_report_object_property(l_rep_obj_id, REPORT_FILENAME, l_report_name );

-- qms$forms_errors.push ( 'Call_Report: Client/Server: Report and display
in Excel' );
l_rep_id := RUN_REPORT_OBJECT(l_rep_obj_id, l_par_list_id);

ELSE -- Generate PDF Report
l_rep_obj_id := find_report_object ( 'QMSREP' );

set_report_object_property(l_rep_obj_id, REPORT_EXECUTION_MODE, RUNTIME );
set_report_object_property(l_rep_obj_id, REPORT_COMM_MODE, SYNCHRONOUS );
set_report_object_property(l_rep_obj_id, REPORT_FILENAME, l_report_name );
set_report_object_property(l_rep_obj_id, REPORT_DESTYPE, PREVIEW);

l_rep_id := RUN_REPORT_OBJECT(l_rep_obj_id, l_par_list_id);
END IF;
My question is what do I need to do to generate tab delimited files using
the reports servlet without breaking the pdf's or changing the forms_web.cfg
file?
Thanks very much

Jul 19 '05 #1
0 2379

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: michael newport | last post by:
Dear Oracle lovers, I am trying to do create a report servlet in 9ias. From the dos prompt I type the command :- rwserver -install repmecomsacc2 I see :- ora9iasReports in Windows...
0
by: munish | last post by:
I'm using .net crystal reports export the reports to the html format. When in debug mode and viewing the html file through my WEb Application the following exception is thrown when I try to using...
1
by: dave | last post by:
When i hit a button in the web page, the servlet will run and should post some dynamic data into the new window (using Java Script), The new generated window will contain the info generated from...
0
by: Brian Fulford | last post by:
I have a report generation page that chooses which report to load and manipulate in the code behind. I am setting TextBox values and suppressing sections and whatnot. The code works fin when I...
1
by: badwal | last post by:
One of the requirements of our ASP.NET 2.0 web application (developed with visual studio 2005) is to create reports in form of excel spreadsheets with data coming from Sql Server 2005 database. ...
0
by: cwho.work | last post by:
Hi! We are using apache ibatis with our MySQL 5.0 database (using innodb tables), in our web application running on Tomcat 5. Recently we started getting a number of errors relating to...
0
by: sandydon | last post by:
when am trying this in xsl page <xsl:variable name="myArray"><item>item1</item><item>item2</item></xsl:variable> <xsl:value-of select="$myArray/item"/> i got the following error HTTP...
0
by: Oxmard | last post by:
This is on 9iAS R1 patch15: We are calling all out reports from forms. We already have a number of forms that call reports that are using the reports servlet. All the reports come out in pdf...
5
by: sayeo87 | last post by:
Hi, I am quite new to JSP so please forgive me if I ask really simple things... I am trying to run system commands on the server and display the output on a webpage. This is what I've got: <%@...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.