How do I access(read) dynamically generated reports with WebLogic WebServer
Hello Everyone,
In our application we are generating reports (pdf format) at run time. How do
we read these files.....which directory should we store these files to... I am
using Weblogic 6.0.
These files have timestamp as part of their name so the names are not static.
Thanks in advance.
Ahsen
We ran into this also. If you read the J2EE specs carefully you will see
that your app is only guaranteed to have write-access to a single directory,
defined by the context attribute "javax.servlet.context.tempdir" -- I can
find the exact reference if you want.
Here is how to get this attribute:
File tempdir = (File) getServletContext()
.getAttribute("javax.servlet.context.tempdir");
log.debug("context temp dir = " + tempdir.getAbsolutePath());
Although this may seem horribly restrictive, it makes a lot of sense on a
secure system where applications are deployed by a specific user, and may
have at runtime minimal filesytem priviledges -- your app can't write
anywhere, at the exception of the context temp dir. I know this would be the
way I'd setup my container on a Unix system for example.
So, what's a developer to do? You can either bypass the issue and always
generate your content dynamically, with a servlet setting the appropriate
MIME type to the output, or write your reports to the context temp dir and
manually serve content from there.
Frankly I think the first option is by far the most simple, easier to
implement, and thus attractive; if it leads to a performance problem, you
can always solve that with a Web cache. Doing otherwise (caching the content
yourself) opens the door to many issues, that really shouldn't be your
problem as a Web application developer. Keep it simple!
--Renaud
"ahsen" <[email protected]> wrote in message
news:173_3bc31ee1$[email protected]..
>
Hello Everyone,
In our application we are generating reports (pdf format) at run time.How do
we read these files.....which directory should we store these files to...I am
using Weblogic 6.0.
These files have timestamp as part of their name so the names are notstatic.
>
Thanks in advance.
Ahsen
Similar Messages
-
How to generate report with dynamic variable number of columns?
How to generate report with dynamic variable number of columns?
I need to generate a report with varying column names (state names) as follows:
SELECT AK, AL, AR,... FROM States ;
I get these column names from the result of another query.
In order to clarify my question, Please consider following table:
CREATE TABLE TIME_PERIODS (
PERIOD VARCHAR2 (50) PRIMARY KEY
CREATE TABLE STATE_INCOME (
NAME VARCHAR2 (2),
PERIOD VARCHAR2 (50) REFERENCES TIME_PERIODS (PERIOD) ,
INCOME NUMBER (12, 2)
I like to generate a report as follows:
AK CA DE FL ...
PERIOD1 1222.23 2423.20 232.33 345.21
PERIOD2
PERIOD3
Total 433242.23 56744.34 8872.21 2324.23 ...
The TIME_PERIODS.Period and State.Name could change dynamically.
So I can't specify the state name in Select query like
SELECT AK, AL, AR,... FROM
What is the best way to generate this report?SQL> -- test tables and test data:
SQL> CREATE TABLE states
2 (state VARCHAR2 (2))
3 /
Table created.
SQL> INSERT INTO states
2 VALUES ('AK')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('AL')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('AR')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('CA')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('DE')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('FL')
3 /
1 row created.
SQL> CREATE TABLE TIME_PERIODS
2 (PERIOD VARCHAR2 (50) PRIMARY KEY)
3 /
Table created.
SQL> INSERT INTO time_periods
2 VALUES ('PERIOD1')
3 /
1 row created.
SQL> INSERT INTO time_periods
2 VALUES ('PERIOD2')
3 /
1 row created.
SQL> INSERT INTO time_periods
2 VALUES ('PERIOD3')
3 /
1 row created.
SQL> INSERT INTO time_periods
2 VALUES ('PERIOD4')
3 /
1 row created.
SQL> CREATE TABLE STATE_INCOME
2 (NAME VARCHAR2 (2),
3 PERIOD VARCHAR2 (50) REFERENCES TIME_PERIODS (PERIOD),
4 INCOME NUMBER (12, 2))
5 /
Table created.
SQL> INSERT INTO state_income
2 VALUES ('AK', 'PERIOD1', 1222.23)
3 /
1 row created.
SQL> INSERT INTO state_income
2 VALUES ('CA', 'PERIOD1', 2423.20)
3 /
1 row created.
SQL> INSERT INTO state_income
2 VALUES ('DE', 'PERIOD1', 232.33)
3 /
1 row created.
SQL> INSERT INTO state_income
2 VALUES ('FL', 'PERIOD1', 345.21)
3 /
1 row created.
SQL> -- the basic query:
SQL> SELECT SUBSTR (time_periods.period, 1, 10) period,
2 SUM (DECODE (name, 'AK', income)) "AK",
3 SUM (DECODE (name, 'CA', income)) "CA",
4 SUM (DECODE (name, 'DE', income)) "DE",
5 SUM (DECODE (name, 'FL', income)) "FL"
6 FROM state_income, time_periods
7 WHERE time_periods.period = state_income.period (+)
8 AND time_periods.period IN ('PERIOD1','PERIOD2','PERIOD3')
9 GROUP BY ROLLUP (time_periods.period)
10 /
PERIOD AK CA DE FL
PERIOD1 1222.23 2423.2 232.33 345.21
PERIOD2
PERIOD3
1222.23 2423.2 232.33 345.21
SQL> -- package that dynamically executes the query
SQL> -- given variable numbers and values
SQL> -- of states and periods:
SQL> CREATE OR REPLACE PACKAGE package_name
2 AS
3 TYPE cursor_type IS REF CURSOR;
4 PROCEDURE procedure_name
5 (p_periods IN VARCHAR2,
6 p_states IN VARCHAR2,
7 cursor_name IN OUT cursor_type);
8 END package_name;
9 /
Package created.
SQL> CREATE OR REPLACE PACKAGE BODY package_name
2 AS
3 PROCEDURE procedure_name
4 (p_periods IN VARCHAR2,
5 p_states IN VARCHAR2,
6 cursor_name IN OUT cursor_type)
7 IS
8 v_periods VARCHAR2 (1000);
9 v_sql VARCHAR2 (4000);
10 v_states VARCHAR2 (1000) := p_states;
11 BEGIN
12 v_periods := REPLACE (p_periods, ',', ''',''');
13 v_sql := 'SELECT SUBSTR(time_periods.period,1,10) period';
14 WHILE LENGTH (v_states) > 1
15 LOOP
16 v_sql := v_sql
17 || ',SUM(DECODE(name,'''
18 || SUBSTR (v_states,1,2) || ''',income)) "' || SUBSTR (v_states,1,2)
19 || '"';
20 v_states := LTRIM (SUBSTR (v_states, 3), ',');
21 END LOOP;
22 v_sql := v_sql
23 || 'FROM state_income, time_periods
24 WHERE time_periods.period = state_income.period (+)
25 AND time_periods.period IN (''' || v_periods || ''')
26 GROUP BY ROLLUP (time_periods.period)';
27 OPEN cursor_name FOR v_sql;
28 END procedure_name;
29 END package_name;
30 /
Package body created.
SQL> -- sample executions from SQL:
SQL> VARIABLE g_ref REFCURSOR
SQL> EXEC package_name.procedure_name ('PERIOD1,PERIOD2,PERIOD3','AK,CA,DE,FL', :g_ref)
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
PERIOD AK CA DE FL
PERIOD1 1222.23 2423.2 232.33 345.21
PERIOD2
PERIOD3
1222.23 2423.2 232.33 345.21
SQL> EXEC package_name.procedure_name ('PERIOD1,PERIOD2','AK,AL,AR', :g_ref)
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
PERIOD AK AL AR
PERIOD1 1222.23
PERIOD2
1222.23
SQL> -- sample execution from PL/SQL block
SQL> -- using parameters derived from processing
SQL> -- cursors containing results of other queries:
SQL> DECLARE
2 CURSOR c_period
3 IS
4 SELECT period
5 FROM time_periods;
6 v_periods VARCHAR2 (1000);
7 v_delimiter VARCHAR2 (1) := NULL;
8 CURSOR c_states
9 IS
10 SELECT state
11 FROM states;
12 v_states VARCHAR2 (1000);
13 BEGIN
14 FOR r_period IN c_period
15 LOOP
16 v_periods := v_periods || v_delimiter || r_period.period;
17 v_delimiter := ',';
18 END LOOP;
19 v_delimiter := NULL;
20 FOR r_states IN c_states
21 LOOP
22 v_states := v_states || v_delimiter || r_states.state;
23 v_delimiter := ',';
24 END LOOP;
25 package_name.procedure_name (v_periods, v_states, :g_ref);
26 END;
27 /
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
PERIOD AK AL AR CA DE FL
PERIOD1 1222.23 2423.2 232.33 345.21
PERIOD2
PERIOD3
PERIOD4
1222.23 2423.2 232.33 345.21 -
How do I access reading list???
How do I access reading list???
In Safari tap the icon of the open pages to the left of the address fieldto open your shortcuts popup, and you then might have to navigate up one or more levels via the 'bookmarks' button at the top left of the shortcuts - you should eventually get to a level where you can then select Reading List'
-
How can I sort a dynamically generated table
I am dynamically populating the columns in a table every time my page is loaded. (see code below)
This is all working fine, and I am also able to use the built in pagination.
However, I run into problems as soon as I click on a column header to try sort the table.
I assume that because the columns are not defined in the JSP (because they are added dynamically), the sort criteria is referring to non-existant columns once the page reloads.
I get an exception as follows
Exception Details: org.apache.jasper.JasperException
#{currentRow.value['categories.category_id']}Can anyone suggest a solution so that I can sort the data for my dynamically generated table?
Cheers,
Ian
//NOTE: I call populateTable(tableRowGroup1,dynamicRowSetDataProvider) in my prerender code.
//tableRowGroup1 is defined as an empty (ie no children) row group in the JSP
private void populateTable(TableRowGroup rowGroup, DataProvider dp) {
rowGroup.setSourceVar("currentRow");
try {
FieldKey[] columnNames = dp.getFieldKeys();
for(int i=0; i < columnNames.length; i++) {
String columnName = columnNames.getFieldId();
info(i+": columnName");
rowGroup.getChildren().add(
createStaticTextColumn(columnName, "#{currentRow.value['"+columnName+"']}")
} catch (Exception ex) {
log("Error Description", ex);
info("Error Description : " + ex);
return;
private TableColumn createStaticTextColumn(String heading, String dataField) {
TableColumn tableColumn = new TableColumn();
tableColumn.setHeaderText(heading);
tableColumn.setSort(dataField);
TextField staticText = new TextField();
ValueBinding vb = getApplication().createValueBinding(dataField);
staticText.setValueBinding("text", vb);
tableColumn.getChildren().add(staticText);
return tableColumn;I'm also having this problem, and I'm sure many more are too. It seems that no one has a solution, but perhaps that makes it even more value able for a sun dev to figure it out. It's surprising that it's so difficult to make dynamically generated tables with JSC.
-
HT1947 how can i access iphoto to apple tv with iphone?
How can i access iphoto to apple tv with iphone?
Welcome to the Apple Community.
If you mean iPhoto on your phone use AirPlay if your phone supports mirroring, if you mean iPhoto on your computer, you can't do it from your phone. -
How to get the stock of STO Report with suppling Plant/receiving Plant/open
How to get the stock of STO Report with suppling Plant/receiving Plant/open/close qty.
MB5T gives you Details of STO which have stok in transit.
ME2W gives you supplying plant wise STO details. Also in ME2W , in the ALV report output, if you select the "delivery Schedule line" icon , you will get details such as , STO qty, Issued qty , undelivered qty etc. -
How can I print and email a report with a logo?
How can I print and email a report with a logo?
Is this possible??hi ravikant!
im talking about reports, not forms.
i bet se78 is for forms and oaer is for report.
because my logo is displayed on screen, using html-top-of-page.
but at the time of printing and email, internally, alv grid is converted into alv list, and alv list doesn't support having a logo.
That's my know-how of the situation.
Do you have a way with it???
Please advice.
Thanks a lot! -
How can I access HDD on Airport Extreme with iPad
How can I access HDD on Airport Extreme with iPad
Without third-party software I don't think you can. An iPad has no user-accessible interface to a file system. Just what is it you're trying to do?
-
How to inlcude all records in a report, with a formula result of 0 or 0?
I'm reporting on classes scheduled for a certain location, and calculating the number of available seats per class. A formula will give me the net seats available (Max seats-count of students). BUT if there are no students enrolled, class does not appear on the report. Formula is {SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs)
What am I missing? Currently using Crystal 8.5 and reporting against a SQL database.
Appreciate your help.
christi
thanks, Sanjay - been there done that.
basically, I need to show the net result for the open seats available,which will be the same as the max seats offered.
I tried the following:
If Isnull{WAITING_LISTS.no_emp}
then {@Open}={SCHEDULES.qy_sch_max}
else
{SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs})
and got a message "Missing the then". (@Open is the formula title)
thanks, Sanjay - been there done that.
basically, I need to show the net result for the open seats available,which will be the same as the max seats offered.
I tried the following:
If Isnull{WAITING_LISTS.no_emp}
then {@Open}={SCHEDULES.qy_sch_max}
else
{SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs})
and got a message "Missing the then". (@Open is the formula title)
TS3899 How can I access my Hotmail email account with my iPhone 4s?
How can I access my Hotmail email account with my iPhone 4s?
The following may help:
Add an email account on your iPhone, iPad, or iPod touch - Apple Support
http://windows.microsoft.com/en-us/windows/outlook/to-go
Deadlock with thread issues while generating reports with Crystal Report XI
We are facing deadlock with thread issues while generating report with Crystal Report XI
Version Number is 11.0 and the database used is Oracle
In the log file on line number 74350 by 2008/12/16 13:35:54 there is a dead lock with Thread: u20184u2019 is waiting to acquire lock for 'com.crystaldecisions.reports.queryengine.av@15214b9' which is held by the Thread: '0'.
And a dead lock with Thread: u20180u2019 is waiting to acquire lock for 'com.crystaldecisions.reports.queryengine.av@15214b9' which is held by the Thread: '4'.
Exactly after 10 minutes we can see the thread 4 and 0 are declared as STUCK by 2008/12/16 13:45:54 .
Is this an existing issue with Crystal Report?
Is there some solution for this problem?
THE LOG FILE INFORMATION IS GIVEN BELOW
[deadlocked thread] [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)':
Thread '[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'' is waiting to acquire lock 'com.crystaldecisions.reports.queryengine.av@15214b9' that is held by thread '[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)''
Stack trace:
com.crystaldecisions.reports.queryengine.av.V(Unknown Source)
com.crystaldecisions.reports.queryengine.av.do(Unknown Source)
com.crystaldecisions.reports.queryengine.as.if(Unknown Source)
com.crystaldecisions.reports.reportdefinition.datainterface.j.c(Unknown Source)
com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
com.crystaldecisions.reports.reportdefinition.cy.b(Unknown Source)
com.crystaldecisions.reports.reportdefinition.cy.long(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.a(Unknown Source)
com.crystaldecisions.reports.common.ab.a(Unknown Source)
com.crystaldecisions.reports.common.ab.if(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.if(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.a.a(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.a.a.b.a(Unknown Source)
com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
com.sysarris.aris.crystalreports.RepServlet.generateReport(RepServlet.java:65)
com.sysarris.aris.crystalreports.RepServlet.doPost(RepServlet.java:40)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
[deadlocked thread] [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)':
Thread '[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'' is waiting to acquire lock 'com.crystaldecisions.reports.queryengine.av@12e0415' that is held by thread '[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)''
Stack trace:
com.crystaldecisions.reports.queryengine.av.V(Unknown Source)
com.crystaldecisions.reports.queryengine.av.do(Unknown Source)
com.crystaldecisions.reports.queryengine.as.if(Unknown Source)
com.crystaldecisions.reports.reportdefinition.datainterface.j.c(Unknown Source)
com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source)
com.crystaldecisions.reports.reportdefinition.cy.b(Unknown Source)
com.crystaldecisions.reports.reportdefinition.cy.long(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.a(Unknown Source)
com.crystaldecisions.reports.common.ab.a(Unknown Source)
com.crystaldecisions.reports.common.ab.if(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.if(Unknown Source)
com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.a.a(Unknown Source)
com.crystaldecisions.reports.reportengineinterface.a.a.b.a(Unknown Source)
com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
com.sysarris.aris.crystalreports.RepServlet.generateReport(RepServlet.java:65)
com.sysarris.aris.crystalreports.RepServlet.doPost(RepServlet.java:40)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Can you please suggest any work around for this?
I'm not referring to Servlet threading issues.
I'll clarify.
You have two threads, both entering ReportClientDocument.open(...) method.
Thread 4 is waiting to acquire 'com.crystaldecisions.reports.queryengine.av@15214b9'
Thread 0 is waiting to acquire ''com.crystaldecisions.reports.queryengine.av@12e0415'
So I'm thinking ??? are they the same objects?
My specific question concerning the ReportClientDocument is that both are calling open - i.e., trying to open a new report. You wouldn't be trying to open different reports using the same ReportClientDocument - so was wondering if you've cached the RCD and trying to open two different reports at the same time on the same instance via different threads.
You'd normally tie a ReportClientDocument instance to a HTTP Session, to ensure each user gets their own copy.
Sincerely,
Ted Ueda
How to display field information dynamically in reports
How to display field information, depending on the description in DOMAINS..dynamically in reports...
give an example.
Thanks
Hi
the text u should take into the internal table for that and
it should send into the ALV_GRID_DISPLY
SLIS_FIELDCATALOG_T_ALV-SELECTION_TEXT = " DOMAIN".
other wise u should set in the write statement
write : / ' '.
Dynamically generating reports
Hi,
I have one doubt in generating reports dynamically.I have a dropdown box having two values
say"value1","value2".When i select value1 i need to display a report and when value2 is selected i need to display
another report in the same region. In the first report i have to display a column as a link and when clicking that link i
need to popup another page.In the second report i do not need any link columns.How can i achieve this.
Thanks,
tj
Hi,
Actually these reports are not tabular form reports.These reports are formed from 3 tables using join operation.
When clicking value1 in the select list:
I need to display report having details of devices of type1 and type2 (Details means the user,location
etc) . In that details devicename must be a link.The location must be a selectlist.It is possible to add an LOV to this
selectlist.
When clicking value2 in the select list:
I need to display report having details of devices of type2 (Details means the user,location etc) . Here
devicename is not a link.The location must be a selectlist.It is possible to add an LOV to this selectlist. Plz help,
Thanks,
tj
How to specify PDF Version while generating reports
Hi,
We are using Oracle Reports 10.1.2
We need PDF Version 1.4. But currently we are getting PDF version 1.3.
How to specify PDF Version as 1.4 while generating the reports?
Any help will be appreciated
Thanks,
Krrish
Hello,
You can open the PDF generated by Reports with a text editor : you'll find something like :
%PDF-1.4
1 0 obj
<<
/Creator (Oracle10gR2 AS Reports Services)
/CreationDate (D:20070721145421)
/ModDate (D:20070721145421)
/Producer (Oracle PDF driver)
/Title (pdfversion.pdf)
/Author (Oracle Reports)
The parameter ACCESSIBLE is described in the online help :
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/cmdline/common/cla_accessible.htm
For more details, refer to
http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_pdf.htm
Oracle® Application Server Reports Services Publishing Reports to the Web
10g Release 2 (10.1.2)
B14048-02
6 Using PDF in Oracle Reports
6.1.4 Accessibility
Regards
Dynamic Oracle reports with queries
I would like to know what the method is for dynamically enerating reports in Oracle, when you want to provide some values for certain fields, based on which the report is generated. For example, I may want the user to specify a range of dates, such as >7/12/00 and <12/12/00 or something, so as to generate a report giving the information for all records with dates lying in between those two dates...similarly, there could be some other
fields for which also values could be specified as a range or a specific value.
Can this be done by adding user parameter to the parameter form in Oracle reports? Otherwise, is there any way to connect an Oracle form to reports, which would allow the user to specify these criteria in the Oracle
form, and then based on the criteria a report would be generated? If that is possible, I suppose, it would also
be possible to provide a drop down list if necessary, from which the values for the
fields/criteria could be selected. I don't suppose such a thing could be done by just adding user parameter to the parameter form...
I would appreciate a response to this.
Thanks.
Suchitra
I think it could be done with either of the two things you said. You could have them enter the dates in a form, then pass whatever they enter to the report using a parameter list (create_parameter_list built-in) and the run_product built in. Or you could have them enter the paramters in a parameter form. See the report "HOW TO CREATE A DYNAMIC REPORT USING LEXICAL PARAMETERS" under "Documentation" on the technet site for help. I'm trying to do similar things so I haven't quite worked it all out yet but I'm getting there.
Good luck...
Maybe you are looking for
-
Vendor Invoices - Entered on and parked details not correct
Hi since we upgraded to ECC6 we have noticed that the dates stored in the Header of both LIV and Direct Entry invoices are not correct. If we Park a invoice we have a the corrected Entered on and Entered By details is correct. Then when the document
-
IN bapi- how to provide spool report with messages
in BAPI, how to provide spool report with messages?
-
Can I delete Mail and then reinstall?
Am a new user with an iPad 2 and with Mail did a sync to bring in my Outlook contacts. Somehow it found some old contact folders too and now have a totally cluttered contacts list! Can I delete Mail and download it and start again? Thanks
-
How to address fix "iTunes has stopped working error" when clicking on Get Info to edit song information? When I try to edit song information in iTunes, I right-click on the song and click on Get Info...the message iTunes has stopped working and need
-
Calling Oracle Reports from JSP/HTML
Hi, We have a web application developed in JSP, I'd like to use Oracle Reports writer to generate reports (Since our back office application is developed using Oracle forms and Reports - 6i). I don't know how to place a request to Oracle Reports serv