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     Emailing a PDF Report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Emailing a PDF Report
 Login/Join
 
Member
posted
I have an java application that creates a WebFOCUS report (PDF format). Prior to the report being created, the user can enter email addresses into a text box (one or many). I'd like to email this report to the email addresses that were entered into the text box. I thought about doing this thru report caster, but I'm not sure how to set this up (thru the URL or ?)
 
Posts: 9 | Registered: October 24, 2006Report This Post
Platinum Member
posted Hide Post
gkata ;
I have never done it myself, but looks like the "ReportCaster API" is what you are looking for. Please search the Forums & the IBI techsupport site for that term to find necessary manuals and such.

Sandeep Mamidenna


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
 
Posts: 218 | Location: Jackson, MS | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
The ReportCaster API would probably be the best way to go, but requires knowledge of a lot of additional information about Java as well as how to use the API. Way back when, we were trying to come up with a quick solution, so we just took those values, wrote them out to a file, and then used the dynamic address feature of ReportCaster. This allows you to run a procedure that send the distribution list back to RC. It's in the docs how to do this, but basically here it is:

Output your addresses to a file using some FEX (probably use a -WRITE) or Java procedure
Create metadata for that file
Create a server procedure like the following:

SET HOLDLIST=PRINTONLY
DEFINE FILE dstlist
DEST/A50=DESTINATION_ADDRESS;
END
TABLE FILE dstlist
PRINT
DEST
ON TABLE PCHOLD
END

1. The output field must be named DEST/A50,
2. DESTINATION_ADDRESS is the field that contains the email address, printer IP, or FTP location
3. You must use ON TABLE PCHOLD

We use this for dynamic printing and email (where the user specifies to which printer it should be sent or to whom it should be emailed) and for FTP.

It works well enough that we never bothered to go back and learn the API.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Platinum Member
posted Hide Post
Sun has a java class sendfile which you may use. Then you save the email address typed in the textbox to a .bat file with the report name including its path. From that .bat file, you can call java class to mail the report to the receipant, and that .bat file can be called from your focexec.
 
Posts: 118 | Location: Omaha, NE | Registered: June 12, 2003Report 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     Emailing a PDF Report

Copyright © 1996-2020 Information Builders