How to setup Multiple report layouts based on parameter selection
I'm trying to create a report that will be based on the parameter values a user select. There will be 3 different layouts for the report.
Customer
Salesperson
Category
If the user selects one of the three a different layout will be displayed.
This is probably a simple solution but my Reports 6i skills are a little rusty.
Your advise would be appreciated.
Ok so you have a parameter form, and some parameters. In the data model, you can put your 3 queries. In the layout, as Ino said, put all 3 frames that you could possibly have.
The way I would use to choose which query to use is below. Others may have other methods, but I like this.
Ok lets say you have query A,B,C for simplicity. You have one parameter (P_PARAM1) on the form, and the user can choose A,B or C. Based on the parameter, you choose which query to use.
In query A, you would add this line to the where statement:
and :P_PARAM1 = 'A' You add the same lines to queries B and C, but change the letter obviously. So if the user enters A, it will only run query A because that was the parameter selected.
Now for the layout, click on the frame that corresponds with group/query A. You would click F11 or launch the PL/SQL editor, and add the following format trigger (or something similar).
function F_GRP_A return boolean is
begin
IF :P_PARAM1 = 'A' then
return (TRUE);
ELSE
return (FALSE);
END IF;
end;Ok - then add that same logic to Frame B and C, and based on the parameter it will hide or show the frame.
Hope that helps - thats a basic way to do what you're looking for!
Similar Messages
-
How to handle multiple reports with single hyperlink parameter
Please suggest in my drill down report
i have two reports linked with one hyperlink
parameter, how to handle this?
please suggest for popup window with sample solution.
for example
report A--->B--->Chosse Report c or D
based on parameter hyperlink at report B.
Thanks in advance
RajYes U R correct, that
I'm using srw.set_hyperlink in plsql format trigger
to open other reports , now the problem is
how to carry over the hyperlink parameter to popup window
and allow user to choose any reports based on the
parameter value.
for example
report A (Sales person summmary report)
|
| (choose sales person drilled to orders report B)
|
B (report has the hyperlink on order no)
|
|
C,D,E (many reports based on order no
customer,order details,pending items
to be shipped)
Now how to handle the situation from b to c,d,e
I suggest use hyperlink at B to open popup to show
reports C,D,E with the order no has parameter.
please suggest for javascript to open popup window
for reports c,d,e.
Thanks
Raj -
How to setup multiple base station under one network?
How to setup multiple base station under one network? I have 6 rooms but one airport base station makes really difficult to get good signal from every rooms. I wonder if I can setup multiple airport base stations talking to each other under the same network to build up the signal strength will help solve this problem. But, is it possible? How?
One route would be to utilize a "roaming" network. In a roaming network, you would connect multiple AirPort Extreme Base Stations (AEBS) to the same Ethernet. Of course, this would require that your home is already wired for Ethernet.
-
How to insert multiple report in a workbook ??
Hi,
Can anybody suggest How to insert multiple report in a workbook ??
Thanks,
DebasishHi ,,
In Bex analyzer (BI 7.0) i am getting the option tools-> insert query??
Do i need to configure anywhere to get this option //
Can you please give details on that.
Thanks,
Debasish -
How to update multiple calling hours based on business partner
Hi All,
please help me in this issue : how to update multiple calling hours based on business partner in SAP CRM.
Regards,
Siva kumar.Check maintainance view V_TB49, add new scheduling type.
-
How to call a Report 10g from a parameter form..?
Hello,
pls i wanna know the procedure of :
How to call a Report 10g from a parameter form..?
regards,
Abdetu..hopes it work for you.
procedure get_report is
pl_id paramlist;
p_year varchar2(4);
param_name varchar2(10) :'param';
begin
pl_id := get_parameter_list(param_name);
if not id_null(pl_id_)then
destroy_parameter_list(pl_id);
end if;
pl_id := create_parameter_list(param_name);
p_year := year -- assign the value.
add_parameter(pl_id,'p_year',text_parameter,p_year);
execute_report('report_name',pl_id);
end; -
How 2 call a report 10g from a parameter form 10G
Hello,
pls. i need steps ,or docs how 2 run a report 10g from a parameter form ;
Is it requireD for the Parameter form to call a report an Application Server no* ???*
i had a previous experience with the code due to run the report as follows:_
DECLARE
PARAM_ID PARAMLIST ;
PARAM_NAME VARCHAR2(30) := 'REPORT_PARAMETER';
ALRT NUMBER;
ERR_TXT VARCHAR2(1000);
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
v_REP_SERVER_NAME VARCHAR2(200);
v_ip VARCHAR2(100);
BEGIN
PARAM_ID := GET_PARAMETER_LIST(PARAM_NAME);
IF NOT ID_NULL(PARAM_ID) THEN
DESTROY_PARAMETER_LIST('REPORT_PARAMETER');
END IF;
v_REP_SERVER_NAME := REP_SERVER_NAME;
BEGIN
SELECT PARAMETER_VALUE
INTO v_ip
FROM GENERAL_FIXED_PARAMETERS
WHERE PARAMETER_ID = 'REPORT_SERVER_IP';
EXCEPTION
WHEN OTHERS THEN
Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);
Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);
END;
PARAM_ID := CREATE_PARAMETER_LIST(PARAM_NAME);
ADD_PARAMETER(PARAM_ID,'PARAMFORM',TEXT_PARAMETER,'NO');
ADD_PARAMETER(PARAM_ID,'COPIES',TEXT_PARAMETER,:COPIES);
ADD_PARAMETER(PARAM_ID,'P_DISPLAY',TEXT_PARAMETER,:DESTYPE);
ADD_PARAMETER(PARAM_ID,'DESFORMAT',TEXT_PARAMETER,'pdf');
ADD_PARAMETER(PARAM_ID,'group_id',TEXT_PARAMETER, :group_id);
repid := find_report_object('WH_R01_GRP_ITEM');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_rep_server_name);
v_rep := RUN_REPORT_OBJECT(repid,PARAM_ID);
WEB.SHOW_DOCUMENT('http://'||V_IP||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?server='||v_REP_SERVER_NAME,'_blank');
-- http://server_name:8889/reports/rwservlet?report=rep_name.rdf¶mform=yes&destype=CACHE&desformat=htmlcss&userid=id/pass@conn
END;notice here the value of V_IP it is retrieved from the following table desc...
The table desc GENERAL_FIXED_PARAMETERS that i select from the values are as follows:_
SQL> DESC GENERAL_FIXED_PARAMETERS;
Name Null? Type
PARAMETER_ID VARCHAR2(200)
PARAMETER_VALUE VARCHAR2(200)
PARAMETER_DESC VARCHAR2(200)
MODULE VARCHAR2(200)it's stored value is as follows:
SQL> select * from GENERAL_FIXED_PARAMETERS;
PARAMETER_ID PARAMETER_VALUE PARAMETER_DESC MODULE
REPORT_SERVER_IP rep_oraas_OracleAs_10gNotice here the value of the PARAMETER_VALUE is a string ; as if it's a generic value to be applied on any REPORT_SERVER_IP this value ...
Where Should i retrieved or Get ???
That was long time i can't remember pls help me 2 run my report what should id
i searched the google but there is a missing link can u help and guide me it's urgent pls.
if needed 2 start oc4j for reports , setting pathes ,fonts, enviroment file etc.
The report object's property in the object navigator is as follow:_
+ Oracle Developer Integration node :
File name : My_Report_name
Execution Mode: Runtime
Communication Mode : Synchronous
Data Source data block :NULL
+ Reports node:
Report Destination Type : FileThanks in advance,
Regards,
Abdetu...Thanks InoL for reply,
REPORT_SERVER_IP is not correcti had doubted but wasn't sure of it...!
My First Question was :
Is it requireD for the Parameter form to call a report an Application Server no ???*the answer i found is Yessss
Regards,
Abdetu... -
SSRS 2008 - hide chart lines based on parameter selected
How to control visibility of chart lines based on Params selected by user?
By default, my report display last 3 years worth of data (including current) with Month on the x axis and Counts on the y axis. I have two Boolean parameters:
TwoYrs? T/F
ThreeYrs? T/F
if False is selected for TwoYr and ThreeYr parameters then I want to hide chart lines corresponding to last year and the year before.
What I've tried: Created 3 Series groups with filters. eg. YearSeries1 to return only current year data and applying an expression to display it if params TwoYrs and ThreeYrs = False. and so on for YearSeries2 to return current + last
years data if param TwoYrs is True and ThreeYrs = False. But I don't see where to add expression to control the display of the individual series groups. I am open to any way of doing this, but this seemed most logical.Hi Ok-Hee,
In your Source Query just need to filter the series data based on the Parameters.
I have written sample query below:-
select * from
select 1 monthnumber , 'Jan' MonthName, 2013 year,100 amount
union
select 1 monthnumber , 'Jan' MonthName, 2014 year ,200 amount
union
select 1 monthnumber , 'Jan' MonthName, 2015 year , 300 amount
union
select 2 monthnumber , 'Feb' MonthName, 2013 year, 300 amount
union
select 2 monthnumber , 'Feb' MonthName, 2014 year, 350 amount
union
select 2 monthnumber , 'Feb' MonthName, 2015 year,200 amount
union
select 3 monthnumber , 'Mar' MonthName, 2013 year, 380 amount
union
select 3 monthnumber , 'Mar' MonthName, 2014 year, 100 amount
union
select 3 monthnumber , 'Mar' MonthName, 2015 year, 500 amount
)t
where year in (
select distinct FilterYear from
select case when @TwoYrs=1 then year(getdate())-1 else year(getdate()) end FilterYear
union
select case when @TwoYrs=1 and @ThreeYrs =1 then year(getdate())-2 else year(getdate()) end FilterYear
union
select year(getdate()) FilterYear
) t
I have created one post in my blog , you can check the result.
https://msbitips.wordpress.com/2015/03/12/ssrs-2008-hide-chart-lines-based-on-parameter-selected/
Thanks
Prasad -
How do setup multiple send and receive domain on single virtual ironport?
HI all
how do i setup multiple send and receive domain on single virtual ironport?
DaemienPlease use the admin guide to assist you for setup/configuration:
http://www.cisco.com/c/dam/en/us/td/docs/security/esa/esa8-0/user_guide/ESA_8-0-1_User_Guide.pdf
On the VESA - the Recipient Access Table (RAT) will control which domains your appliance accepts for.
AsyncOS uses a Recipient Access Table (RAT) for each public listener to manage accept and reject actions for recipient addresses. Recipent addresses include these:
•Domains
•Email addresses
•Groups of email addresses
This is covered in detail in the "Overview of Accepting or Rejecting Connections Based on the Recipient’s Address" section.
Please see the "Configuring the Gateway to Receive Email" section for configuration of appliance for domains.
Please see the "Defining Which Hosts Are Allowed to Connect Using the Host Access Table (HAT)" section for configuration of appliance for sending.
I hope this helps!
-Robert
(*If you have received the answer to your original question, and found this helpful/correct - please mark the question as answered, and be sure to leave a rating to reflect!) -
How to display multiple reports at the same time
Hi,
I'm trying to display multiple reports at the same time, each one in separates tabs or windows using Forms 11g 11.1.1.6
I have a button which has a call to a procedure which makes use of rp2rro library to show the specific reports, for example:
call_report('report1');
call_report('report2');
call_report('report3');
call_report('report4');
The main problem is that, just the last report is been displayed.
Is there some way to display report1, report2 etc in separate tabs or windows ??
Regards
CarlosYou shouldn't have a problem calling different reports at once. As long as you're using Forms 11g they show up in different windows.
The question is how you are calling the report.
Here is how I manipulate it.
After I pass parameters with the ADD_PARAMETER built-in I set some key values (destype, desformat, desname) with the RP2RRO's procedures.
Finally calling RP2RRO.RP2RRO_RUN_PRODUCT and then WEB.SHOW_DOCUMENT passing the correct procedure parameters the report comes up in a window. If you repeat the above changing the appropriate variables (the report_name in the RP2RRO_RUN_PRODUCT and so on) you can get multiple reports in different windows. -
How to configure multiple report servers in Oracle 10 G R2?
I want to configure multiple report servers with my application deployed on Oracle 10G R2. Since R2 does not support report server clustering, how can this be achieved without any change in the application?
Currently, the application is running with single report server.Hi Martin,
Well we are trying to run a report without exactly specifying the name of reports server anywhere, e.g. in database or in form or anywhere else. Now if I do not supply a reports server name using RUN_REPORT_OBJECT, the error it displays is FRM-41211: Integration Error : SSL failure ... However if I specify the reports server name in the form, the reports run perfect. Also the name of reports server is specified in rwservlet.properties.
Now the question goes as follows:
Can I run my report from Form without specifying the name of the Reports server anywhere at all. This is so because either an in-process reports server should be picked or the one which is entered in rwservlet.properties should be pickec up by default. Please correct us if we are wrong. once we are through with it, we have to move to Oracle 10gR2 concept of reports server.
Thanks in anticipation,
Ruchi/Saurabh -
How to pass multiple values to a single parameter in BW report URL
Hi Experts,
I am new to EP and learning .... i am stuck at one point where we need to pass multiple parameters to a BW report URL, this is the URL that we launch from BSP.... Suppose i have to pass different multiple values to a single parameter, how to do it....
i m getting many answers to pass parameters to iviews, reports, but not specific to my case.. can u plz help me....
Thanks in advance
Priya RaiWhat is the prolem you are facing if you split the single date param as two parameters say startdate and enddate?
If you pass as single string then you might have to split the same at reciever end.
Are you trying any thing specific? -
How to setup Multi Reporting Currency by SubLedger in Oracle EBS 12.1.3
Hi,
I would like to ask about how to setup (steps) multi reporting currency by Subledger, by Balance in Oracle EBS R12.1.3
Thanks
fnHi;
Please see:
Reporting Currency Function With Subledger Option In Release 12 [ID 785385.1]
Hope it helps
Regard
Helios -
How to create multiple reports and dashboards from one dataset?
Hi there,
I've centralized the data to an excel workbook from multiple data sources and added as a dataset to my new Power BI site. How can I build multiple reports and dashboards out of one dataset?Hi Kuber,
In the Datasets section on the Navigation pane (left side of your Dashboards page), you can click "..." next to each dataset. One of the options in the contextual menu is Explore. When you explore a dataset, you can create reports and save
them.
You can find more about this and other topics in our Getting Started content:
https://go.microsoft.com/fwlink/?LinkID=512054
Thanks,
M. -
How to view multiple reports using crystal reports 2008
Hi ,
I am working on vb6 project where in i am trying to generate reports using crystal reports 2008.
For this , i am making use of Interop Form Wrapper class in vb6.
I have a business requirement where in i need to view multiple reports on my screen.
please suggest me as to how this can be achieved.
Thanks in Advance
Regards,
RamnathHi Ludek,
I am directly now using crystal report viewer control in my vb6 project.
As mentioned in previous mail, i have created a Interop Wrapper class over crystal report viewer control in .Net using visual studio 2008 and i am making use of wrapper class in my vb6 project.
I am able to access all the properties that have been defined in my Interop wrapper Class but the only stuff i need is to view multiple reports generated one after the another for a single button click Event.
Please find below the code that iam using to load and generate reports.
Note:
1. frm is the instance of my Interop Wrapper Class built over CR viewer control
2. All the user defined methods of Wrapper class that you see below will internally call the actual crystalreportviewer properties defined in my Wrapper class
Say for e.g frm.DisplayToolbar(True) will internally execute crystalreportViewer1.DisplayToolbar = True
frm.SetReportSource(strRptFilePath,0)
frm.SetSelectionFormula(strrecordSelectionFormula)
frm.DisplayToolbar(True)
frm.ShowExportOption(True)
frm.ShowPrintOption(True)
frm.ShowRefreshOption(True)
frm.ShowPAgeNavigateOption(True)
frm.ShowZoomOption(True)
frm.ShowParameterPanelOption(True)
frm.Show()
Thanks in Advance
Regards,
Ramnath
Maybe you are looking for
-
How can I see my friends contact list?
well I can see how many friends she has but how I can view the names of her friends? I know a way but it doesnt work for me Please helppp!
-
Erro 3256 using Apple Airport Express with Windows XP Pro SP2
I am running Windows XP Pro SP2 and am trying to stream my music to the Livng room from my PC in my office. I use an Apple Airport Express. I am running iTunes 8.0.1.11 on the computer that isn't getting the signal through. Now please read the entire
-
Adobe Form Fields to database (either Excel or Access)
i have a pdf form created from adobe acrobat XI pro that works perfectly. When submitted, it emails directly to me, which I manually add to a database file stored in Excel. I'm trying to find a simple way to have the data automatically added to an
-
How to pass Multivalue parameters from main report to the subreport to a database stored procedure
I am having a Main Report, where the user selects the parameters, and calls the subreport which in turn calls the stored proc which updates the report parameters table, which will be used by all the other sub reports to filter data on. It works fine
-
HT3775 I could not open video file name with .flv
I could not open video file name with .flv Please help to advise?