Focal Point
API to Write to the botparms table of the Report Caster

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/207102732

September 12, 2009, 08:46 AM
Priya
API to Write to the botparms table of the Report Caster
Hi,

In my application when charts are viewed by the user from the front-end, it will be executed in either PDF/HTML format based on the users decision.it will be passed as a paramter to my fex file.

Now i'm providing additional functionality to the user to use Report Caster to schedule the charts apart from what is mentioned above.
We are providing this option in the front-end for the user to select the schedule frequency etc.,

The format in which the report needs to be delivered is PDF format.

So when the report is executed using the Report Caster,the format in the fex code should change to PDF format.

Since BOTPARMS can enable the user to schedule a report to run with certain parameter values, is it possible for me to use the report caster API to write into the BOTPARM table and then when the report is deivered to the user from the Report Caster I should be able to read the format that I have mentioned in the BOTPARM table. If this is possible please let me know the API that I can use in my JAVA Application.

Thanks
Priya.


769
Windows

Using all the above
September 14, 2009, 06:59 AM
<JG>
Get a copy of http://documentation.informati...rcapi/wf761rcapi.pdf

There is no need to update botparms

If you use DSTRUN you can supply the parms at runtime.
September 15, 2009, 11:24 AM
Rao D
If I understood correctly and if you are trying to change the output format based on the type of run (ad-hoc or scheduled) then you can use the dialogue manager commands to change the output type.

Create a new variable &RC and default to 'N'

-DEFAULT &RC = 'N' ;
-DEFAULT &WFFMT = 'HTML' ;
-IF &RC EQ 'N' THEN GOTO L1 ELSE GOTO L2 ;
-L1
-SET &WFFMT = '&WFFMT.EVAL' ;
-GOTO CONT
-L2
-SET &WFFMT = 'PDF' ;
-CONT
-TYPE WFFMT &WFFMT ;

From Report Caster pass the value of &RC as 'Y'

Cheers,

Rao.


WebFOCUS - ver8201
[ReportingServers: Windows 64bit;
Client: tomcat and IIS on windows 2012
AppStudio

September 15, 2009, 11:46 AM
j.gross
Equivalently, but more succinctly:
-DEFAULT &RC = 'N', &WFFMT = 'HTML' ;
-SET &WFFMT = DECODE &RC ('Y' 'PDF', ELSE '&WFFMT.EVAL');


(Or dispense with &RC, and just have the Caster job pass WFFMT=PDF)


- Jack Gross
WF through 8.1.05
September 16, 2009, 10:59 AM
Priya
Hi,

I tried this code below and it works for me :

Parameter parameter = new Parameter();
AmperParameter[] amperparameterList = manager.getAmperParameterList(task);
if(amperparameterList != null && amperparameterList.length != 0)
{
for (int i=0;i {
String parameterName = amperparameterList[i].getParameterName();
if(parameterName.equals("OMNI_DASHBOARDID"))
{
parameter.setName(parameterName);
parameter.setValue("1269");
}
}
}
task.setParameterList(new Parameter[]{parameter});
schedule.setTaskList(new Task[] { task });

But I'm able to pass only one paramter for a schedule. My requirement is to include more than one parameter for the same schedule.
Please let me know how I can do that.

Thanks
Priya.


769
Windows

Using all the above