[CLOSED] Pass Parameter for a Fex from Report Caster API
Hi All,
I am trying to implement scheduling using Report Caster API's.
Finally we are able to use the java files provided inside the Report Caster directory. I have created a schedule successfully.
When I try to execute the schedule using S21_Run.java file it is getting executed. When I check the log it is failing with the following error message.
Task error: A VALUE IS MISSING FOR: &Days_in_Report
It is because the Fex code accepts a parameter in order to get executed. The problem is I dont know how to mention the parameter. Do I need to mention when creating the schedule using S02_Add_Email.java or when executing the schedule using S21_Run.java
Kindly help me in this.
Thanks, SanthoshThis message has been edited. Last edited by: <Kathryn Henning>,
WebFOCUS 8.0.03 Unix HTML, Excel and PDF
June 02, 2014, 06:52 PM
Waz
You should be able to set parameters when you create the schedule.
Have you checked the documentation ?
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
June 02, 2014, 07:03 PM
Santhosh
Hi Waz,
Yes I checked the documentation. It tells me how to pass the parameters to run the schedule like below:
Usage: java S21_Run
But I need to pass a parameter which is required to run the FEX. I went through the ReportCaster Legacy API Developer's Reference but I couldnt find it.
Could you please help me.
Thanks, Santhosh
WebFOCUS 8.0.03 Unix HTML, Excel and PDF
June 02, 2014, 07:09 PM
Santhosh
Hi Waz,
Even when creating the schedule these are the parameters it accepts:
Usage: java S02_Add_Email
And inside the code I see we need to pass the below parameters:
InlineMessage InlineTaskIndex --Which I am not sure what it is Mail From Reply Address Server Name Subject
So I am not sure where to pass the parameter for FEX.
Thanks, Santhosh
WebFOCUS 8.0.03 Unix HTML, Excel and PDF
June 02, 2014, 07:18 PM
Waz
My terminologies may be a bit off, but where you specify the fex, there should be an option to pass parameters.
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
January 28, 2016, 10:28 AM
Jay Potter
Were you ever able to do this. I need to do the same thing.
WebFocus 8.1.5 iSeries/Windows DB2/SQL/Access Dev Studio App Studio Maintain ReportCaster