[SOLVED] how we can pass a parameter from the caster schedule to a report?
how we can pass a parameter from the caster schedule to a report?
For example, if we have a query in a report that is using partner_id=109 in the WHERE clause and we want to make this report generic and pass in the partner_id when it is casted How can we do that?
A working example would be helpfulThis message has been edited. Last edited by: <Kathryn Henning>,
WF 8.0.08, Dev Studio, Apache Tomcat/7, MS IIS 7, MySQL, MS Windows 7, I.E. 9, Output formats: HTML, Excel 2007, PDF, Active HTML, Active PDF
October 15, 2014, 08:56 AM
Avinash
Hi Mubbashir,
How you want to pass the parameter. 1. Using HTML Composer page. 2. Direct procedure.
Thanks! @vi
WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
October 15, 2014, 09:29 AM
Mubbashir
quote:
Originally posted by Avinash: Hi Mubbashir,
How you want to pass the parameter. 1. Using HTML Composer page. 2. Direct procedure.
Thank you Avinash for your reply The parameter will be through procedure. i want to pass it from ReportCaster Schedule.
WF 8.0.08, Dev Studio, Apache Tomcat/7, MS IIS 7, MySQL, MS Windows 7, I.E. 9, Output formats: HTML, Excel 2007, PDF, Active HTML, Active PDF
October 15, 2014, 10:13 AM
susannah
in 7, its pretty straightforward. Open schedule Open Tasks panel click on the task click on Edit click on Advanced... you'll see the Parameters tab knock yourself out.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
October 15, 2014, 10:15 AM
Mubbashir
quote:
Originally posted by susannah: in 7, its pretty straightforward. Open schedule Open Tasks panel click on the task click on Edit click on Advanced... you'll see the Parameters tab knock yourself out.
Thanks susannah for your reply we are using 8.0.08
WF 8.0.08, Dev Studio, Apache Tomcat/7, MS IIS 7, MySQL, MS Windows 7, I.E. 9, Output formats: HTML, Excel 2007, PDF, Active HTML, Active PDF
October 15, 2014, 10:46 AM
Rifaz
quote:
we are using 8.0.08
Can't you find the parameters tab, as susannah suggested, in 8?
-Rifaz
WebFOCUS 7.7.x and 8.x
October 15, 2014, 10:56 AM
Mubbashir
quote:
Originally posted by Rifaz:
Can't you find the parameters tab, as susannah suggested, in 8?
Rifaz Thanks for your reply There is the parameter tab, but how can i pass the parameters to report? I meant to say how can i include them in WHERE Clause?? I can put the static value there but It don't prompt for value, which i want it to be set as dynamically.This message has been edited. Last edited by: Mubbashir,
WF 8.0.08, Dev Studio, Apache Tomcat/7, MS IIS 7, MySQL, MS Windows 7, I.E. 9, Output formats: HTML, Excel 2007, PDF, Active HTML, Active PDF
October 15, 2014, 11:50 AM
Rifaz
Schedule a fex, goto parameters tab and click Values & choose your values. TABLE FILE CAR SUM SALES SEATS BY COUNTRY BY CAR WHERE COUNTRY EQ &COUNTRY.(OR(FIND COUNTRY IN CAR)).Country. END
-Rifaz
WebFOCUS 7.7.x and 8.x
October 15, 2014, 12:20 PM
Mubbashir
quote:
Originally posted by Rifaz: Schedule a fex, goto parameters tab and click Values & choose your values. TABLE FILE CAR SUM SALES SEATS BY COUNTRY BY CAR WHERE COUNTRY EQ &COUNTRY.(OR(FIND COUNTRY IN CAR)).Country. END
Rifaz Thank You What should be the format of multiple values? Either it should be comma separated or any other format?
WF 8.0.08, Dev Studio, Apache Tomcat/7, MS IIS 7, MySQL, MS Windows 7, I.E. 9, Output formats: HTML, Excel 2007, PDF, Active HTML, Active PDF
October 15, 2014, 12:35 PM
Rifaz
It appends OR based on your WHERE. I'm afraid, i understood your query. You can have multiple conditions if you want to add parameters.
-Rifaz
WebFOCUS 7.7.x and 8.x
October 15, 2014, 12:43 PM
Mubbashir
quote:
Originally posted by Rifaz: It appends OR based on your WHERE. I'm afraid, i understood your query. You can have multiple conditions if you want to add parameters.
Rifaz i tried the way you told me it works but actually what i want to say is it there any way around where the report can prompt for value and i can enter a dynamic value instead of specifying it in parameter tab?
WF 8.0.08, Dev Studio, Apache Tomcat/7, MS IIS 7, MySQL, MS Windows 7, I.E. 9, Output formats: HTML, Excel 2007, PDF, Active HTML, Active PDF
October 15, 2014, 12:54 PM
Rifaz
quote:
is there any way around where the report can prompt for value and i can enter a dynamic value
You meant, after scheduling?
Report Caster works in the way, when Reporting server runs procedure, it retrieves the data, creates the report & returns to the Distribution Server which distributes the report.
-Rifaz
WebFOCUS 7.7.x and 8.x
October 15, 2014, 01:02 PM
Mubbashir
quote:
You meant, after scheduling?
Yes That's what i want to ask is there any way?
WF 8.0.08, Dev Studio, Apache Tomcat/7, MS IIS 7, MySQL, MS Windows 7, I.E. 9, Output formats: HTML, Excel 2007, PDF, Active HTML, Active PDF
October 15, 2014, 02:27 PM
Rifaz
I don't know, but i can think of having disconnected dashboards in place.(Active Reports)
-Rifaz
WebFOCUS 7.7.x and 8.x
October 16, 2014, 03:27 AM
Mubbashir
Thanks Rifaz I will try that
WF 8.0.08, Dev Studio, Apache Tomcat/7, MS IIS 7, MySQL, MS Windows 7, I.E. 9, Output formats: HTML, Excel 2007, PDF, Active HTML, Active PDF
October 16, 2014, 03:29 AM
Mubbashir
SOLVED
WF 8.0.08, Dev Studio, Apache Tomcat/7, MS IIS 7, MySQL, MS Windows 7, I.E. 9, Output formats: HTML, Excel 2007, PDF, Active HTML, Active PDF