Trying to get an Oracle report to run to file - oracle

I am on Oracle Reports 10g, and I have an RDF that I would like to schedule to run and create a PDF on my local folder. I thought this URL would work:
http://mywebsite.com/reports/rwservlet?server=RptSvr_core2pweb99_asinst_1+userid=myuserid/password#database+report=/home/oracle/middleware/Oracle_FRHome1/forms/v10suite/GL573.rdf+destype=file+desname=c:\temp\GL573.pdf+desformat=pdf+P_unit=26014+P_TTLCOMP_YN=N
My report is on an app server. If I changed the DESTYPE from FILE to CACHE and removed the DESNAME in the URL above, it would create a report in the browser.
Please advise, what am I missing?
OR, is there some way to create a report executable that I can run from my Windows 7 PC to create a PDF? (I was able to do this on Windows XP with RWRUN.)

Only problem is of using wrong concatenation operator + which should be &, instead, before parameter names as in the following string :
http://mywebsite.com/reports/rwservlet?
server=RptSvr_core2pweb99_asinst_1
&userid=myuserid/password#database
&report=/home/oracle/middleware/Oracle_FRHome1/forms/v10suite/GL573.rdf
&destype=file
&desname=c:\temp\GL573.pdf
&desformat=pdf
&P_unit=26014&P_TTLCOMP_YN=N
P.S. without spaces inside string as in your case.

Related

BIRT - onCreate script not running

I have a report designed in BIRT 2.3.0 using dynamic columns generation.
The report has open, fetch and beforeOpen script for different sections that initialize the column headers and values, and some onCreate script replacing the column headers and values according to some value suffix.
Running this report with RunAndRenderTask method is working fine.
When running separately, with RunTask and RenderTask, the onCreate scripts don’t run (the replace operation is not performed).
I’ve been debugging the application line by line and I can’t find why these scripts are not running.
Please, any help will be great.
Regards

FTS Alfresco OR not working on empty property

I am executing a query against Alfresco using FTS. I want to find files that have my:property empty. This is part of my query:
AND (ISNULL:"my:property" OR ISUNSET:"my:property" OR =my:property:"")
When testing I discovered that this will not find my file when my:property is set to an empty string. When I change the query to this it does find that file:
AND (=my:property:"")
It seems to me that the OR statements aren't executed appropriately.
Can anyone tell me what I'm doing wrong here?
Edit: I'm using Alfresco Community 5.1f

Windows batch dynamic URL script

Is there a possibility to set Website URL in dynamic way and open it with batch script? (by using e.g. start chrome "-URL here-")
Example.
I have a link with an excel file, which I want to download:
www.example.com/example_15/example_123.xlsx
and each day specific part of URL is changing, e.g. tomorrow it could be:
www.example.com/example_12/example_abc1.xlsx
Is there any way how I can replace changing parts of the URL so it would always download an excel file ?

Crystal Report Dynamic parameter prompting user name and password

I am using CR 2008. That version allows the use dynamic parameters instead of static parameter. Using that type of parameter will direct CR to go inside the table/view and display what is resided inside the database for us to select the data/information for filtering. That is nice and convenient feature but each time I run the report, I was prompted with server name, user name and password. The user name is the name of the schema and its related password. Those credentials are not supposed to be disclosed to users.
Have anyone come across the same issue and how do you stop CR report from asking for these credentials? It did not ask when I switch to static parameters... the prompt only shows up when dynamic parameters are used.
Thanks!
I finally found a way to get around this issue. In my Crystal report, I used SQL statement in the command for easy future maintenance. I think using command triggers the prompt for user name and password when dynamic parameters is used. I switched to use views for my reports and CR stopped asking me for the credentials. I still favor using commands instead of views though and still curious if there is a way to stop CR from prompting for credential in dynamic parameters when command is used.
Are facing this issue in CR tool or in any other environment which is used to view the report.

Jasper Reports Save PDF to disk

I'm using Jasper Reports within Spring. Is it possible to let Jasper generate the PDF of the report and save it to the file system?
Of course. In fact, JasperReports includes an export parameter for doing just that. Basically, you setup your exporter however you are doing so now and set the JRExportParameter.OUTPUT_FILE_NAME parameter to the name of the file you want to save the report as, and then export the report as per normal.
You can write the bytes received from JRPdfExporter to a local file instead of the response stream. The exact solution will depend on how you are using Jasper in your application.

Resources