Calling report with oracle report builder 12 - oracle

I need to call an other report with parameters from my report by report builder 12. But it seems to be, there is no button for calling an other one. Is there any way to call second report from the first one?

Such a functionality is called drill down (so that you'd be able to research it yourself, if you want).
In the old Reports 6i, you could have done it by creating a button. In modern Reports version, you'll have to use a hyperlink - it can be found within the "Web" settings, and looks like this:
http://your_server:port/reports/rwservlet?userid=scott/tiger#orcl+report=your_report.rdf+
destype=cache+desformat=html+par_deptno=&deptno
Interesting part is the very end of it, which shows how to pass a parameter from this report (which contains the &deptno value) to another report (which expects deptno value to be passes into the par_deptno parameter).

First stop the report server. (OC4J instance also for 10g)
Search for CGICMD.DAT file in Developersuite home. (for 10g It’s located at folder. And for 11g D:\Oracle\Middleware\user_projects\domains\ClassicDomain\config\fmwconfig\servers\WLS_REPORTS\applications\reports_11.1.2\configuration)
Open the CGICMD.DAT file and go to bottom line and add the bellow lines and modify as your value.
; hrs: userid=test/password#orcl server=rep_server desformat=pdf destype=cache paramform=no %*
(Where first userid, report server name, report destination format, destination type and no parameter form.)
Save and close the file.
Now open the report which will have the link.
Select the data field and press F11 to go code editor and add the bellow code before
return (true);
SRW.SET_HYPERLINK('http://SERVER_NAME:8889/reports/rwservlet?hrs+report='D:\ID_CARD_ALL.rep+EMPID='||:EMP_ID);
(Change the report server url as you have, report name and parameter if you have)
Compile and save the reports.
Now Run the report server and run your report…
LOVE U SETAREH

Related

Remove unidentified Bind variable in Toad popup window using oracle

I am trying to create a package in Oracle, whenever I try and execute it as a script, the following popup appears whereas I have not added any bind variable in my package code.
How can I identify where this popup is arising from in my package.
Did you search the package for &IBF? That should be your first move.
Then, as you use TOAD, open its Options and navigate to "Editor - Execute/Compile" section which contains the "Substitution variable prompting" whose options are:
all
ignore those in comments --> I'd say this might be what you need to se
none
Or, if you created the package in SQL*Plus, before running the CREATE PACKAGE command, set define off.
The problem was that even if you write in a comment as "& IBF" in my case, Toad will ignore the space and consider it as a bind variable.
Make sure to search the string "IBF" instead of &IBF as in my case the editor did not return any results for "&IBF"

What is that syntax : $FilePath$ -t?

What is that syntax and how can I find the corresponding value in
$FilePath$ -t
This is added as parameters in the PhpStorm IDE CSS comb installation.
That $FilePath$ is macros in File Watcher/External Tools. It gets resolved to the actual value when file watcher gets executed.
You can check all of them and insert new ones by clicking on "Insert Macro..." button next to the input field (preview value for your current project/file is shown for most of them, excluding complex macro that can have additional parameters).
https://www.jetbrains.com/help/phpstorm/2019.1/new-watcher-dialog.html
Arguments are usually specified using macros, for example, $FileName$ or $FileNameWithoutExtension$, that will be replaced with actual file names.
Type the macros manually or click Insert Macro and select the relevant pattern from the list in the Macros dialog that opens.
P.S. For the File Watcher, if you set "Show console" to be "Always", you will then be able to see the whole command that gets executed (when it gets executed, not before that).

export PDF from report directly

I use Oracle Report 6 for get my report, The problem is I want to get PDF export without displaying the report.I mean right now, I click on one button and make report (call a report from my Oracle form) then go to my report menu ->Generate to File -> PDF.
I dont want do this anymore... can I use any command from my form to export my report directly? I mean for example use some command to prepare report and get export in PDF automatically...
also if I can set the export file name and it's location when I try to generate PDF also can help me so much because I need to follow some rule for put name for my export files like use prefix and some digit and number....
What is your suggestion?
You can do both request.
You have to create parameter and pass to run_product built-in
Syntax:
REPORT_DESTYPE: File, Printer, Mail, Cache -- SET File
REPORT_FILENAME: The report filename (not used with CACHE) -- Set your desirable file name format
REPORT_DESNAME: The report destination name (not used with Cache) --
REPORT_DESFORMAT: The report destination format -- <HTML|HTMLCSS|PDF|RTF|XML|DELIMITED> set PDF
Sample parameter list:
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,
'');
I hope this help.
If you still need full details let me know, i'll add a sample procedure.
Use these parameter fields:
ADD_PARAMETER(p1,'DESTYPE',TEXT_PARAMETER,'FILE');
ADD_PARAMETER(p1,'DESFORMAT',TEXT_PARAMETER,'PDF');
ADD_PARAMETER(p1,'DESNAME',TEXT_PARAMETER,'C:\Downloads\MRP_PROCESSRATE.PDF');

Linking an SRSS report - Dropdown parameter not getting passed

Sorry if this is a duplicate post, not sure what happened with my original one.
I have a linked SSRS report (Report A) that links to Report B. One of Report B's parameters is controlled by a Dropdown/ComboBox. In the parameters dialog box that gets launched from the navigation tab, I have tried both 'VALUE' and simply putting VALUE without the single quotes.
Both ways result in an error stating that the parameter was not provided. How do I correctly pass this value, so that Report B will recognize it?
Thanks

Parameter Validation on Reports

I'm new to SSRS, so I apologize if this question is too simple:
I have a report which accepts a parameter called "Amount". I want to constrain valid inputs to currency values >= 0, and pop open an error message if the user enters improper values.
I don't want to validate inputs in my stored procedure and throw exceptions, because SSRS displays a very generic "Query execution failed for 'someTable'" message to users who access the report from another machine, and my business does not want to turn on the "Enable Remote Errors" flag.
How do I add input validation to report parameters and notify users of bad input?
Yes, I've googled around, but haven't had much luck. Thanks in advance :)
Okay, how about this?
All you have in SSRS, really, is the SQL query and expressions in report fields.
Perhaps you could add a big, red text box at the top of the report for your error message, and give it an expression like '=IIf(Parameters!Amount.Value < 0, "Error: Invalid Amount", "")'.
Then go to your table's "Hidden" property and give it the expression "=Parameters!Amount.Value < 0"
You could also add into your query's where clause and add "AND #Amount >= 0" so you aren't fetching from the database when there's an error.
It's possible to make report parameters in SSRS that are based on a particular list or a lookup query but I don't think you can apply a regex or something like that.
Instead you might consider separating your report into two panels, one which displays your report and one which displays an error and then you create an assembly with a function in it that validates the parameters for the report before it is run. If the validate parameters function is successful you hide the error panel and show the report panel, if not you do the opposite.
I don't think there's a whole lot you can do in the reporting tool itself. It's pretty rudimentary.
However, you can provide an ASP.net web interface or a form that you can use to ask the users for the parameter values in any format .NET allows, and use the ReportViewer control to display the report. It sounds daunting, but it's actually pretty straight-forward, particularly if you already have a project you can build on.
Microsoft gives tutorials for using the ReportViewer controls.

Resources