Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     API to Write to the botparms table of the Report Caster

Read-Only Read-Only Topic
Go
Search
Notify
Tools
API to Write to the botparms table of the Report Caster
 Login/Join
 
Silver Member
posted
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
 
Posts: 34 | Registered: August 08, 2009Report This Post
<JG>
posted
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.
 
Report This Post
Platinum Member
posted Hide Post
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

 
Posts: 104 | Location: Indianapolis | Registered: November 08, 2007Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Silver Member
posted Hide Post
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
 
Posts: 34 | Registered: August 08, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     API to Write to the botparms table of the Report Caster

Copyright © 1996-2020 Information Builders